Bug 36317 - build failure: libarchive.so: undefined reference to `xmlCleanupParser@LIBXML2_2.4.30'
Summary: build failure: libarchive.so: undefined reference to `xmlCleanupParser@LIBXML...
Status: RESOLVED NOTOURBUG
Alias: None
Product: PackageKit
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-16 21:24 UTC by Craig Keogh
Modified: 2011-04-17 01:18 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Craig Keogh 2011-04-16 21:24:23 UTC
I am building PackageKit git master via JHBuild on Fedora 14. The following error occurs:

/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include   -pthread -I/opt/gnome/include/dbus-1.0 -I/opt/gnome/lib64/dbus-1.0/include -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include   -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -I/opt/gnome/include/gio-unix-2.0/   -pthread -I/opt/gnome/include/polkit-1 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include    -I../../lib -I../../lib -I. -DPK_COMPILATION -DPK_DB_DIR=\""/opt/gnome/var/lib/PackageKit"\" -DG_LOG_DOMAIN=\"PackageKit\" -DLOCALSTATEDIR=\""/opt/gnome/var"\" -DTESTDATADIR=\""../../data/tests"\" -DPACKAGE_DATA_DIR=\""/opt/gnome/share"\" -DPACKAGE_LOCALE_DIR=\""/opt/gnome/share/locale"\"  -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -DGSEAL_ENABLE -Werror -Wall -Wcast-align -Wno-uninitialized -Wmissing-declarations -Wpointer-arith -Wcast-align -Wwrite-strings -Winit-self -Wreturn-type -Wformat-nonliteral -Wformat-security -Wmissing-include-dirs -Wmissing-format-attribute -Wsign-compare -Wuninitialized -Waggregate-return -Wdeclaration-after-statement -Wshadow -Wno-strict-aliasing -Winline  -O0 -g -MT libpackagekit_glib2_la-pk-source.lo -MD -MP -MF .deps/libpackagekit_glib2_la-pk-source.Tpo -c -o libpackagekit_glib2_la-pk-source.lo `test -f 'pk-source.c' || echo './'`pk-source.c
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlCleanupParser@LIBXML2_2.4.30'
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlTextReaderSetErrorHandler@LIBXML2_2.5.2'
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlTextReaderNodeType@LIBXML2_2.4.30'
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlTextReaderConstValue@LIBXML2_2.6.0'
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlTextReaderConstLocalName@LIBXML2_2.6.0'
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlTextReaderMoveToNextAttribute@LIBXML2_2.5.0'
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlTextReaderIsEmptyElement@LIBXML2_2.4.30'
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -pthread -I/opt/gnome/include/dbus-1.0 -I/opt/gnome/lib64/dbus-1.0/include -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -I/opt/gnome/include/gio-unix-2.0/ -pthread -I/opt/gnome/include/polkit-1 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -I../../lib -I../../lib -I. -DPK_COMPILATION -DPK_DB_DIR=\"/opt/gnome/var/lib/PackageKit\" -DG_LOG_DOMAIN=\"PackageKit\" -DLOCALSTATEDIR=\"/opt/gnome/var\" -DTESTDATADIR=\"../../data/tests\" -DPACKAGE_DATA_DIR=\"/opt/gnome/share\" -DPACKAGE_LOCALE_DIR=\"/opt/gnome/share/locale\" -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -DGSEAL_ENABLE -Werror -Wall -Wcast-align -Wno-uninitialized -Wmissing-declarations -Wpointer-arith -Wcast-align -Wwrite-strings -Winit-self -Wreturn-type -Wformat-nonliteral -Wformat-security -Wmissing-include-dirs -Wmissing-format-attribute -Wsign-compare -Wuninitialized -Waggregate-return -Wdeclaration-after-statement -Wshadow -Wno-strict-aliasing -Winline -O0 -g -MT libpackagekit_glib2_la-pk-source.lo -MD -MP -MF .deps/libpackagekit_glib2_la-pk-source.Tpo -c pk-source.c  -fPIC -DPIC -o .libs/libpackagekit_glib2_la-pk-source.o
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlTextReaderRead@LIBXML2_2.4.30'
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlFreeTextReader@LIBXML2_2.4.30'
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlReaderForIO@LIBXML2_2.6.0'
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libarchive.so: undefined reference to `xmlTextReaderMoveToFirstAttribute@LIBXML2_2.5.0'
collect2: ld returned 1 exit status
mv -f .deps/libpackagekit_glib2_la-pk-source.Tpo .deps/libpackagekit_glib2_la-pk-source.Plo
linking of temporary binary failed: Command '['/bin/sh', '../../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/home/Oxyde/gnome/PackageKit/lib/packagekit-glib2/tmp-introspectoUHeMU/PackageKitGlib-1.0', '-export-dynamic', '-O0', '-g', '-L.', 'libpackagekit-glib2.la', '-pthread', '-L/opt/gnome/lib64', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/home/Oxyde/gnome/PackageKit/lib/packagekit-glib2/tmp-introspectoUHeMU/PackageKitGlib-1.0.o']' returned non-zero exit status 1
make[4]: *** [PackageKitGlib-1.0.gir] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Comment 1 Craig Keogh 2011-04-17 01:18:53 UTC
This is a bug with Fedora 14's libarchive. If I build libarchive myself, PackageKit builds fine.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.