Acolyte of the Butterfly
Posts: 150 from 2009/11/7
From: Southern CA
So I have been trying to bring my latest project into compliance with the no mixing of OS calls/MUI GUI and ixemul. Now that cURL and SSL have been updated and included in the SDK that has been helpful. Here is my problem, I am getting these errors when linking to the libnix version of libxml2-2.6.22:
****************
/Work/Development/gg/bin/../lib/gcc-lib/ppc-morphos/9.3.0/../../../../ppc-morphos/bin/ld: /usr/lib/libnix/libxml2.a(encoding.o): in function `xmlIconvWrapper':
/Varasto/Lähdekoodit/libxml2-2.6.22/encoding.c:1714: undefined reference to `errno'
/Work/Development/gg/bin/../lib/gcc-lib/ppc-morphos/9.3.0/../../../../ppc-morphos/bin/ld: /Varasto/Lähdekoodit/libxml2-2.6.22/encoding.c:1714: undefined reference to `errno'
/Work/Development/gg/bin/../lib/gcc-lib/ppc-morphos/9.3.0/../../../../ppc-morphos/bin/ld: /usr/lib/libnix/libxml2.a(xmlIO.o): in function `__xmlIOErr':
/Varasto/Lähdekoodit/libxml2-2.6.22/xmlIO.c:219: undefined reference to `errno'
/Work/Development/gg/bin/../lib/gcc-lib/ppc-morphos/9.3.0/../../../../ppc-morphos/bin/ld: /Varasto/Lähdekoodit/libxml2-2.6.22/xmlIO.c:219: undefined reference to `errno'
/Work/Development/gg/bin/../lib/gcc-lib/ppc-morphos/9.3.0/../../../../ppc-morphos/bin/ld: /usr/lib/libnix/libxml2.a(nanohttp.o): in function `socket_errno':
/Varasto/Lähdekoodit/libxml2-2.6.22/nanohttp.c:183: undefined reference to `errno'
/Work/Development/gg/bin/../lib/gcc-lib/ppc-morphos/9.3.0/../../../../ppc-morphos/bin/ld: /usr/lib/libnix/libxml2.a(nanohttp.o):/Varasto/Lähdekoodit/libxml2-2.6.22/nanohttp.c:183: more undefined references to `errno' follow
collect2: error: ld returned 1 exit status
make: *** [Makefile:12: Setlist-FM-dl] Error 1
*******************
I know it's an old version of libXML2, but it is the only one readily available that I was able to build libxslt against. I noticed in previous news items that these components have been updated, the 3.0 and 3.12 releases mention them:
"Updated to libXML2 2.7.8 and libXSLT 1.1.26"
I have tried multiple things, the order of the link libs, adding <errno.h>, etc. but nothing seems to work even though errno is defined in multiple libs...Here is a portion of my makefile:
CC = ppc-morphos-gcc-9 -Wall
CFLAGS = `xml2-config --cflags`
LIBS = -lcurl -lnghttp2 -ldl -lssl -lcrypto -lpthread -lxslt -noixemul `xml2-config --libs`
Any help would be appreciated...particularly if the newer versions of the libnix versions of libXML2 and libXSLT were made available.
IKE
MacMini G4 1.5Ghz/PowerBook G4 1.67Ghz/PowerMac G5 2.0Ghz DP 7,2 Radeon 9650/256MBJoin the conversation @
r/morphos