Bug#615728: gvfs: ftbfs with gold or ld --no-add-needed

Matthias Klose doko at debian.org
Mon Feb 28 00:52:45 UTC 2011


Package: gvfs
Version: 1.6.4-3
Severity: important
Tags: sid
User: peter.fritzsche at gmx.de
Usertags: no-add-needed

The package fails to build in a test rebuild on at least amd64 with
ld --no-add-needed.  For details, please see:
http://lists.debian.org/debian-devel-announce/2011/02/msg00011.html
http://wiki.debian.org/ToolChain/DSOLinking

Ubuntu might have a patch for this issue, but unfortunately it was
not forwarded to Debian.  Please have a look at
http://packages.qa.debian.org/gvfs to see if an Ubuntu version for
this package exists, and if a fix is included in the Ubuntu diff.

[...]
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../common -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -DG_UDEV_API_IS_SUBJECT_TO_CHANGE -DLIBEXEC_DIR=\"/usr/lib/gvfs/\" -DMOUNTABLE_DIR=\"/usr/share/gvfs/mounts/\" -DGVFS_LOCALEDIR=\""/usr/share/locale"\"  -DBACKEND_HEADER=gvfsbackendarchive.h -DDEFAULT_BACKEND_TYPE=archive -DMAX_JOB_THREADS=1  -DBACKEND_TYPES='"archive", G_VFS_TYPE_BACKEND_ARCHIVE,'   -g -O2 -g -O2 -c -o gvfsd_archive-daemon-main-generic.o `test -f 'daemon-main-generic.c' || echo './'`daemon-main-generic.c
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -g -O2  -Wl,-z,defs -Wl,-O1 -Wl,--as-needed -o gvfsd-archive gvfsd_archive-gvfsbackendarchive.o gvfsd_archive-daemon-main.o gvfsd_archive-daemon-main-generic.o libgvfsdaemon.la ../common/libgvfscommon.la -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -ldbus-1 -lpthread -lrt   -larchive -lutil 
libtool: link: gcc -g -O2 -g -O2 -Wl,-z -Wl,defs -Wl,-O1 -o .libs/gvfsd-archive gvfsd_archive-gvfsbackendarchive.o gvfsd_archive-daemon-main.o gvfsd_archive-daemon-main-generic.o -pthread  -Wl,--as-needed ./.libs/libgvfsdaemon.so ../common/.libs/libgvfscommon.so /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so /usr/lib/libglib-2.0.so -ldbus-1 -lpthread -lrt /usr/lib/libarchive.so -lutil -pthread -Wl,-rpath -Wl,/usr/lib/gvfs
\
#	source='gvfsbackendafc.c' object='gvfsd_afc-gvfsbackendafc.o' libtool=no 
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../common -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -DG_UDEV_API_IS_SUBJECT_TO_CHANGE -DLIBEXEC_DIR=\"/usr/lib/gvfs/\" -DMOUNTABLE_DIR=\"/usr/share/gvfs/mounts/\" -DGVFS_LOCALEDIR=\""/usr/share/locale"\"  -DBACKEND_HEADER=gvfsbackendafc.h -DDEFAULT_BACKEND_TYPE=afc -DMAX_JOB_THREADS=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -DBACKEND_TYPES='"afc", G_VFS_TYPE_BACKEND_AFC,'   -g -O2 -g -O2 -c -o gvfsd_afc-gvfsbackendafc.o `test -f 'gvfsbackendafc.c' || echo './'`gvfsbackendafc.c
\
#	source='daemon-main.c' object='gvfsd_afc-daemon-main.o' libtool=no 
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../common -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -DG_UDEV_API_IS_SUBJECT_TO_CHANGE -DLIBEXEC_DIR=\"/usr/lib/gvfs/\" -DMOUNTABLE_DIR=\"/usr/share/gvfs/mounts/\" -DGVFS_LOCALEDIR=\""/usr/share/locale"\"  -DBACKEND_HEADER=gvfsbackendafc.h -DDEFAULT_BACKEND_TYPE=afc -DMAX_JOB_THREADS=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -DBACKEND_TYPES='"afc", G_VFS_TYPE_BACKEND_AFC,'   -g -O2 -g -O2 -c -o gvfsd_afc-daemon-main.o `test -f 'daemon-main.c' || echo './'`daemon-main.c
\
#	source='daemon-main-generic.c' object='gvfsd_afc-daemon-main-generic.o' libtool=no 
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../common -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -DG_UDEV_API_IS_SUBJECT_TO_CHANGE -DLIBEXEC_DIR=\"/usr/lib/gvfs/\" -DMOUNTABLE_DIR=\"/usr/share/gvfs/mounts/\" -DGVFS_LOCALEDIR=\""/usr/share/locale"\"  -DBACKEND_HEADER=gvfsbackendafc.h -DDEFAULT_BACKEND_TYPE=afc -DMAX_JOB_THREADS=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -DBACKEND_TYPES='"afc", G_VFS_TYPE_BACKEND_AFC,'   -g -O2 -g -O2 -c -o gvfsd_afc-daemon-main-generic.o `test -f 'daemon-main-generic.c' || echo './'`daemon-main-generic.c
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -g -O2  -Wl,-z,defs -Wl,-O1 -Wl,--as-needed -o gvfsd-afc gvfsd_afc-gvfsbackendafc.o gvfsd_afc-daemon-main.o gvfsd_afc-daemon-main-generic.o libgvfsdaemon.la ../common/libgvfscommon.la -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -ldbus-1 -lpthread -lrt   -limobiledevice   -lutil 
libtool: link: gcc -g -O2 -g -O2 -Wl,-z -Wl,defs -Wl,-O1 -o .libs/gvfsd-afc gvfsd_afc-gvfsbackendafc.o gvfsd_afc-daemon-main.o gvfsd_afc-daemon-main-generic.o -pthread  -Wl,--as-needed ./.libs/libgvfsdaemon.so ../common/.libs/libgvfscommon.so /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so /usr/lib/libglib-2.0.so -ldbus-1 -lpthread -lrt -limobiledevice -lutil -pthread -Wl,-rpath -Wl,/usr/lib/gvfs
/usr/bin/ld: gvfsd_afc-gvfsbackendafc.o: undefined reference to symbol 'plist_get_node_type'
/usr/bin/ld: note: 'plist_get_node_type' is defined in DSO /usr/lib64/libplist.so.1 so try adding it to the linker command line
/usr/lib64/libplist.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[5]: *** [gvfsd-afc] Error 1
make[5]: Leaving directory `/build/user-gvfs_1.6.4-3-amd64-Ts7DfE/gvfs-1.6.4/daemon'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/build/user-gvfs_1.6.4-3-amd64-Ts7DfE/gvfs-1.6.4/daemon'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/build/user-gvfs_1.6.4-3-amd64-Ts7DfE/gvfs-1.6.4/daemon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/user-gvfs_1.6.4-3-amd64-Ts7DfE/gvfs-1.6.4'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/user-gvfs_1.6.4-3-amd64-Ts7DfE/gvfs-1.6.4'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2






More information about the pkg-gnome-maintainers mailing list