Bug#713720: gnome-system-tools: FTBFS: ld: main.o: undefined reference to symbol 'g_thread_init'

David Suárez david.sephirot at gmail.com
Sat Jun 22 12:28:23 UTC 2013


Source: gnome-system-tools
Version: 3.0.0-2
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20130620 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Maybe you need to add explicitly the offending lib to LD flags.

Relevant part:
> gcc -DHAVE_CONFIG_H -I. -I../.. -DPIXMAPS_DIR=\""/usr/share/gnome-system-tools/pixmaps"\" -DINTERFACES_DIR=\""/usr/share/gnome-system-tools/ui"\" -DFRONTEND_DIR=\"""\" -DDESKTOP_DATA_DIR=\"""\" -DCONF_DIR=\""/etc/gnome-system-tools"\" -I../../src/common -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/libdrm -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/liboobs-1.0   -pthread -I/usr/include/polkit-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include    -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE   -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat-security -c main.c
> main.c: In function 'main':
> main.c:91:3: warning: 'g_thread_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:260) [-Wdeprecated-declarations]
>    g_thread_init (NULL);
>    ^
> /bin/bash ../../libtool  --tag=CC   --mode=link gcc  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat-security  -Wl,-z,relro -Wl,-z,defs -Wl,-O1 -o network-admin address-list.o network-tool.o callbacks.o hosts.o main.o ../../src/common/libsetuptool.a -Wl,--export-dynamic -pthread -lgtk-3 -lgdk-3 -latk-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lgmodule-2.0 -lgio-2.0 -lpango-1.0 -loobs-1 -lgobject-2.0 -lglib-2.0   -lpolkit-gobject-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0   -ldbus-1    
> libtool: link: gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat-security -Wl,-z -Wl,relro -Wl,-z -Wl,defs -Wl,-O1 -o network-admin address-list.o network-tool.o callbacks.o hosts.o main.o -Wl,--export-dynamic -pthread  ../../src/common/libsetuptool.a -lgtk-3 -lgdk-3 -latk-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so -lgmodule-2.0 -lpango-1.0 -loobs-1 -lpolkit-gobject-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -ldbus-1 -pthread
> /usr/bin/ld: main.o: undefined reference to symbol 'g_thread_init'
> /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2013/06/20/gnome-system-tools_3.0.0-2_unstable.log

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.




More information about the pkg-gnome-maintainers mailing list