[Pkg-utopia-maintainers] Bug#615789: udisks: ftbfs with gold or ld --no-add-needed

Matthias Klose doko at debian.org
Mon Feb 28 00:53:50 UTC 2011


Package: udisks
Version: 1.0.1+git20100614-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/udisks to see if an Ubuntu version for
this package exists, and if a fix is included in the Ubuntu diff.

[...]
\
#	source='inhibitor.c' object='udisks_daemon-inhibitor.o' libtool=no 
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -DPACKAGE_LIBEXEC_DIR=\""/usr/lib/udisks"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALSTATE_DIR=\""/var"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/lib"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -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   -pthread -I/usr/include/polkit-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/gudev-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I../src -DG_LOG_DOMAIN=\"udisks-daemon\"       -g -O2 -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -c -o udisks_daemon-inhibitor.o `test -f 'inhibitor.c' || echo './'`inhibitor.c
\
#	source='poller.c' object='udisks_daemon-poller.o' libtool=no 
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -DPACKAGE_LIBEXEC_DIR=\""/usr/lib/udisks"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALSTATE_DIR=\""/var"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/lib"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -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   -pthread -I/usr/include/polkit-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/gudev-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I../src -DG_LOG_DOMAIN=\"udisks-daemon\"       -g -O2 -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -c -o udisks_daemon-poller.o `test -f 'poller.c' || echo './'`poller.c
\
#	source='main.c' object='udisks_daemon-main.o' libtool=no 
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -DPACKAGE_LIBEXEC_DIR=\""/usr/lib/udisks"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALSTATE_DIR=\""/var"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/lib"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -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   -pthread -I/usr/include/polkit-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/gudev-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I../src -DG_LOG_DOMAIN=\"udisks-daemon\"       -g -O2 -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -c -o udisks_daemon-main.o `test -f 'main.c' || echo './'`main.c
\
#	source='marshal.c' object='udisks_daemon-marshal.o' libtool=no 
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -DPACKAGE_LIBEXEC_DIR=\""/usr/lib/udisks"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALSTATE_DIR=\""/var"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/lib"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -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   -pthread -I/usr/include/polkit-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/gudev-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I../src -DG_LOG_DOMAIN=\"udisks-daemon\"       -g -O2 -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -c -o udisks_daemon-marshal.o `test -f 'marshal.c' || echo './'`marshal.c
/bin/bash ../libtool  --tag=CC   --mode=link gcc   -g -O2 -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security  -Wl,--as-needed  -o udisks-daemon udisks_daemon-daemon.o udisks_daemon-device.o udisks_daemon-device-private.o udisks_daemon-adapter.o udisks_daemon-adapter-private.o udisks_daemon-expander.o udisks_daemon-expander-private.o udisks_daemon-port.o udisks_daemon-port-private.o udisks_daemon-mount-file.o udisks_daemon-mount.o udisks_daemon-mount-monitor.o udisks_daemon-inhibitor.o udisks_daemon-poller.o udisks_daemon-main.o udisks_daemon-marshal.o -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -pthread -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0   -pthread -lpolkit-gobject-1 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -pthread -lgudev-1.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0   -latasmart    
libtool: link: gcc -g -O2 -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -Wl,--as-needed -o udisks-daemon udisks_daemon-daemon.o udisks_daemon-device.o udisks_daemon-device-private.o udisks_daemon-adapter.o udisks_daemon-adapter-private.o udisks_daemon-expander.o udisks_daemon-expander-private.o udisks_daemon-port.o udisks_daemon-port-private.o udisks_daemon-mount-file.o udisks_daemon-mount.o udisks_daemon-mount-monitor.o udisks_daemon-inhibitor.o udisks_daemon-poller.o udisks_daemon-main.o udisks_daemon-marshal.o -pthread -pthread -pthread -pthread  -ldbus-glib-1 -ldbus-1 -lpthread -lpolkit-gobject-1 /usr/lib/libgio-2.0.so /usr/lib/libgmodule-2.0.so -lgudev-1.0 /usr/lib/libgobject-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so -latasmart -pthread
/usr/bin/ld: udisks_daemon-poller.o: undefined reference to symbol 'udev_device_unref'
/usr/bin/ld: note: 'udev_device_unref' is defined in DSO /lib64/libudev.so.0 so try adding it to the linker command line
/lib64/libudev.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[5]: *** [udisks-daemon] Error 1
make[5]: Leaving directory `/build/user-udisks_1.0.1+git20100614-3-amd64-jA0c3x/udisks-1.0.1+git20100614/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/build/user-udisks_1.0.1+git20100614-3-amd64-jA0c3x/udisks-1.0.1+git20100614/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/build/user-udisks_1.0.1+git20100614-3-amd64-jA0c3x/udisks-1.0.1+git20100614/src'
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make[2]: Leaving directory `/build/user-udisks_1.0.1+git20100614-3-amd64-jA0c3x/udisks-1.0.1+git20100614'
make[1]: Leaving directory `/build/user-udisks_1.0.1+git20100614-3-amd64-jA0c3x/udisks-1.0.1+git20100614'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2





More information about the Pkg-utopia-maintainers mailing list