From info at bignerdranch.com Sat Sep 3 02:25:17 2005 From: info at bignerdranch.com (Aaron Hillegass) Date: Fri, 2 Sep 2005 20:25:17 -0400 Subject: [Expat-discuss] Handlers for entities? Message-ID: <8C1C5E9C-21F0-4813-84DE-4F8F54621CCF@bignerdranch.com> I'm using expat in an XML editor I'm writing. So far, it has been perfect. Now I need to have a handler called for entities. For example, if I have a document like this: Advanced Topics If you want to go skiing — I suspect you do — get on the bus. At the moment, expat chokes on the — and fails to parse ("undefined entity"). I'd really want it to call one of my functions so that I can deal with the entity in my code. Is this possible? Thanks in advance, Aaron Hillegass Big Nerd Ranch, Inc. http://www.bignerdranch.com/ From weigelt at metux.de Fri Sep 16 01:43:25 2005 From: weigelt at metux.de (Enrico Weigelt) Date: Fri, 16 Sep 2005 01:43:25 +0200 Subject: [Expat-discuss] Building Expat In-Reply-To: References: Message-ID: <20050915234325.GA4139@nibiru.local> * David Fawcett wrote: > Following the build directions, I cd to the folder holding the > configure script and when I type ./configure, I get '[djf at localhost > expat-1.95.8]$ ./configure : bad interpreter: No such file or > directory' How do the first lines of configure look ? What permissions does the file have ? > When I su to root, and try to run it like this, I get this message: > [root at localhost expat-1.95.8]# . > /home/djf/gpsbabel/expat/expat-1.95.8/configure: command not found > bash: /home/djf/gpsbabel/expat/expat-1.95.8/configure: line 16: syntax > error nea' unexpected token `in > bash: /home/djf/gpsbabel/expat/expat-1.95.8/configure: line 16: ` > case X$UNAME 'n Uuh, seems something's really broken. Does untar'ing work w/o errors ? Did you check the script for obvious syntax errors ? (yeah, that's not easy on autoconf spitout) cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact at metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- --------------------------------------------------------------------- From weigelt at metux.de Fri Sep 16 02:18:35 2005 From: weigelt at metux.de (Enrico Weigelt) Date: Fri, 16 Sep 2005 02:18:35 +0200 Subject: [Expat-discuss] cross compil expat on ARM7 In-Reply-To: <1119949456.9981.27.camel@zoul> References: <1119949456.9981.27.camel@zoul> Message-ID: <20050916001834.GB4139@nibiru.local> * BRACH Vincent wrote: > I'm trying to cross-compil expat (just librarie static & shared) from my > host (i686-pc-linux-gnu) for an ARM7 target (S3C44B0X running on > uClinux) > > I fixed the environnement variables follow : > > export CC="arm-elf-gcc" > > export CFLAGS="-DUNIX=1 -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -O2 > -fomit-frame-pointer -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED > -fno-builtin -I/home/vincent/uClinux-dist/linux-2.4.x/include -I." > > export LDFLAGS="-Wl,-elf2flt > -nostartfiles /home/vincent/uClinux-dist/lib/uClibc/lib/crt0.o /home/vincent/uClinux-dist/lib/uClibc/lib/crti.o /home/vincent/uClinux-dist/lib/uClibc/lib/crtn.o -L/home/vincent/uClinux-dist/lib/uClibc/. -L/home/vincent/uClinux-dist/lib/uClibc/lib" You shouldn't go this obscure ways. Use a sysroot'ing (cross-)toolchain instead. crosstool is your friend. expat now builds quite good in sysroot-environments. it's not complex enough that libfool makes headaches. (aka doesnt import other libraries) for other packages with more complex dependencies (ie. x11-mod) you gonna need a fixed libtool (hah, will this ever be done ? ;-P) or my own implementation (which is in fact an frontend to an *real* toolchain abstraction) ... > I have normaly the messages : "checking whether the C compiler works... > configure: error: cannot run C compiled programs. Probably it passes the wrong options to gcc and so mixes up both environments. > If you meant to cross compile, use `--host'." > > But I don't know what I must give for argument "host" ??? Its really cute that autoshit tries to provide some way for passing another platform, but to make this work, you have to put your cross compiler into some "standard location" (next to the other one), but this allows only *one* crosscompiler per platform identifier (that doesn't work for me - i've got a dozen ones for just for linux-i686) and I also wouldn't risk this messing up you toolchain ... This *should* tell autoshit to use different toolchains for built-in programs run by the compile process (yeah, such stupid things really exist !) vs. the actual package code. I've got a reason for choosing the word "should" ... > I try " ./configure --prefix=/home/vincent/uClinux-dist/lib/libexpat > --host=arm " but I don't think it's the good way ! Yeah, thats how its meant to work. Meant to. BTW: I'm currently developing something to get rid of autoshit+libfool, something which just uses some small and strictly defined textfile as input, something not trying to do a weather forecast in a shell script, something thats working absolutely deterministic, something reliable ... Perhaps someday someone's interested in in, someone beside me. > (I'm not yet subscriber of mailing list "expat-discuss at libexpat.org" > please just mail me to v.brach at smie.com (or reply)) you better should subscribe. makes life easier. cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact at metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- --------------------------------------------------------------------- From weigelt at metux.de Fri Sep 16 02:23:18 2005 From: weigelt at metux.de (Enrico Weigelt) Date: Fri, 16 Sep 2005 02:23:18 +0200 Subject: [Expat-discuss] generated Makefile has wrong value set for INSTALL In-Reply-To: References: Message-ID: <20050916002318.GC4139@nibiru.local> * Andrew Hardy wrote: > I have been looking at the configure script to try to see what is used in > this aprt of the Makefile generatio / fillin the blanks bit, but so far I > have not managed to figure it out. Ah, someone more trying to debug autoconf spitout. Welcome in hell. cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact at metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- --------------------------------------------------------------------- From weigelt at metux.de Fri Sep 16 02:40:12 2005 From: weigelt at metux.de (Enrico Weigelt) Date: Fri, 16 Sep 2005 02:40:12 +0200 Subject: [Expat-discuss] generated Makefile has wrong value set for INSTALL - 2 In-Reply-To: References: Message-ID: <20050916004012.GD4139@nibiru.local> * Andrew Hardy wrote: > If there is an install existing in a bin directory in the users path then > that one will be used instead of 'conftools/install-sh'. Really cute. That's common practise with autoconf: It always things it knows things better than the user. Could be a product of the SCC ... ... Lyta: Our great mistake. [ ... ] Delenn: What mistake ? Lyta: The first one. One one from which all errors proceed. The error of pride. ;-P > This is the case for the user who tried to build since me. However we want > the build to be fixed and always use 'conftools/install-sh'. I am guessing > it is some kind of configure option, but I'm not sure which. Well, installing is done by libtool. You could write your own libtool. Hey, ... wait, ... I've already done this ... cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact at metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- --------------------------------------------------------------------- From weigelt at metux.de Fri Sep 16 02:47:18 2005 From: weigelt at metux.de (Enrico Weigelt) Date: Fri, 16 Sep 2005 02:47:18 +0200 Subject: [Expat-discuss] how to cross-compile expat to get shared lib? In-Reply-To: References: Message-ID: <20050916004718.GE4139@nibiru.local> * Robert P. J. Day wrote: > i can't seem to cross-compile the latest version of "expat" to get a > shared ".so" library -- i just get the archive library. Perhaps autoconf is - again - not able to work with grep, and so doesn't recognize you ld as gnu ld and, of course, now assumes it cannot produce shared objects, so it doesn't ever try. I'm crosscompiling whole distros. And such things happen to me almost evry day ... > checking whether the ppc_8xx-gcc linker > (/usr/local/eldk3.1.1/usr/ppc-linux/bin/ld) supports shared > libraries... yes > ... > checking if libtool supports shared libraries... no > checking whether to build shared libraries... no > checking whether to build static libraries... yes Here it is! Its not autoconf itself, actually its libtool - which isn't great difference. > so libtool doesn't support shared libs and that's why it chooses not > to build them? or how should i read this? thanks. Yes. Autoconf/libfool is trying to guess the lottery numbers, and fails. Did I already mention, that I've got my own libtool implementation ? (well, in fact its an frontend to an really abstract toolchain command set. but it's still under heavy development ...) Ah, did you try crosstool for building you toolchain ? cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact at metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- --------------------------------------------------------------------- From weigelt at metux.de Fri Sep 16 02:53:35 2005 From: weigelt at metux.de (Enrico Weigelt) Date: Fri, 16 Sep 2005 02:53:35 +0200 Subject: [Expat-discuss] Don't want wrapper scripts. In-Reply-To: References: Message-ID: <20050916005334.GF4139@nibiru.local> * Carlos Atabales wrote: > default makefile write wrapper scripts, not binaries programs. > this are the firsts line in a program. yes. this is spit out by libtool for making it possible to run programs as long as the package (and so its libs) isn't installed yet. otherwise the dynamic linker wouln't be able to find these libs. its meant for situations where the freshly built program is run by the build process itself. oh hell, what mindless jerks want to do this ?! > Can any-one tell me how I might just generate the target binaries > into ./ and not the wrapper scripts. Relace libtool. cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact at metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- --------------------------------------------------------------------- From weigelt at metux.de Fri Sep 16 02:54:59 2005 From: weigelt at metux.de (Enrico Weigelt) Date: Fri, 16 Sep 2005 02:54:59 +0200 Subject: [Expat-discuss] Don't want wrapper scripts. In-Reply-To: References: Message-ID: <20050916005458.GG4139@nibiru.local> * Andrew Hardy wrote: > 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> The dynamic linker doesn't know where to find libexpat.so.0. Its not installed yet. cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact at metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- --------------------------------------------------------------------- From weigelt at metux.de Fri Sep 16 02:56:30 2005 From: weigelt at metux.de (Enrico Weigelt) Date: Fri, 16 Sep 2005 02:56:30 +0200 Subject: [Expat-discuss] DESTDIR patches In-Reply-To: <41D03C37.70001@waclawek.net> References: <20041214204716.GI29394@nibiru.borg.metux.de> <41BF530C.6040606@waclawek.net> <20041214211405.GA20532@nibiru.borg.metux.de> <41BF73EB.6080603@waclawek.net> <20041217174034.GE26310@nibiru.borg.metux.de> <41C320A3.4000607@waclawek.net> <20041226182937.GG25408@nibiru.borg.metux.de> <41CF447B.1040209@waclawek.net> <20041227163059.GA28890@nibiru.borg.metux.de> <41D03C37.70001@waclawek.net> Message-ID: <20050916005630.GH4139@nibiru.local> * Karl Waclawek wrote: > >Okay, why not releasing 1.95.8.1 with my fix against 1.95.8 applied ? > > Because a release is an effort, and there are other fixes > waiting to get packaged too. We do plan to get a new release > out as soon as we can - once Fred is back we will know more. Any news ? cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact at metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- --------------------------------------------------------------------- From karl at waclawek.net Fri Sep 16 04:07:20 2005 From: karl at waclawek.net (Karl Waclawek) Date: Thu, 15 Sep 2005 22:07:20 -0400 Subject: [Expat-discuss] DESTDIR patches In-Reply-To: <20050916005630.GH4139@nibiru.local> References: <20041214204716.GI29394@nibiru.borg.metux.de> <41BF530C.6040606@waclawek.net> <20041214211405.GA20532@nibiru.borg.metux.de> <41BF73EB.6080603@waclawek.net> <20041217174034.GE26310@nibiru.borg.metux.de> <41C320A3.4000607@waclawek.net> <20041226182937.GG25408@nibiru.borg.metux.de> <41CF447B.1040209@waclawek.net> <20041227163059.GA28890@nibiru.borg.metux.de> <41D03C37.70001@waclawek.net> <20050916005630.GH4139@nibiru.local> Message-ID: <432A28D8.6030601@waclawek.net> Enrico Weigelt wrote: >* Karl Waclawek wrote: > > > > >>>Okay, why not releasing 1.95.8.1 with my fix against 1.95.8 applied ? >>> >>> >>Because a release is an effort, and there are other fixes >>waiting to get packaged too. We do plan to get a new release >>out as soon as we can - once Fred is back we will know more. >> >> > >Any news ? > > > I haven't heard from Fred in a while. Hope he is OK. Fred, if you are reading this, please show us a life-sign. Karl From johnnylee at esmertec.com Thu Sep 15 10:12:34 2005 From: johnnylee at esmertec.com (Johnny) Date: Thu, 15 Sep 2005 16:12:34 +0800 Subject: [Expat-discuss] Help with installation on cygwin Message-ID: Hi, I was trying to install the expat-1.95.8 on my machine. I downloaded the source, and first configure it. The config.log is attached. But when I then tried to make install, an error occurs and stopped me from moving on. Here is the error info: /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 /home/Johnny Lee/myProject/expat/lib -o libexpat.la lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):: undefined reference to `_WinMain at 16' collect2: ld returned 1 exit status make: *** [libexpat.la] Error 1 Would any of you help me out? Thanks very much for your help. :-) Regards, ------------------------ Johnny Lee QA&T, Esmertec China Esmertec (China) Co. Ltd, Chengdu Office tel: 86-28-8335 3881 ext: 731 fax: 86-28-8332 6276 mobile: 86-138 8062 0876 email: johnnylee at esmertec.com www.esmertec.com -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 27259 bytes Desc: not available Url : http://mail.libexpat.org/pipermail/expat-discuss/attachments/20050915/147c24e1/config-0001.obj From aman.nangia at gmail.com Thu Sep 29 13:47:05 2005 From: aman.nangia at gmail.com (Aman Arora) Date: Thu, 29 Sep 2005 17:17:05 +0530 Subject: [Expat-discuss] Expat parser on Symbian platform Message-ID: <913179aa05092904474b013740@mail.gmail.com> hi, I found this query on the list, posted some time back: Hi, I am new on Symbian platform and need to use XML parser on it. I had used expat parser on other platforms. Can it be used on Symbian series 60 platform also. Please send me some information on this. Thanks and Regards Vivek I was unable to find any answers to this query on the list. Currently I am also involved in a similar activity, Can someone please share some information regarding this? rgds aman