Hello David,

Thank you for your answer and help. I've disabled shared libs in my
config.arch.
Now the library is compiled into a static librairy libexpat.a

During the romfs build, the makefile doesn't find the librairy, but he is
still searching for the shared librairy and not the static one.

make[2]: Entering directory `/home/steve/uclinux-dist/lib/expat'
romfs-inst.sh libexpat.so /lib/libexpat.so.0.5.0
cp: cannot stat `libexpat.so': No such file or directory
make[2]: *** [romfs] Error 1
make[2]: Leaving directory `/home/steve/uclinux-dist/lib/expat'
make[1]: *** [romfs] Error 2
make[1]: Leaving directory `/home/st
 
Regards

Steve

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de David McCullough
Envoyé : lundi 3 décembre 2007 23:50
À : uClinux development list
Objet : Re: [uClinux-dev] XML Library Expat make problem


Jivin Steve Jacot-Guillarmod lays it down ...
> Hello,
> 
> Nobody has an Idea ? I'm really lost and I need a simple XML parser for my
> project.
> I've tried a lot of things but it is still not working !

I have seen expat built and used in the uClinux-dist,  no pointers
sorry.

If you are building for a system with no MMU,  you probably need to disable
shared libs,  especially for ARM.

There is a DISABLE_SHARED_LIBS option in the Makefile.  Add this to your
config.arch:

         DISABLE_SHARED_LIBS := 1

Should help,

Cheers,
Davidm


> I'll really appreciate your help !
> 
> Regards
> 
> Steve
> 
> 
>
----------------------------------------------------------------------------
> --
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] 
> Envoyé : vendredi 30 novembre 2007 09:59
> À : [email protected]
> Objet : [uClinux-dev] XML Library Expat make problem
> 
> Hello everybody,
> 
> I’m trying to build the Expat Library included with uclinux. I’m a
beginner
> with Uclinux and if I select the Lib in the make menuconfig utility, I’ve
> this message during the make process :
> 
> ~/uclinux-dist/lib/expat> arm-uclinux-elf-gcc  -shared -o libexpat.so 
> lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
> 
>
/usr/local/arm-uclinux-tools/lib/gcc/arm-uclinux-elf/3.4.3/../../../../arm-u
> clinux-elf/lib/libc.a(__uClibc_main.o)(.text+0xec): In function
> `__uClibc_start_main':
> __uClibc_main.c: undefined reference to `main'
> collect2: ld returned 1 exit status
> 
> Is the makefile for this library already adapted to work on uclinux ? Do I
> made a mistake ?
> 
> If somebody has an idea, your help would be welcomed ! 
> 
> Regards
> 
> Steve
> 
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 

-- 
David McCullough,  [EMAIL PROTECTED],   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to