[Pkg-ayatana-devel] Bug#615744: libindicate: ftbfs with gold or ld --no-add-needed

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


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

[...]
Making all in reference
make[4]: Entering directory `/build/user-libindicate_0.4.1-2-amd64-EyGhIr/libindicate-0.4.1/docs/reference'
gtk-doc: Scanning header files
cd . && \
	  gtkdoc-scan --module=libindicate --source-dir=../../libindicate --ignore-headers="dbus-indicate-client.h dbus-indicate-server.h dbus-listener-client.h dbus-listener-server.h listener-marshal.h"  
if grep -l '^..*$' ./libindicate.types > /dev/null 2>&1 ; then \
	    CC="/bin/bash ../../libtool --mode=compile gcc -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libdbusmenu-0.1 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include      -g -O2 -g -O2" LD="/bin/bash ../../libtool --mode=link gcc  -g -O2 -g -O2  -Wl,-z,defs -Wl,--as-needed" RUN="/bin/bash ../../libtool --mode=execute" CFLAGS=" -g -O2 -g -O2" LDFLAGS="../../libindicate/libindicate.la -Wl,-z,defs -Wl,--as-needed" gtkdoc-scangobj --nogtkinit --type-init-func="g_type_init()" --module=libindicate --output-dir=. ; \
	else \
	    cd . ; \
	    for i in libindicate.args libindicate.hierarchy libindicate.interfaces libindicate.prerequisites libindicate.signals ; do \
               test -f $i || touch $i ; \
	    done \
	fi
gtk-doc: Compiling scanner
libtool: compile:  gcc -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libdbusmenu-0.1 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -g -O2 -g -O2 -g -O2 -c libindicate-scan.c  -fPIC -DPIC -o .libs/libindicate-scan.o
libtool: compile:  gcc -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libdbusmenu-0.1 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -g -O2 -g -O2 -g -O2 -c libindicate-scan.c -o libindicate-scan.o >/dev/null 2>&1
gtk-doc: Linking scanner
libtool: link: gcc -g -O2 -g -O2 -Wl,-z -Wl,defs -Wl,--as-needed .libs/libindicate-scan.o -Wl,-z -Wl,defs -Wl,--as-needed -o .libs/libindicate-scan  ../../libindicate/.libs/libindicate.so -pthread 
/usr/bin/ld: .libs/libindicate-scan.o: undefined reference to symbol 'g_enum_get_value'
/usr/bin/ld: note: 'g_enum_get_value' is defined in DSO /usr/lib64/libgobject-2.0.so.0 so try adding it to the linker command line
/usr/lib64/libgobject-2.0.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Linking of scanner failed: 
make[4]: *** [scan-build.stamp] Error 1
make[4]: Leaving directory `/build/user-libindicate_0.4.1-2-amd64-EyGhIr/libindicate-0.4.1/docs/reference'
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2





More information about the Pkg-ayatana-devel mailing list