[ELDK] Problems using libxml2

Michael Steiger mslists at infoworks.at
Wed Nov 11 14:45:52 CET 2009


Hello eldk-list!

I am new to cross-compiling so maybe my questions are not really new but 
I googled for hours and looked through the mailing list archive with no 
solution for my problem.

I'm using ELDK 4.2 with CentOS 5 and the target platform is ppc_85xx.
In general everything is working but I had to add xml support and found 
that libxml2 is one of the supplied packages. And then the problems started.

First I tried to install the libxml2-devel rpm using
${CROSS_COMPILE}rpm -i

This failed with
Failed dependencies: pkgconfig-ppc_85xx is needed

But I could not find pkgconfig in the eldk tree.


Then I unpacked the rpm manually and copied the files to the 
/opt/eldk/ppc_85xx/usr tree.

Compilation worked but while linking the libxml2.a file could not be 
found. So I specified it using the full qualified filename.

Then the next link error followed.

/opt/eldk/usr/../ppc_85xx/lib/libc.a(s_isinfl.o): In function `__isinfl:
(.text+0x0): multiple definition of `___isinfl'
/opt/eldk/usr/../ppc_85xx/lib/libm.a(m_isinfl.o):(.text+0x0): first 
defined here
/opt/eldk/usr/../ppc_85xx/lib/libc.a(s_isnanl.o): In function `__isnanl:
(.text+0x0): multiple definition of `___isnanl'
/opt/eldk/usr/../ppc_85xx/lib/libm.a(m_isnanl.o):(.text+0x0): first 
defined here


It seems that these two functions are included in both libc and libm 
which I think was changed sometimes ago.



Any ideas how to solve this problem? And also how to correctly install 
the rpm?

Regards
Michael


More information about the eldk mailing list