| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Thu Aug 30, 2007 11:22 am Post subject: Cross-Compiling Icecast fails to find libxml2 |
|
|
I am attempting to cross-compile the icecast server using buildroot for use on the gumstix boards. All prerequisites have been installed into the toolchain:libxml2, libxslt, libogg, libvorbis. When I run configure, I can specify the xslt config by stating --with-xslt-confg = <path>/xsltConfig.sh. I believe my problem is because there is no similar flag for xml2. I receive the following output when I go to install the the package:
Snippet:
| Code: |
/home/dmfrey/dev/embedded/gumstix-buildroot/build_arm_nofpu/staging_dir/bin/arm-linux-uclibcgnueabi-gcc -pthread -pipe -Os -march=armv5te -mtune=xscale -Wa,-mcpu=xscale -o icecast cfgfile.o main.o logging.o sighandler.o connection.o global.o util.o slave.o source.o stats.o refbuf.o client.o xslt.o fserve.o event.o admin.o md5.o format.o format_ogg.o format_mp3.o format_midi.o format_flac.o auth.o auth_htpasswd.o format_vorbis.o -L/home/dmfrey/dev/embedded/gumstix-buildroot/build_arm_nofpu/staging_dir/usr/lib net/.libs/libicenet.a thread/.libs/libicethread.a httpp/.libs/libicehttpp.a log/.libs/libicelog.a avl/.libs/libiceavl.a timing/.libs/libicetiming.a /home/dmfrey/dev/embedded/gumstix-buildroot/build_arm_nofpu/staging_dir/usr/lib/libvorbis.a /home/dmfrey/dev/embedded/gumstix-buildroot/build_arm_nofpu/staging_dir/usr/lib/libogg.a -lm
cfgfile.o: In function `_parse_limits':
cfgfile.c:(.text+0x110): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0x140): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x178): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1b0): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1e8): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x220): undefined reference to `xmlNodeListGetString'
cfgfile.o:cfgfile.c:(.text+0x258): more undefined references to `xmlNodeListGetString' follow
cfgfile.o: In function `_parse_limits':
cfgfile.c:(.text+0x364): undefined reference to `xmlFree'
cfgfile.o: In function `_parse_relay':
cfgfile.c:(.text+0x3d8): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0x408): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x434): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x46c): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x498): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x4c4): undefined reference to `xmlNodeListGetString'
cfgfile.o:cfgfile.c:(.text+0x4fc): more undefined references to `xmlNodeListGetString' follow
cfgfile.o: In function `_parse_relay':
cfgfile.c:(.text+0x598): undefined reference to `xmlStrdup'
cfgfile.c:(.text+0x5c8): undefined reference to `xmlFree'
cfgfile.o: In function `config_clear_mount':
cfgfile.c:(.text+0x6f0): undefined reference to `xmlFree'
cfgfile.o: In function `_parse_mount':
cfgfile.c:(.text+0x744): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0x774): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x7a0): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x7cc): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x7f8): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x824): undefined reference to `xmlNodeListGetString'
cfgfile.o:cfgfile.c:(.text+0x850): more undefined references to `xmlNodeListGetString' follow
cfgfile.o: In function `_parse_mount':
cfgfile.c:(.text+0xdb0): undefined reference to `xmlFree'
cfgfile.o: In function `_parse_directory':
cfgfile.c:(.text+0xe0c): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0xe60): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0xe90): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0xeec): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0xf24): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0xf4c): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0xfdc): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x103c): undefined reference to `xmlFree'
cfgfile.o: In function `_parse_paths':
cfgfile.c:(.text+0x1068): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0x10bc): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x110c): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1150): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x11a0): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x11f8): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x124c): undefined reference to `xmlGetProp'
cfgfile.c:(.text+0x1264): undefined reference to `xmlGetProp'
cfgfile.c:(.text+0x1298): undefined reference to `xmlGetProp'
cfgfile.c:(.text+0x12cc): undefined reference to `xmlGetProp'
cfgfile.c:(.text+0x1314): undefined reference to `xmlFree'
cfgfile.o: In function `config_clear':
cfgfile.c:(.text+0x173c): undefined reference to `xmlFree'
cfgfile.o: In function `config_init_configuration':
cfgfile.c:(.text+0x1830): undefined reference to `xmlStrdup'
cfgfile.c:(.text+0x188c): undefined reference to `xmlStrdup'
cfgfile.o: In function `config_parse_file':
cfgfile.c:(.text+0x18f8): undefined reference to `xmlInitParser'
cfgfile.c:(.text+0x1900): undefined reference to `xmlParseFile'
cfgfile.c:(.text+0x1910): undefined reference to `xmlDocGetRootElement'
cfgfile.c:(.text+0x1920): undefined reference to `xmlFreeDoc'
cfgfile.c:(.text+0x1924): undefined reference to `xmlCleanupParser'
cfgfile.c:(.text+0x1948): undefined reference to `xmlFreeDoc'
cfgfile.c:(.text+0x194c): undefined reference to `xmlCleanupParser'
cfgfile.c:(.text+0x197c): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0x19d0): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1a20): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1a50): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0x1a7c): undefined reference to `xmlGetProp'
cfgfile.c:(.text+0x1a94): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1acc): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1b10): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1b54): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1b98): undefined reference to `xmlNodeListGetString'
cfgfile.o:cfgfile.c:(.text+0x1bdc): more undefined references to `xmlNodeListGetString' follow
cfgfile.o: In function `config_parse_file':
cfgfile.c:(.text+0x1c08): undefined reference to `xmlGetProp'
cfgfile.c:(.text+0x1c20): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1c58): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1c84): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1cbc): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1cf4): undefined reference to `xmlNodeListGetString'
cfgfile.o:cfgfile.c:(.text+0x1d50): more undefined references to `xmlNodeListGetString' follow
cfgfile.o: In function `config_parse_file':
cfgfile.c:(.text+0x1db8): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0x1de8): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1e38): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1e84): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1eb4): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x1f14): undefined reference to `xmlNodeListGetString'
cfgfile.o:cfgfile.c:(.text+0x1f58): more undefined references to `xmlNodeListGetString' follow
cfgfile.o: In function `config_parse_file':
cfgfile.c:(.text+0x21a0): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0x21f4): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x2244): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x2288): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x22b4): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x22ec): undefined reference to `xmlNodeListGetString'
cfgfile.o:cfgfile.c:(.text+0x2324): more undefined references to `xmlNodeListGetString' follow
cfgfile.o: In function `config_parse_file':
cfgfile.c:(.text+0x2378): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0x23a8): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x2400): undefined reference to `xmlIsBlankNode'
cfgfile.c:(.text+0x2450): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x248c): undefined reference to `xmlNodeListGetString'
cfgfile.c:(.text+0x24b0): undefined reference to `xmlFreeDoc'
cfgfile.c:(.text+0x24d4): undefined reference to `xmlFree'
main.o: In function `_shutdown_subsystems':
main.c:(.text+0x84): undefined reference to `xmlCleanupParser'
slave.o: In function `relay_copy':
slave.c:(.text+0x164): undefined reference to `xmlStrdup'
slave.c:(.text+0x170): undefined reference to `xmlStrdup'
slave.c:(.text+0x17c): undefined reference to `xmlStrdup'
slave.c:(.text+0x190): undefined reference to `xmlStrdup'
slave.c:(.text+0x1a4): undefined reference to `xmlStrdup'
slave.o: In function `relay_free':
slave.c:(.text+0x78c): undefined reference to `xmlFree'
slave.o: In function `_slave_thread':
slave.c:(.text+0xd90): undefined reference to `xmlStrdup'
slave.c:(.text+0xda4): undefined reference to `xmlStrdup'
slave.c:(.text+0xdb0): undefined reference to `xmlStrdup'
stats.o: In function `_find_xml_node':
stats.c:(.text+0x248): undefined reference to `xmlNewChild'
stats.c:(.text+0x258): undefined reference to `xmlSetProp'
stats.o: In function `stats_sendxml':
stats.c:(.text+0x4e4): undefined reference to `xmlNewDoc'
stats.c:(.text+0x4f8): undefined reference to `xmlNewDocNode'
stats.c:(.text+0x508): undefined reference to `xmlDocSetRootElement'
stats.c:(.text+0x534): undefined reference to `xmlNewChild'
stats.c:(.text+0x56c): undefined reference to `xmlDocDumpMemory'
stats.c:(.text+0x574): undefined reference to `xmlFreeDoc'
stats.c:(.text+0x614): undefined reference to `xmlFree'
stats.o: In function `stats_get_xml':
stats.c:(.text+0x644): undefined reference to `xmlNewDoc'
stats.c:(.text+0x658): undefined reference to `xmlNewDocNode'
stats.c:(.text+0x668): undefined reference to `xmlDocSetRootElement'
stats.c:(.text+0x688): undefined reference to `xmlEncodeEntitiesReentrant'
stats.c:(.text+0x698): undefined reference to `xmlEncodeEntitiesReentrant'
stats.c:(.text+0x6d0): undefined reference to `xmlNewChild'
stats.c:(.text+0x744): undefined reference to `xmlFree'
stats.o: In function `stats_transform_xslt':
stats.c:(.text+0x780): undefined reference to `xmlFreeDoc'
xslt.o: In function `xslt_shutdown':
xslt.c:(.text+0x28): undefined reference to `xsltFreeStylesheet'
xslt.c:(.text+0x44): undefined reference to `xsltCleanupGlobals'
xslt.o: In function `xslt_initialize':
xslt.c:(.text+0x5c): undefined reference to `xmlSubstituteEntitiesDefault'
xslt.c:(.text+0x60): undefined reference to `__xmlLoadExtDtdDefaultValue'
xslt.c:(.text+0x90): undefined reference to `xmlSubstituteEntitiesDefault'
xslt.c:(.text+0x94): undefined reference to `__xmlLoadExtDtdDefaultValue'
xslt.o: In function `xsltSaveResultToString':
xslt.c:(.text+0xe4): undefined reference to `xmlAllocOutputBuffer'
xslt.c:(.text+0xfc): undefined reference to `xsltSaveResultTo'
xslt.c:(.text+0x120): undefined reference to `xmlStrndup'
xslt.c:(.text+0x12c): undefined reference to `xmlOutputBufferClose'
xslt.o: In function `xslt_transform':
xslt.c:(.text+0x15c): undefined reference to `xmlSetGenericErrorFunc'
xslt.c:(.text+0x168): undefined reference to `xsltSetGenericErrorFunc'
xslt.c:(.text+0x210): undefined reference to `xsltFreeStylesheet'
xslt.c:(.text+0x220): undefined reference to `xsltParseStylesheetFile'
xslt.c:(.text+0x2c0): undefined reference to `xsltFreeStylesheet'
xslt.c:(.text+0x2ec): undefined reference to `xsltParseStylesheetFile'
xslt.c:(.text+0x35c): undefined reference to `xsltApplyStylesheet'
xslt.c:(.text+0x3a8): undefined reference to `xmlStrdup'
xslt.c:(.text+0x424): undefined reference to `xmlFreeDoc'
xslt.c:(.text+0x4b4): undefined reference to `xmlFree'
event.o: In function `event_config_read':
event.c:(.text+0x1c): undefined reference to `xmlSetGenericErrorFunc'
admin.o: In function `admin_send_response':
admin.c:(.text+0x3cc): undefined reference to `xmlDocDumpMemory'
admin.c:(.text+0x4f0): undefined reference to `xmlFree'
admin.o: In function `command_metadata':
admin.c:(.text+0x524): undefined reference to `xmlNewDoc'
admin.c:(.text+0x538): undefined reference to `xmlNewDocNode'
admin.c:(.text+0x548): undefined reference to `xmlDocSetRootElement'
admin.c:(.text+0x5e8): undefined reference to `xmlNewChild'
admin.c:(.text+0x6c0): undefined reference to `xmlNewChild'
admin.c:(.text+0x6d4): undefined reference to `xmlNewChild'
admin.c:(.text+0x6f8): undefined reference to `xmlFreeDoc'
admin.o: In function `command_kill_source':
admin.c:(.text+0x778): undefined reference to `xmlNewDoc'
admin.c:(.text+0x78c): undefined reference to `xmlNewDocNode'
admin.c:(.text+0x7a0): undefined reference to `xmlNewChild'
admin.c:(.text+0x7b4): undefined reference to `xmlNewChild'
admin.c:(.text+0x7c0): undefined reference to `xmlDocSetRootElement'
admin.c:(.text+0x7e8): undefined reference to `xmlFreeDoc'
admin.o: In function `command_updatemetadata':
admin.c:(.text+0x8b8): undefined reference to `xmlNewDoc'
admin.c:(.text+0x8cc): undefined reference to `xmlNewDocNode'
admin.c:(.text+0x8e0): undefined reference to `xmlNewChild'
admin.c:(.text+0x8ec): undefined reference to `xmlSetProp'
admin.c:(.text+0x8f8): undefined reference to `xmlDocSetRootElement'
admin.c:(.text+0x918): undefined reference to `xmlFreeDoc'
admin.o: In function `command_show_listeners':
admin.c:(.text+0x954): undefined reference to `xmlNewDoc'
admin.c:(.text+0x968): undefined reference to `xmlNewDocNode'
admin.c:(.text+0x97c): undefined reference to `xmlNewChild'
admin.c:(.text+0x990): undefined reference to `xmlSetProp'
admin.c:(.text+0x99c): undefined reference to `xmlDocSetRootElement'
admin.c:(.text+0x9d4): undefined reference to `xmlNewChild'
admin.c:(.text+0x9f0): undefined reference to `xmlNewChild'
admin.c:(.text+0xa08): undefined reference to `xmlNewChild'
admin.c:(.text+0xa40): undefined reference to `xmlNewChild'
admin.c:(.text+0xa84): undefined reference to `xmlNewChild'
admin.o:admin.c:(.text+0xac0): more undefined references to `xmlNewChild' follow
admin.o: In function `command_show_listeners':
admin.c:(.text+0xb24): undefined reference to `xmlFreeDoc'
admin.o: In function `command_kill_client':
admin.c:(.text+0xbdc): undefined reference to `xmlNewDoc'
admin.c:(.text+0xbf0): undefined reference to `xmlNewDocNode'
admin.c:(.text+0xc04): undefined reference to `xmlDocSetRootElement'
admin.c:(.text+0xc94): undefined reference to `xmlNewChild'
admin.c:(.text+0xce0): undefined reference to `xmlNewChild'
admin.c:(.text+0xcf4): undefined reference to `xmlNewChild'
admin.c:(.text+0xd10): undefined reference to `xmlFreeDoc'
admin.o: In function `admin_build_sourcelist':
admin.c:(.text+0xd7c): undefined reference to `xmlNewDoc'
admin.c:(.text+0xd90): undefined reference to `xmlNewDocNode'
admin.c:(.text+0xda0): undefined reference to `xmlDocSetRootElement'
admin.c:(.text+0xdbc): undefined reference to `xmlNewChild'
admin.c:(.text+0xe18): undefined reference to `xmlNewChild'
admin.c:(.text+0xe28): undefined reference to `xmlSetProp'
admin.c:(.text+0xe4c): undefined reference to `xmlNewChild'
admin.c:(.text+0xe74): undefined reference to `xmlNewChild'
admin.c:(.text+0xea8): undefined reference to `xmlNewChild'
admin.c:(.text+0xef4): undefined reference to `xmlNewChild'
admin.c:(.text+0xf0c): undefined reference to `xmlNewChild'
admin.o: In function `command_list_mounts':
admin.c:(.text+0x10cc): undefined reference to `xmlFreeDoc'
admin.o: In function `command_move_clients':
admin.c:(.text+0x1210): undefined reference to `xmlNewDoc'
admin.c:(.text+0x1224): undefined reference to `xmlNewDocNode'
admin.c:(.text+0x1234): undefined reference to `xmlDocSetRootElement'
admin.c:(.text+0x1280): undefined reference to `xmlNewChild'
admin.c:(.text+0x1294): undefined reference to `xmlNewChild'
admin.c:(.text+0x12b0): undefined reference to `xmlFreeDoc'
admin.o: In function `command_manageauth':
admin.c:(.text+0x14c0): undefined reference to `xmlNewDoc'
admin.c:(.text+0x14d4): undefined reference to `xmlNewDocNode'
admin.c:(.text+0x14e8): undefined reference to `xmlNewChild'
admin.c:(.text+0x14f8): undefined reference to `xmlSetProp'
admin.c:(.text+0x1514): undefined reference to `xmlNewChild'
admin.c:(.text+0x1524): undefined reference to `xmlNewChild'
admin.c:(.text+0x1584): undefined reference to `xmlFreeDoc'
admin.c:(.text+0x158c): undefined reference to `xmlNewDoc'
admin.c:(.text+0x15a0): undefined reference to `xmlNewDocNode'
admin.c:(.text+0x15b4): undefined reference to `xmlNewChild'
admin.c:(.text+0x15c4): undefined reference to `xmlSetProp'
admin.c:(.text+0x15d0): undefined reference to `xmlDocSetRootElement'
admin.c:(.text+0x15e8): undefined reference to `xmlDocSetRootElement'
admin.o: In function `command_stats':
admin.c:(.text+0x16bc): undefined reference to `xmlFreeDoc'
auth.o: In function `auth_get_authenticator':
auth.c:(.text+0x294): undefined reference to `xmlGetProp'
auth.c:(.text+0x2b4): undefined reference to `xmlGetProp'
auth.c:(.text+0x330): undefined reference to `xmlGetProp'
auth.c:(.text+0x448): undefined reference to `xmlFree'
auth.o: In function `auth_release':
auth.c:(.text+0xd28): undefined reference to `xmlFree'
auth_htpasswd.o: In function `htpasswd_userlist':
auth_htpasswd.c:(.text+0x480): undefined reference to `xmlNewChild'
auth_htpasswd.c:(.text+0x494): undefined reference to `xmlNewChild'
auth_htpasswd.c:(.text+0x4a8): undefined reference to `xmlNewChild'
collect2: ld returned 1 exit status
make[4]: *** [icecast] Error 1
make[4]: Leaving directory `/home/dmfrey/dev/embedded/gumstix-buildroot/build_arm_nofpu/icecast-2.3.1/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/dmfrey/dev/embedded/gumstix-buildroot/build_arm_nofpu/icecast-2.3.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dmfrey/dev/embedded/gumstix-buildroot/build_arm_nofpu/icecast-2.3.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/dmfrey/dev/embedded/gumstix-buildroot/build_arm_nofpu/icecast-2.3.1'
make: *** [/home/dmfrey/dev/embedded/gumstix-buildroot/build_arm_nofpu/icecast-2.3.1/.libs] Error 2
|
I am not sure how else to link in xml2. Any suggestions would be greatly appreciated.
Dan |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Aug 30, 2007 4:03 pm Post subject: |
|
|
You should have a xml2-config for cross compiling, failing that you can set the usual variables to pass LIBS, CFLAGS etc
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Aug 30, 2007 4:18 pm Post subject: |
|
|
The xml2Config.sh file is in my staging_dir/usr/lib. It is not finding it in that location, even though that dir is on the path.
| Code: |
-L/home/dmfrey/dev/embedded/gumstix-buildroot/build_arm_nofpu/staging_dir/usr/lib
|
I guess I will see about passing the xml2Config.sh in with the CFLAGS and LIBS. There is also a config in staging_dir/usr/lib/pkgconfig. I would have expected the path or the pkgconfig to be able to locate what is needed. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|