UNABLE to link statically



I wrote about this last weekend and received no response...   at that
time I had over 1400 link errors.  By redoing all gtkmm packages and
their dependencies with --enable-static set I have reduced those errors
to the following 12:


/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x49a): In function
`FcConfigMessage': 
/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:495: undefined
reference to `XML_GetCurrentLineNumber'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x527):/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:498:
undefined reference to `XML_GetCurrentLineNumber'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x1db9): In function
`FcConfigParseAndLoad': 
/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:2414: undefined
reference to `XML_ParserCreate'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x1dfe):/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:2426:
undefined reference to `XML_SetUserData'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x1e18):/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:2428:
undefined reference to `XML_SetDoctypeDeclHandler'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x1e32):/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:2429:
undefined reference to `XML_SetElementHandler'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x1e43):/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:2430:
undefined reference to `XML_SetCharacterDataHandler'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x1e5d):/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:2436:
undefined reference to `XML_GetBuffer'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x1e9e):/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:2453:
undefined reference to `XML_ParseBuffer'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x1ec5):/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:2465:
undefined reference to `XML_ParserFree'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x21d8):/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:2456:
undefined reference to `XML_GetErrorCode'
/opt/gnome/lib/libfontconfig.a(fcxml.o)(.text+0x21e0):/home/bob/Downloads/fontconfig-2.3.93/src/fcxml.c:2456:
undefined reference to `XML_ErrorString'


Running readelf -s libexpat.a in the /opt/gnome/lib directory shows all
of these symbols to be present.   And I DO have -lexpat in my linker
command line; nevertheless, I still get the above errors.  Can *anyone*
please give me a hint as to what I'm doing wrong?

I can really use some advice here guys.

Thanks,

Bob Caryl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]