From bansubh at indiatimes.com Mon Apr 4 14:26:34 2005 From: bansubh at indiatimes.com (Subhendu Bandyopadhyay) Date: Tue Apr 5 08:09:20 2005 Subject: [Expat-discuss] HP-UX 11.23 PA-RISC 64 & Windows 2003 IA64 build support for Expat required Message-ID: <200504041227.RAA25172@WS0005.indiatimes.com> Hi, I want to know the Build Dependencies & steps for building Expat library for PA-RISC 64 in HP-UX 11.23 and also for Windows 2003 IA64. Also I want to know whether Expat library has PA-RISC 64 & IA64 support for 64 bit & if there is any version of Expat which will be having these built-in supports for porting in HP-UX 11.23 for PA-RISC & Windows 2003 for IA64. Please let me know ASAP. Regards SB Indiatimes Email now powered by APIC Advantage. Help! Help From Andrew.Hardy at marconi.com Thu Apr 7 15:20:24 2005 From: Andrew.Hardy at marconi.com (Andrew Hardy) Date: Thu Apr 7 15:20:39 2005 Subject: [Expat-discuss] Don't want wrapper scripts. Message-ID: I compile and install the library in one location and I compile and link my programs in another. I had problems at first, but now I know that my programs are correctly compiling and linking in the library, because I copy the binaries to an independant location and they run and work fine as expected. However, Where I make my programs I still get the wrapper scripts in ./ and the binaries in ./.lib Here is a snippet of my makefile, but be aware there is more to make it work right, I just think the change I may be able to make is probably some-where in here. SHELL = /bin/bash srcdir = ../expat top_builddir = ../expat LIBRARY = $(srcdir)/libexpat.la LIBTOOL = $(SHELL) $(top_builddir)/libtool INCLUDES = -I$(srcdir)/lib -I. CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H LTFLAGS = --silent COMPILE = gcc $(CFLAGS) $(DEFS) $(INCLUDES) LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -o $@ etc... Can any-one tell me how I might just generate the target binaries into ./ and not the wrapper scripts. Many thanks in anticipation, Andrew. From Andrew.Hardy at marconi.com Fri Apr 8 10:24:40 2005 From: Andrew.Hardy at marconi.com (Andrew Hardy) Date: Fri Apr 8 10:24:57 2005 Subject: [Expat-discuss] Don't want wrapper scripts. - SENT AGAIN Message-ID: I compile and install the library in one location and I compile and link my programs in another. I had problems at first, but now I know that my programs are correctly compiling and linking in the library, because I copy the binaries to an independant location and they run and work fine as expected. However, Where I make my programs I still get the wrapper scripts in ./ and the binaries in ./.lib Here is a snippet of my makefile, but be aware there is more to make it work right, I just think the change I may be able to make is probably some-where in here. SHELL = /bin/bash srcdir = ../expat top_builddir = ../expat LIBRARY = $(srcdir)/libexpat.la LIBTOOL = $(SHELL) $(top_builddir)/libtool INCLUDES = -I$(srcdir)/lib -I. CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H LTFLAGS = --silent COMPILE = gcc $(CFLAGS) $(DEFS) $(INCLUDES) LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -o $@ etc... Can any-one tell me how I might just generate the target binaries into ./ and not the wrapper scripts. Many thanks in anticipation, Andrew. From Andrew.Hardy at marconi.com Fri Apr 8 17:51:21 2005 From: Andrew.Hardy at marconi.com (Andrew Hardy) Date: Fri Apr 8 17:51:35 2005 Subject: [Expat-discuss] Don't want wrapper scripts. - SENT AGAIN Message-ID: I compile and install the library in one location and I compile and link my programs in another. I had problems at first, but now I know that my programs are correctly compiling and linking in the library, because I copy the binaries to an independant location and they run and work fine as expected. However, Where I make my programs I still get the wrapper scripts in ./ and the binaries in ./.lib Here is a snippet of my makefile, but be aware there is more to make it work right, I just think the change I may be able to make is probably some-where in here. SHELL = /bin/bash srcdir = ../expat top_builddir = ../expat LIBRARY = $(srcdir)/libexpat.la LIBTOOL = $(SHELL) $(top_builddir)/libtool INCLUDES = -I$(srcdir)/lib -I. CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H LTFLAGS = --silent COMPILE = gcc $(CFLAGS) $(DEFS) $(INCLUDES) LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -o $@ etc... Can any-one tell me how I might just generate the target binaries into ./ and not the wrapper scripts. Many thanks in anticipation, Andrew. From Andrew.Hardy at marconi.com Mon Apr 11 17:34:31 2005 From: Andrew.Hardy at marconi.com (Andrew Hardy) Date: Mon Apr 11 17:34:37 2005 Subject: [Expat-discuss] Don't want wrapper scripts. - SENT AGAIN2 Message-ID: I compile and install the library in one location and I compile and link my programs in another. I had problems at first, but now I know that my programs are correctly compiling and linking in the library, because I copy the binaries to an independant location and they run and work fine as expected. However, Where I make my programs I still get the wrapper scripts in ./ and the binaries in ./.lib Here is a snippet of my makefile, but be aware there is more to make it work right, I just think the change I may be able to make is probably some-where in here. SHELL = /bin/bash srcdir = ../expat top_builddir = ../expat LIBRARY = $(srcdir)/libexpat.la LIBTOOL = $(SHELL) $(top_builddir)/libtool INCLUDES = -I$(srcdir)/lib -I. CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H LTFLAGS = --silent COMPILE = gcc $(CFLAGS) $(DEFS) $(INCLUDES) LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -o $@ etc... Can any-one tell me how I might just generate the target binaries into ./ and not the wrapper scripts. Many thanks in anticipation, Andrew. From erojas at cradle.com Mon Apr 11 18:04:05 2005 From: erojas at cradle.com (Emil Rojas) Date: Mon Apr 11 18:04:13 2005 Subject: [Expat-discuss] Build problem Message-ID: <2589822B3D9BA749A7434A636939D4D15F6559@pelican.cradle.local> Hi, all this is my first attempt to ask a question here. Is this the right group, or should I send this to bugs? I downloaded expat and attempted a build on cygwin. I ran ./configure with no problems and then attempted make with no arguments I get the following link error ------------: $ make /bin/bash ./libtool --silent --mode=link gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes - fexceptions -DHAVE_EXPAT_CONFIG_H -I./lib -I. -no-undefined -version-info 5:0:5 -rpath /usr/local/ lib -o libexpat.la lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(libcmain.o)(. text+0xb3): undefined refere nce to `_WinMain@16' collect2: ld returned 1 exit status make: *** [libexpat.la] Error 1 Did I miss something? I have BASH_VERSION='2.05b.0(1)-release' And $ gcc --version gcc (GCC) 3.3.3 (cygwin special) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ------------ EO Rojas System Engineering Software Manager 408.636.5049 From steve.gutter at kroger.com Tue Apr 12 00:29:18 2005 From: steve.gutter at kroger.com (steve.gutter@kroger.com) Date: Tue Apr 12 00:30:17 2005 Subject: [Expat-discuss] How do I convert an XML_Parse object to an array of name/value pairs? Message-ID: This is a great product, but I'm missing some basic point about how to convert the file to name/value pairs after I've parsed it into an XML_Parser object via XML_Parse. I'm parsing the entire file at one time. The XML_Parse works fine, but I don't see any examples of how to unroll the data in name/value pairs so I can process it. I've attached a copy of my code (I'm working in a C environment on an AIX system). Any help will be greatly appreciated! (See attached file: testexpat.c) -------------- next part -------------- A non-text attachment was scrubbed... Name: testexpat.c Type: application/octet-stream Size: 1636 bytes Desc: not available Url : http://mail.libexpat.org/pipermail/expat-discuss/attachments/20050411/94c967ae/testexpat.obj From karl at waclawek.net Tue Apr 12 01:33:28 2005 From: karl at waclawek.net (Karl Waclawek) Date: Tue Apr 12 01:33:28 2005 Subject: [Expat-discuss] How do I convert an XML_Parse object to an array of name/value pairs? In-Reply-To: References: Message-ID: <425B0948.8040801@waclawek.net> steve.gutter@kroger.com wrote: > > > > This is a great product, but I'm missing some basic point about how to > convert the file > to name/value pairs after I've parsed it into an XML_Parser object via > XML_Parse. There is an introductory article on xml.com, which you could have found checking out the Expat web site. Reading http://www.xml.com/pub/a/1999/09/expat/index.html should help you. Karl From steve.gutter at kroger.com Tue Apr 12 16:01:42 2005 From: steve.gutter at kroger.com (steve.gutter@kroger.com) Date: Tue Apr 12 22:06:01 2005 Subject: [Expat-discuss] How do I convert an XML_Parse object to an array Message-ID: Thanks for the info. The key seems to be you just need to keep track of what was the last start tag encountered, and then each time you hit a handler for the SetCharacterDataHandler immediately after a start tag, that's the data corresponding to that start tag! From xjill.iv at gmail.com Tue Apr 12 22:57:54 2005 From: xjill.iv at gmail.com (Vidar T. Fauske) Date: Tue Apr 12 22:57:57 2005 Subject: [Expat-discuss] Expat, unicode, encodings and bad output Message-ID: <9fb6dff5050412135767bf001@mail.gmail.com> Hi all! New to the list (though I have looked in the archives) =) I've been using expat for a short while, taking input from data read by WinHTTP ( ). I'm now trying to get it to work with Unicode, but having a real hard time at it. My current test document is in iso-8859-1 encoding, it's read into a buffer retrieved from XML_GetBuffer() by WinHTTP, and then XML_ParseBuffer() is called with the bytes downloaded argument from the WinHTTP call (the buffer is readable, and correct, when debugging in VS.NET). Now however comes the problem: When one of the handlers (start/end tag and character data) is called, the XML_Char strings (element, data) just seems like garbage, both in VS.NET, and when outputted (to wstring then TextOut, or directly to an console taking wide chars). Sometimes I see weired characters here (Asian-style looking), and sometimes just ??? or blocks. I got UNICODE, and XML_UNICODE defined, and I've tried with XML_UNICODE_WCHAR_T to see if that makes any difference (it changes the strings somehow, but it still look like garbage). Anyone see what can be wrong? I can paste the code if no one sees anything apparent. - Vidar From nickmacd at gmail.com Tue Apr 12 22:59:44 2005 From: nickmacd at gmail.com (Nick MacDonald) Date: Tue Apr 12 22:59:50 2005 Subject: [Expat-discuss] How do I convert an XML_Parse object to an array In-Reply-To: References: Message-ID: Well almost... but not quite. What you really want to do is implement a stack (the data structure.) As you encounter a start tag, you push it onto the stack. As you encounter and end tag, you pop the stack. That way you know exactly where in the document you are, just by walking your stack. On Apr 12, 2005 10:01 AM, steve.gutter@kroger.com wrote: > Thanks for the info. The key seems to be you just need to keep track of > what was > the last start tag encountered, and then each time you hit a handler for > the SetCharacterDataHandler > immediately after a start tag, that's the data corresponding to that start > tag! -- Nick MacDonald NickMacD@gmail.com From karl at waclawek.net Tue Apr 12 23:50:11 2005 From: karl at waclawek.net (Karl Waclawek) Date: Tue Apr 12 23:50:10 2005 Subject: [Expat-discuss] How do I convert an XML_Parse object to an array In-Reply-To: References: Message-ID: <425C4293.9080800@waclawek.net> steve.gutter@kroger.com wrote: > > > > Thanks for the info. The key seems to be you just need to keep track of > what was > the last start tag encountered, and then each time you hit a handler for > the SetCharacterDataHandler > immediately after a start tag, that's the data corresponding to that start > tag! Not necessarily. You may have multiple character data call-backs for that element, interleaved with start/end tags for child elements. You must - as someone else explained - maintain a stack so that you know which element a character data call-back belongs to. Karl From karl at waclawek.net Tue Apr 12 23:53:53 2005 From: karl at waclawek.net (Karl Waclawek) Date: Tue Apr 12 23:53:51 2005 Subject: [Expat-discuss] Expat, unicode, encodings and bad output In-Reply-To: <9fb6dff5050412135767bf001@mail.gmail.com> References: <9fb6dff5050412135767bf001@mail.gmail.com> Message-ID: <425C4371.4060806@waclawek.net> Vidar T. Fauske wrote: > Hi all! New to the list (though I have looked in the archives) =) > > I've been using expat for a short while, taking input from data read > by WinHTTP ( > ). I'm now trying to get it to work with Unicode, but having a real > hard time at it. > > My current test document is in iso-8859-1 encoding, it's read into a > buffer retrieved from XML_GetBuffer() by WinHTTP, and then > XML_ParseBuffer() is called with the bytes downloaded argument from > the WinHTTP call (the buffer is readable, and correct, when debugging > in VS.NET). > > Now however comes the problem: When one of the handlers (start/end tag > and character data) is called, the XML_Char strings (element, data) > just seems like garbage, both in VS.NET, and when outputted (to > wstring then TextOut, or directly to an console taking wide chars). > Sometimes I see weired characters here (Asian-style looking), and > sometimes just ??? or blocks. > > I got UNICODE, and XML_UNICODE defined, and I've tried with > XML_UNICODE_WCHAR_T to see if that makes any difference (it changes > the strings somehow, but it still look like garbage). > > Anyone see what can be wrong? I can paste the code if no one sees > anything apparent. If you are on Windows, are you using libexpatw.dll or libexpat.dll? You should be using the former. Karl From libexpat at poubelle.net Sun Apr 17 18:00:05 2005 From: libexpat at poubelle.net (Martin VINCENT) Date: Tue Apr 19 21:23:09 2005 Subject: [Expat-discuss] expat and visual studio c++ 6.0 project Message-ID: <42628805.9000707@poubelle.net> Hi, I'm trying to build a simple cpp program that reads a xml file using visual studio 6.0. I'm new to expat and I find I have a lot of difficulty compilling and statically linking a simple project using expat using Visual Studio 6.0. I've tried using the dll but kept getting '__cdecl' errors... Would any of you be so generous as to send me a simple squeleton VC++ project (*.dsp or *.dsw +cpp +h) that would simply link (statically) to expat? I've been busting my head on this for 2 days now, and I need to go forward! :-) Thanks! Martin From Inbal.Meir at aladdin.com Tue Apr 19 08:34:38 2005 From: Inbal.Meir at aladdin.com (Inbal Meir) Date: Tue Apr 19 21:23:10 2005 Subject: [Expat-discuss] Parsing HTML content with Expat Message-ID: Hi, Can I parse HTML content with Expat, or should I expect problems, since the parser is specialized in XML? Thanks. ************************************************************************************************** The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. ** eSafe scanned this email for viruses, vandals and malicious content ** ************************************************************************************************** From karl at waclawek.net Tue Apr 19 21:36:08 2005 From: karl at waclawek.net (Karl Waclawek) Date: Tue Apr 19 21:36:19 2005 Subject: [Expat-discuss] expat and visual studio c++ 6.0 project In-Reply-To: <42628805.9000707@poubelle.net> References: <42628805.9000707@poubelle.net> Message-ID: <42655DA8.7030705@waclawek.net> Martin VINCENT wrote: > Hi, > > I'm trying to build a simple cpp program that reads a xml file using > visual studio 6.0. > > I'm new to expat and I find I have a lot of difficulty compilling and > statically linking a simple project using expat using Visual Studio 6.0. > > I've tried using the dll but kept getting '__cdecl' errors... > > Would any of you be so generous as to send me a simple squeleton VC++ > project (*.dsp or *.dsw +cpp +h) that would simply link (statically) to > expat? > > I've been busting my head on this for 2 days now, and I need to go forward! > :-) One of the sample apps included with the Expat distribution is statically linked. If I rememeber correctly, for static linking you have to define XML_STATIC (not sure ifspeled correctly). It should be documented in one of the readme files. Karl From ofup at voila.fr Wed Apr 20 13:56:23 2005 From: ofup at voila.fr (ofup@voila.fr) Date: Wed Apr 20 13:56:25 2005 Subject: [Expat-discuss] building EXPAT with embedded Visual 4.0 Message-ID: <12580487.1113998183670.JavaMail.www@wwinf4001> Hi I want to build expat using embedded visual C++ 4.0. Can someone please tell me the steps to do so (to generate a workspace in evc4) thanks ------------------------------------------ Faites un voeu et puis Voila ! www.voila.fr From catabales at hotmail.com Fri Apr 22 00:08:54 2005 From: catabales at hotmail.com (Carlos Atabales) Date: Fri Apr 22 00:08:58 2005 Subject: [Expat-discuss] Don't want wrapper scripts. Message-ID: default makefile write wrapper scripts, not binaries programs. this are the firsts line in a program. # The outline program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. it's the solution a yuor problems.... CC=cc FLAGS= -L../lib -I../lib LIBS= -lexpat outline: outline.c $(CC) $(FLAGS) -o outline outline.c $(LIBS) clean: rm outline outline.o ------------ this is examples in directory /home/catabales/expat-1.95.8/examples [catabales@desarrollo examples]$ file outline outline: Bourne shell script text executable [catabales@desarrollo examples]$ more outline #! /bin/sh # outline - temporary wrapper script for .libs/outline # Generated by ltmain.sh - GNU libtool 1.4.2 (1.922.2.53 2001/09/11 03:18:52) # # The outline program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' .......etc ------------------------------------ I compile and install the library in one location and I compile and link my programs in another. I had problems at first, but now I know that my programs are correctly compiling and linking in the library, because I copy the binaries to an independant location and they run and work fine as expected. However, Where I make my programs I still get the wrapper scripts in ./ and the binaries in ./.lib Here is a snippet of my makefile, but be aware there is more to make it work right, I just think the change I may be able to make is probably some-where in here. SHELL = /bin/bash srcdir = ../expat top_builddir = ../expat LIBRARY = $(srcdir)/libexpat.la LIBTOOL = $(SHELL) $(top_builddir)/libtool INCLUDES = -I$(srcdir)/lib -I. CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H LTFLAGS = --silent COMPILE = gcc $(CFLAGS) $(DEFS) $(INCLUDES) LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -o $@ etc... Can any-one tell me how I might just generate the target binaries into ./ and not the wrapper scripts. Many thanks in anticipation, Andrew. _________________________________________________________________ MSN Amor: busca tu ? naranja http://latam.msn.com/amor/ From agandfr at yahoo.com Fri Apr 22 05:14:42 2005 From: agandfr at yahoo.com (Dean Agan) Date: Fri Apr 22 05:14:49 2005 Subject: [Expat-discuss] Help XHTML Parsing Message-ID: <20050422031443.72956.qmail@web52801.mail.yahoo.com> Hi! Can expat parse xhtml? if it can, I wanted to use expat to parse xhtml but it seems that I'm having trouble loading a DTD. Can anybody guide me in the right direction or at least show me what API to call? A code snippet would really be helpful. Thanks. --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! From opengeometry at yahoo.ca Fri Apr 22 05:19:36 2005 From: opengeometry at yahoo.ca (William Park) Date: Fri Apr 22 05:19:40 2005 Subject: [Expat-discuss] Help XHTML Parsing In-Reply-To: <20050422031443.72956.qmail@web52801.mail.yahoo.com> References: <20050422031443.72956.qmail@web52801.mail.yahoo.com> Message-ID: <20050422031936.GA7156@node1.opengeometry.net> On Thu, Apr 21, 2005 at 08:14:42PM -0700, Dean Agan wrote: > Hi! Can expat parse xhtml? XHTML is HTML in XML syntax. Expat parses XML Therefore, Expat parses XHTML. > if it can, I wanted to use expat to parse xhtml but it seems that I'm > having trouble loading a DTD. Can anybody guide me in the right > direction or at least show me what API to call? A code snippet would > really be helpful. Thanks. Expat comes with documentation. -- William Park , Toronto, Canada Slackware Linux -- because it works. From scottjp at CLEMSON.EDU Fri Apr 22 18:06:41 2005 From: scottjp at CLEMSON.EDU (Scott J. Pearson) Date: Fri Apr 22 18:03:03 2005 Subject: [Expat-discuss] Licensing Message-ID: I am new to the forum and have a general question. I am about to distribute binaries in an Academic Release of industrial software that uses Expat. How can I include Expat's copyright in my license agreement? I could find nothing on the website that alludes to this. Thanks, Scott --- Scott J. Pearson Systems Programmer, Center for the Advanced Engineering of Fibers and Films Clemson University 864.656.6389 scottjp@clemson.edu 10 Riggs Hall, Clemson, SC 29634 http://www.clemson.edu/caeff/ From nickmacd at gmail.com Fri Apr 22 19:53:42 2005 From: nickmacd at gmail.com (Nick MacDonald) Date: Fri Apr 22 19:53:48 2005 Subject: [Expat-discuss] Licensing In-Reply-To: References: Message-ID: >From the SourceForge web page: License: MIT License You could look here for more info: http://www.opensource.org/licenses/mit-license.php Nick On 4/22/05, Scott J. Pearson wrote: > I am new to the forum and have a general question. I am about to distribute > binaries in an Academic Release of industrial software that uses Expat. How > can I include Expat's copyright in my license agreement? I could find > nothing on the website that alludes to this. From erojas at cradle.com Sat Apr 23 17:56:21 2005 From: erojas at cradle.com (Emil Rojas) Date: Sat Apr 23 17:56:27 2005 Subject: [Expat-discuss] data handler call back Message-ID: <2589822B3D9BA749A7434A636939D4D1652ADF@pelican.cradle.local> I notice that the data handler passed to XML_SetCharacterDataHandler gets white space delivered to it. This means that the # of calls and delivered data are different when the XML is formatted for readability. E.g. 0x3 And 0x3 are treated differently if there is a data handler installed. In the first case there are two calls to the data handler, 1 for the white-space before flag, and 1 for the "0x3" that is the data for flag. If parser is handed data as in the second case there is only one call to the data handler, for the "0x3". Is this intentional or is it a bug? EO Rojas From Paul_K_Fisher at bmc.com Sat Apr 23 18:06:57 2005 From: Paul_K_Fisher at bmc.com (Fisher, Paul_K (Houston)) Date: Sat Apr 23 18:07:10 2005 Subject: [Expat-discuss] data handler call back Message-ID: > From: Emil Rojas [mailto:erojas@cradle.com] > Sent: Saturday, April 23, 2005 10:56 AM > > I notice that the data handler passed to XML_SetCharacterDataHandler > gets white space delivered to it. > > Is this intentional or is it a bug? Intentional. Expat enforces no policy on whitespace processing and therefore simply delivers the content of the document as seen. Any such policy enforcement would need to be added within the handlers you implement on top of expat. paul From zjl at cnic.cn Tue Apr 26 14:41:04 2005 From: zjl at cnic.cn (=?gb2312?B?emps?=) Date: Tue Apr 26 14:51:45 2005 Subject: [Expat-discuss] why I can't use buildconf.sh? Message-ID: <426E36E0.000106.32310@app-03> aGkhDQoNCiAgICAgRmlyc3QsSSBmZWVsIHNvcnJ5IGZvciBteSBFbmdsaXNoLg0KDQogICAg IEkgdXNlIExpbnV4IG9wZXJhdGlvbiBzeXN0ZW0sSSB3YW50IHRvIHVzZSBleHBhdCBhbmQg cmVhZCB0aGUgZXhwYXQncyBzb3VyY2UgY29kZSwgYnV0LEkgY2FuJ3QgaW5zdGFsbCBub3cs IHdoZW4gSSBpbnB1dCAiLi9idWlsZGNvbmYuc2giLE9TIHByb21wdCBtZToiYmFzaDpidWls ZGNvbmYuc2g6IGNvbW1hbmQgbm90IGZvdW5kIi5JIG1ha2Ugc3VyZSB0aGF0IEkgaGF2ZSBp bnN0YWxsZWQiYXV0b21ha2UiLCJhdXRvY29uZmlnImFuZCJsaWJ0b29sIixhbmQgdGhleSBh cmUgYWxsIHRoZSByaWdodCB2ZXJzaW9uLg0KICANCiAgICAgVGhhbmtzIGEgbG90LCBQbGVh c2UgZ2l2ZSBtZSBkaXJlY3Rpb25zLiA=From Andrew.Hardy at marconi.com Tue Apr 26 15:07:07 2005 From: Andrew.Hardy at marconi.com (Andrew Hardy) Date: Tue Apr 26 15:07:12 2005 Subject: [Expat-discuss] Don't want wrapper scripts. Message-ID: ----- Forwarded by Andrew Hardy/MAIN/MC1 on 26/04/2005 14:07 ----- |---------+----------------------------> | | Andrew Hardy | | | | | | 26/04/2005 14:04 | | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: "Carlos Atabales" @MCEXT | | cc: | | Subject: Re: [Expat-discuss] Don't want wrapper scripts.(Document link: Andrew Hardy) | >--------------------------------------------------------------------------------------------------------------------------------------------------| I have tried what you have said. It's a little bit different because the code I am compiling and linking is not locaed where outline is and your code snippet would not work. At the command line I see this happening: gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o myprog.o -c myprog.c gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o myprog myprog.o -L../expat/lib -lexpat But when I run the executable, I get this host> myprog ld.so.1: myprog: fatal: libexpat.so.0: open failed: No such file or directory Killed host> Can you advise. Thanks, Andrew. |---------+----------------------------------> | | "Carlos Atabales" | | | | | | Sent by: | | | expat-discuss-bounces@l| | | ibexpat.org | | | | | | | | | 21/04/2005 23:08 | | | | |---------+----------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: expat-discuss@libexpat.org | | cc: | | Subject: [Expat-discuss] Don't want wrapper scripts. | >--------------------------------------------------------------------------------------------------------------------------------------------------| default makefile write wrapper scripts, not binaries programs. this are the firsts line in a program. # The outline program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. it's the solution a yuor problems.... CC=cc FLAGS= -L../lib -I../lib LIBS= -lexpat outline: outline.c $(CC) $(FLAGS) -o outline outline.c $(LIBS) clean: rm outline outline.o ------------ this is examples in directory /home/catabales/expat-1.95.8/examples [catabales@desarrollo examples]$ file outline outline: Bourne shell script text executable [catabales@desarrollo examples]$ more outline #! /bin/sh # outline - temporary wrapper script for .libs/outline # Generated by ltmain.sh - GNU libtool 1.4.2 (1.922.2.53 2001/09/11 03:18:52) # # The outline program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' .......etc ------------------------------------ I compile and install the library in one location and I compile and link my programs in another. I had problems at first, but now I know that my programs are correctly compiling and linking in the library, because I copy the binaries to an independant location and they run and work fine as expected. However, Where I make my programs I still get the wrapper scripts in ./ and the binaries in ./.lib Here is a snippet of my makefile, but be aware there is more to make it work right, I just think the change I may be able to make is probably some-where in here. SHELL = /bin/bash srcdir = ../expat top_builddir = ../expat LIBRARY = $(srcdir)/libexpat.la LIBTOOL = $(SHELL) $(top_builddir)/libtool INCLUDES = -I$(srcdir)/lib -I. CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H LTFLAGS = --silent COMPILE = gcc $(CFLAGS) $(DEFS) $(INCLUDES) LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -o $@ etc... Can any-one tell me how I might just generate the target binaries into ./ and not the wrapper scripts. Many thanks in anticipation, Andrew. _________________________________________________________________ MSN Amor: busca tu ? naranja http://latam.msn.com/amor/ _______________________________________________ Expat-discuss mailing list Expat-discuss@libexpat.org http://mail.libexpat.org/mailman/listinfo/expat-discuss From Andrew.Hardy at marconi.com Tue Apr 26 15:58:32 2005 From: Andrew.Hardy at marconi.com (Andrew Hardy) Date: Tue Apr 26 15:59:03 2005 Subject: [Expat-discuss] Don't want wrapper scripts. Message-ID: I just want to compile my programs that link in the expat library. Why can't I do this! Why do I have to use libtools and have the wrapper scripts and my executables placed in .libs? I have a line in the make that makes my object file, then links this with the library, and I get no compilation or linking errors, but I cannpot seem to run the executable cos it cannot find libexpat.so.0, so I have added this file to the linking line in the make file and I get the following at the command line when I make, but I still cannot run the executable! How do I just create the executable so it has everything it needs to run and nothing else? gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o myprog.o -c myprog.c gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o myprog myprog.o ../expat/lib/libexpat.so.0.5.0 -L../expat/lib -lexpat ld: warning: file ../expat/lib/libexpat.so: linked to ../expat/lib/libexpat.so.0.5.0: attempted multiple inclusion of file host> myprog ld.so.1: myprog: fatal: libexpat.so.0: open failed: No such file or directory Killed host> Can some-body help me? Andrew H. ----- Forwarded by Andrew Hardy/MAIN/MC1 on 26/04/2005 14:51 ----- |---------+----------------------------------> | | "Andrew Hardy" | | | | | | Sent by: | | | expat-discuss-bounces@l| | | ibexpat.org | | | | | | | | | 26/04/2005 14:07 | | | | |---------+----------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: expat-discuss@libexpat.org | | cc: | | Subject: Re: [Expat-discuss] Don't want wrapper scripts. | >--------------------------------------------------------------------------------------------------------------------------------------------------| ----- Forwarded by Andrew Hardy/MAIN/MC1 on 26/04/2005 14:07 ----- |---------+----------------------------> | | Andrew Hardy | | | | | | 26/04/2005 14:04 | | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: "Carlos Atabales" @MCEXT | | cc: | | Subject: Re: [Expat-discuss] Don't want wrapper scripts.(Document link: Andrew Hardy) | >--------------------------------------------------------------------------------------------------------------------------------------------------| I have tried what you have said. It's a little bit different because the code I am compiling and linking is not locaed where outline is and your code snippet would not work. At the command line I see this happening: gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o myprog.o -c myprog.c gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o myprog myprog.o -L../expat/lib -lexpat But when I run the executable, I get this host> myprog ld.so.1: myprog: fatal: libexpat.so.0: open failed: No such file or directory Killed host> Can you advise. Thanks, Andrew. |---------+----------------------------------> | | "Carlos Atabales" | | | || | Sent by: | | | expat-discuss-bounces@l| | | ibexpat.org | | | | | | | | | 21/04/2005 23:08 | | | | |---------+----------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: expat-discuss@libexpat.org | | cc: | | Subject: [Expat-discuss] Don't want wrapper scripts. | >--------------------------------------------------------------------------------------------------------------------------------------------------| default makefile write wrapper scripts, not binaries programs. this are the firsts line in a program. # The outline program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. it's the solution a yuor problems.... CC=cc FLAGS= -L../lib -I../lib LIBS= -lexpat outline: outline.c $(CC) $(FLAGS) -o outline outline.c $(LIBS) clean: rm outline outline.o ------------ this is examples in directory /home/catabales/expat-1.95.8/examples [catabales@desarrollo examples]$ file outline outline: Bourne shell script text executable [catabales@desarrollo examples]$ more outline #! /bin/sh # outline - temporary wrapper script for .libs/outline # Generated by ltmain.sh - GNU libtool 1.4.2 (1.922.2.53 2001/09/11 03:18:52) # # The outline program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' .......etc ------------------------------------ I compile and install the library in one location and I compile and link my programs in another. I had problems at first, but now I know that my programs are correctly compiling and linking in the library, because I copy the binaries to an independant location and they run and work fine as expected. However, Where I make my programs I still get the wrapper scripts in ./ and the binaries in ./.lib Here is a snippet of my makefile, but be aware there is more to make it work right, I just think the change I may be able to make is probably some-where in here. SHELL = /bin/bash srcdir = ../expat top_builddir = ../expat LIBRARY = $(srcdir)/libexpat.la LIBTOOL = $(SHELL) $(top_builddir)/libtool INCLUDES = -I$(srcdir)/lib -I. CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H LTFLAGS = --silent COMPILE = gcc $(CFLAGS) $(DEFS) $(INCLUDES) LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -o $@ etc... Can any-one tell me how I might just generate the target binaries into ./ and not the wrapper scripts. Many thanks in anticipation, Andrew. _________________________________________________________________ MSN Amor: busca tu ? naranja http://latam.msn.com/amor/ _______________________________________________ Expat-discuss mailing list Expat-discuss@libexpat.org http://mail.libexpat.org/mailman/listinfo/expat-discuss _______________________________________________ Expat-discuss mailing list Expat-discuss@libexpat.org http://mail.libexpat.org/mailman/listinfo/expat-discuss From Greg.Martin at TELUS.COM Tue Apr 26 17:24:29 2005 From: Greg.Martin at TELUS.COM (Greg Martin) Date: Tue Apr 26 17:24:35 2005 Subject: [Expat-discuss] Don't want wrapper scripts. Message-ID: <87E369A7FEF45C4D9980D1E99A74C8BD15C695@BCMSG110.corp.ads> I haven't been following this thread but it looks to me like you're linking to shared libraries. Try linking to libs with a .a delimiter instead of .so. gcc has a -static switch for the linker. If you are going to use shared libraries they will have to be in the library path. You appear to be on a UNIX like system. Try man ld and man gcc for more info. > -----Original Message----- > From: expat-discuss-bounces@libexpat.org > [mailto:expat-discuss-bounces@libexpat.org] On Behalf Of Andrew Hardy > Sent: Tuesday, April 26, 2005 7:59 AM > To: expat-discuss@libexpat.org > Subject: [Expat-discuss] Don't want wrapper scripts. > > I just want to compile my programs that link in the expat library. > > Why can't I do this! > > Why do I have to use libtools and have the wrapper scripts > and my executables placed in .libs? > > I have a line in the make that makes my object file, then > links this with the library, and I get no compilation or > linking errors, but I cannpot seem to run the executable cos > it cannot find libexpat.so.0, so I have added this file to > the linking line in the make file and I get the following at > the command line when I make, but I still cannot run the executable! > > How do I just create the executable so it has everything it > needs to run and nothing else? > > gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes > -fexceptions -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o > myprog.o -c myprog.c gcc -g -O2 -Wall -Wmissing-prototypes > -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H > -I../expat/lib -I. -o myprog myprog.o > ../expat/lib/libexpat.so.0.5.0 -L../expat/lib -lexpat > ld: warning: file ../expat/lib/libexpat.so: linked to > ../expat/lib/libexpat.so.0.5.0: attempted multiple inclusion of file > > host> myprog > ld.so.1: myprog: fatal: libexpat.so.0: open failed: No such > file or directory Killed > host> > > Can some-body help me? > > Andrew H. > > > > > > ----- Forwarded by Andrew Hardy/MAIN/MC1 on 26/04/2005 14:51 ----- > |---------+----------------------------------> > | | "Andrew Hardy" | > | | | | om> | > | | Sent by: | > | | expat-discuss-bounces@l| > | | ibexpat.org | > | | | > | | | > | | 26/04/2005 14:07 | > | | | > |---------+----------------------------------> > > >------------------------------------------------------------- > -------------------------------------------------------------- > -----------------------| > | > > | > | To: expat-discuss@libexpat.org > > | > | cc: > > | > | Subject: Re: [Expat-discuss] Don't want wrapper > scripts. > | > > >------------------------------------------------------------- > -------------------------------------------------------------- > -----------------------| > > > > > > ----- Forwarded by Andrew Hardy/MAIN/MC1 on 26/04/2005 14:07 ----- > |---------+----------------------------> > | | Andrew Hardy | > | | | > | | 26/04/2005 14:04 | > | | | > |---------+----------------------------> > > >------------------------------------------------------------- > -------------------------------------------------------------- > -----------------------| > > | > | > | To: "Carlos Atabales" @MCEXT > | > | cc: > | > | Subject: Re: [Expat-discuss] Don't want wrapper > scripts.(Document > link: Andrew Hardy) > | > > >------------------------------------------------------------- > -------------------------------------------------------------- > -----------------------| > > > > > I have tried what you have said. > > It's a little bit different because the code I am compiling > and linking is not locaed where outline is and your code > snippet would not work. > > At the command line I see this happening: > > gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes > -fexceptions -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o > myprog.o -c myprog.c gcc -g -O2 -Wall -Wmissing-prototypes > -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H > -I../expat/lib -I. -o myprog myprog.o -L../expat/lib -lexpat > > But when I run the executable, I get this > > host> myprog > ld.so.1: myprog: fatal: libexpat.so.0: open failed: No such > file or directory Killed > host> > > Can you advise. > > Thanks, > > Andrew. > > > > > > |---------+----------------------------------> > | | "Carlos Atabales" | > | | || | > Sent > by: | > | | expat-discuss-bounces@l| > | | ibexpat.org | > | | | > | | | > | | 21/04/2005 23:08 | > | | | > |---------+----------------------------------> > > >------------------------------------------------------------- > -------------------------------------------------------------- > -----------------------| > > | > | > | To: expat-discuss@libexpat.org > | > | cc: > | > | Subject: [Expat-discuss] Don't want wrapper scripts. > | > > >------------------------------------------------------------- > -------------------------------------------------------------- > -----------------------| > > > > > > default makefile write wrapper scripts, not binaries programs. > this are the firsts line in a program. > # The outline program cannot be directly executed until all > the libtool # libraries that it depends on are installed. > # > # This wrapper script should never be moved out of the build > directory. > # If it is, it will not operate correctly. > it's the solution a yuor problems.... > > CC=cc > FLAGS= -L../lib -I../lib > LIBS= -lexpat > outline: outline.c > $(CC) $(FLAGS) -o outline outline.c $(LIBS) > > clean: > rm outline outline.o > ------------ > > this is examples in directory /home/catabales/expat-1.95.8/examples > > [catabales@desarrollo examples]$ file outline > outline: Bourne shell script text executable > > [catabales@desarrollo examples]$ more outline #! /bin/sh > > # outline - temporary wrapper script for .libs/outline # > Generated by ltmain.sh - GNU libtool 1.4.2 (1.922.2.53 2001/09/11 > 03:18:52) > # > # The outline program cannot be directly executed until all > the libtool # libraries that it depends on are installed. > # > # This wrapper script should never be moved out of the build > directory. > # If it is, it will not operate correctly. > > # Sed substitution that helps us do robust quoting. It > backslashifies # metacharacters that are still active within > double-quoted strings. > Xsed='sed -e 1s/^X//' > sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' > .......etc > > ------------------------------------ > > I compile and install the library in one location and I > compile and link my programs in another. > > I had problems at first, but now I know that my programs are > correctly compiling and linking in the library, because I > copy the binaries to an independant location and they run and > work fine as expected. > > However, Where I make my programs I still get the wrapper > scripts in ./ and the binaries in ./.lib > > Here is a snippet of my makefile, but be aware there is more > to make it work right, I just think the change I may be able > to make is probably some-where in here. > > SHELL = /bin/bash > srcdir = ../expat > top_builddir = ../expat > LIBRARY = $(srcdir)/libexpat.la > LIBTOOL = $(SHELL) $(top_builddir)/libtool INCLUDES = > -I$(srcdir)/lib -I. > CFLAGS = -g -O2 -Wall -Wmissing-prototypes > -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H > LTFLAGS = --silent COMPILE = gcc $(CFLAGS) $(DEFS) > $(INCLUDES) LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link > $(COMPILE) -o $@ > > etc... > > Can any-one tell me how I might just generate the target > binaries into ./ and not the wrapper scripts. > > Many thanks in anticipation, > > Andrew. > > _________________________________________________________________ > MSN Amor: busca tu ? naranja http://latam.msn.com/amor/ > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@libexpat.org > http://mail.libexpat.org/mailman/listinfo/expat-discuss > > > > > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@libexpat.org > http://mail.libexpat.org/mailman/listinfo/expat-discuss > > > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@libexpat.org > http://mail.libexpat.org/mailman/listinfo/expat-discuss > From catabales at hotmail.com Tue Apr 26 17:38:00 2005 From: catabales at hotmail.com (Carlos Atabales) Date: Tue Apr 26 17:38:04 2005 Subject: [Expat-discuss] why I can't use buildconf.sh? In-Reply-To: <426E36E0.000106.32310@app-03> Message-ID: If you are building Expat from a check-out from the CVS repository, you need to run a script that generates the configure script using the GNU autoconf and libtool tools. To do this, you need to have autoconf 2.52 or newer and libtool 1.4 or newer. Run the script like this: ./buildconf.sh Once this has been done, follow the same instructions as for building from a source distribution. To build Expat from a source distribution, you first run the configuration shell script in the top level distribution directory: ./configure are you sure building Expat from a check-out from the CVS repository ? if not execute ./configure, this if you are building Expat from expat-1.95.8.tar catabales. >From: "zjl" >To: expat-discuss@libexpat.org >Subject: [Expat-discuss] why I can't use buildconf.sh? >Date: Tue, 26 Apr 2005 20:41:04 +0800 (CST) > >hi! > > First,I feel sorry for my English. > > I use Linux operation system,I want to use expat and read the expat's >source code, but,I can't install now, when I input "./buildconf.sh",OS >prompt me:"bash:buildconf.sh: command not found".I make sure that I have >installed"automake","autoconfig"and"libtool",and they are all the right >version. > > Thanks a lot, Please give me directions. >_______________________________________________ >Expat-discuss mailing list >Expat-discuss@libexpat.org >http://mail.libexpat.org/mailman/listinfo/expat-discuss _________________________________________________________________ Charla con tus amigos en l?nea mediante MSN Messenger: http://messenger.latam.msn.com/ From Greg.Martin at TELUS.COM Tue Apr 26 17:53:34 2005 From: Greg.Martin at TELUS.COM (Greg Martin) Date: Tue Apr 26 17:53:38 2005 Subject: [Expat-discuss] Don't want wrapper scripts. Message-ID: <87E369A7FEF45C4D9980D1E99A74C8BD15C696@BCMSG110.corp.ads> That's right - unless you told expat not to build the static libs it will build them by default. gcc will link to the shared libs (also built by default) unless you use the static switch. If you configured without setting a prefix and did a make install after making your command line might usually look a little different: gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -I/usr/local/include -static myprog.c -o myprog -L/usr/local/lib -lexpat > -----Original Message----- > From: Andrew Hardy [mailto:Andrew.Hardy@marconi.com] > Sent: Tuesday, April 26, 2005 9:34 AM > To: Greg Martin > Subject: RE: [Expat-discuss] Don't want wrapper scripts. > > > Ok, > > Thanks, > > I'm perhaps not being as co-herant as I could be, sorry to be > a pain, but I originally built in such a way that I saw this > at the command line (using I think, the .a type of library): > > > gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes > -fexceptions -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o > myprog.o -c myprog.c gcc -g -O2 -Wall -Wmissing-prototypes > -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H > -I../expat/lib -I. -o myprog myprog.o -L../expat/lib -lexpat > > But was still getting this when I ran the executable > > host> myprog > ld.so.1: myprog: fatal: libexpat.so.0: open failed: No such > file or directory Killed host> > > > Are you saying that perhaps I ought to do something like this > > gcc -static -g -O2 -Wall -Wmissing-prototypes > -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H > -I../expat/lib -I. -o myprog.o -c myprog.c gcc -static -g > -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes > -fexceptions -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o > myprog myprog.o -L../expat/lib -lexpat > > And that this might perhaps link in everything I need > statically so that the resultant executables wonte be going > searching for something? > > Thanks, > > Andrew > > > > |---------+----------------------------> > | | "Greg Martin" | > | | | | S.COM> | > | | | > | | 26/04/2005 16:24 | > | | | > |---------+----------------------------> > > >------------------------------------------------------------- > -------------------------------------------------------------- > -----------------------| > | > > | > | To: "Andrew Hardy" > , > | > | cc: > > | > | Subject: RE: [Expat-discuss] Don't want wrapper > scripts. > | > > >------------------------------------------------------------- > -------------------------------------------------------------- > -----------------------| > > > > > I haven't been following this thread but it looks to me like > you're linking to shared libraries. Try linking to libs with > a .a delimiter instead of .so. gcc has a -static switch for > the linker. If you are going to use shared libraries they > will have to be in the library path. You appear to be on a > UNIX like system. Try man ld and man gcc for more info. > > > -----Original Message----- > > From: expat-discuss-bounces@libexpat.org > > [mailto:expat-discuss-bounces@libexpat.org] On Behalf Of > Andrew Hardy > > Sent: Tuesday, April 26, 2005 7:59 AM > > To: expat-discuss@libexpat.org > > Subject: [Expat-discuss] Don't want wrapper scripts. > > > > I just want to compile my programs that link in the expat library. > > > > Why can't I do this! > > > > Why do I have to use libtools and have the wrapper scripts and my > > executables placed in .libs? > > > > I have a line in the make that makes my object file, then > links this > > with the library, and I get no compilation or linking errors, but I > > cannpot seem to run the executable cos it cannot find > libexpat.so.0, > > so I have added this file to the linking line in the make > file and I > > get the following at the command line when I make, but I > still cannot > > run the executable! > > > > How do I just create the executable so it has everything it > needs to > > run and nothing else? > > > > gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes > -fexceptions > > -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o myprog.o -c > myprog.c gcc > > -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions > > -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o myprog myprog.o > > ../expat/lib/libexpat.so.0.5.0 -L../expat/lib -lexpat > > ld: warning: file ../expat/lib/libexpat.so: linked to > > ../expat/lib/libexpat.so.0.5.0: attempted multiple inclusion of file > > > > host> myprog > > ld.so.1: myprog: fatal: libexpat.so.0: open failed: No such file or > > directory Killed > > host> > > > > Can some-body help me? > > > > Andrew H. > > > > > > > > > > > > ----- Forwarded by Andrew Hardy/MAIN/MC1 on 26/04/2005 14:51 ----- > > |---------+----------------------------------> > > | | "Andrew Hardy" | > > | | > | | om> | > > | | Sent by: | > > | | expat-discuss-bounces@l| > > | | ibexpat.org | > > | | | > > | | | > > | | 26/04/2005 14:07 | > > | | | > > |---------+----------------------------------> > > > > >------------------------------------------------------------- > > -------------------------------------------------------------- > > -----------------------| > > | > > > > | > > | To: expat-discuss@libexpat.org > > > > | > > | cc: > > > > | > > | Subject: Re: [Expat-discuss] Don't want wrapper > > scripts. > > | > > > > >------------------------------------------------------------- > > -------------------------------------------------------------- > > -----------------------| > > > > > > > > > > > > ----- Forwarded by Andrew Hardy/MAIN/MC1 on 26/04/2005 14:07 ----- > > |---------+----------------------------> > > | | Andrew Hardy | > > | | | > > | | 26/04/2005 14:04 | > > | | | > > |---------+----------------------------> > > > > >------------------------------------------------------------- > > -------------------------------------------------------------- > > -----------------------| > > > > | > > | > > | To: "Carlos Atabales" @MCEXT > > | > > | cc: > > | > > | Subject: Re: [Expat-discuss] Don't want wrapper > > scripts.(Document > > link: Andrew Hardy) > > | > > > > >------------------------------------------------------------- > > -------------------------------------------------------------- > > -----------------------| > > > > > > > > > > I have tried what you have said. > > > > It's a little bit different because the code I am compiling and > > linking is not locaed where outline is and your code > snippet would not > > work. > > > > At the command line I see this happening: > > > > gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes > -fexceptions > > -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o myprog.o -c > myprog.c gcc > > -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions > > -DHAVE_EXPAT_CONFIG_H -I../expat/lib -I. -o myprog myprog.o > > -L../expat/lib -lexpat > > > > But when I run the executable, I get this > > > > host> myprog > > ld.so.1: myprog: fatal: libexpat.so.0: open failed: No such file or > > directory Killed > > host> > > > > Can you advise. > > > > Thanks, > > > > Andrew. > > > > > > > > > > > > |---------+----------------------------------> > > | | "Carlos Atabales" | > > | | || | > > Sent > > by: | > > | | expat-discuss-bounces@l| > > | | ibexpat.org | > > | | | > > | | | > > | | 21/04/2005 23:08 | > > | | | > > |---------+----------------------------------> > > > > >------------------------------------------------------------- > > -------------------------------------------------------------- > > -----------------------| > > > > | > > | > > | To: expat-discuss@libexpat.org > > | > > | cc: > > | > > | Subject: [Expat-discuss] Don't want wrapper scripts. > > | > > > > >------------------------------------------------------------- > > -------------------------------------------------------------- > > -----------------------| > > > > > > > > > > > > default makefile write wrapper scripts, not binaries programs. > > this are the firsts line in a program. > > # The outline program cannot be directly executed until all the > > libtool # libraries that it depends on are installed. > > # > > # This wrapper script should never be moved out of the build > > directory. > > # If it is, it will not operate correctly. > > it's the solution a yuor problems.... > > > > CC=cc > > FLAGS= -L../lib -I../lib > > LIBS= -lexpat > > outline: outline.c > > $(CC) $(FLAGS) -o outline outline.c $(LIBS) > > > > clean: > > rm outline outline.o > > ------------ > > > > this is examples in directory /home/catabales/expat-1.95.8/examples > > > > [catabales@desarrollo examples]$ file outline > > outline: Bourne shell script text executable > > > > [catabales@desarrollo examples]$ more outline #! /bin/sh > > > > # outline - temporary wrapper script for .libs/outline # > Generated by > > ltmain.sh - GNU libtool 1.4.2 (1.922.2.53 2001/09/11 > > 03:18:52) > > # > > # The outline program cannot be directly executed until all the > > libtool # libraries that it depends on are installed. > > # > > # This wrapper script should never be moved out of the build > > directory. > > # If it is, it will not operate correctly. > > > > # Sed substitution that helps us do robust quoting. It > backslashifies > > # metacharacters that are still active within double-quoted strings. > > Xsed='sed -e 1s/^X//' > > sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' > > .......etc > > > > ------------------------------------ > > > > I compile and install the library in one location and I compile and > > link my programs in another. > > > > I had problems at first, but now I know that my programs > are correctly > > compiling and linking in the library, because I copy the > binaries to > > an independant location and they run and work fine as expected. > > > > However, Where I make my programs I still get the wrapper > scripts in > > ./ and the binaries in ./.lib > > > > Here is a snippet of my makefile, but be aware there is > more to make > > it work right, I just think the change I may be able to make is > > probably some-where in here. > > > > SHELL = /bin/bash > > srcdir = ../expat > > top_builddir = ../expat > > LIBRARY = $(srcdir)/libexpat.la > > LIBTOOL = $(SHELL) $(top_builddir)/libtool INCLUDES = > -I$(srcdir)/lib > > -I. > > CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes > > -fexceptions -DHAVE_EXPAT_CONFIG_H LTFLAGS = --silent COMPILE = gcc > > $(CFLAGS) $(DEFS) > > $(INCLUDES) LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link > > $(COMPILE) -o $@ > > > > etc... > > > > Can any-one tell me how I might just generate the target > binaries into > > ./ and not the wrapper scripts. > > > > Many thanks in anticipation, > > > > Andrew. > > > > _________________________________________________________________ > > MSN Amor: busca tu ? naranja http://latam.msn.com/amor/ > > > > _______________________________________________ > > Expat-discuss mailing list > > Expat-discuss@libexpat.org > > http://mail.libexpat.org/mailman/listinfo/expat-discuss > > > > > > > > > > > > > > _______________________________________________ > > Expat-discuss mailing list > > Expat-discuss@libexpat.org > > http://mail.libexpat.org/mailman/listinfo/expat-discuss > > > > > > > > > > _______________________________________________ > > Expat-discuss mailing list > > Expat-discuss@libexpat.org > > http://mail.libexpat.org/mailman/listinfo/expat-discuss > > > > > > > >