GNOME Bugzilla – Bug 602615
rhythmbox fails to build if python bindings are built and ld's --no-add-needed is used
Last modified: 2009-11-22 08:21:33 UTC
Hi, With ld's --no-add-needed flag used (which is used by default in gold), rhythmbox fails to build if the python bindings are being built. The attached trivial patch solves the issue for me. http://bugs.debian.org/556320 http://wiki.debian.org/qa.debian.org/FTBFS#A2009-11-02Packagesfailingbecausebinutils-gold.2BAC8-indirectlinking /bin/bash ../libtool --tag=CC --mode=link cc -g -O2 -g -Wall -O2 -export-dynamic -no-undefined -o rhythmbox main.o librhythmbox-core.la -ltotem-plparser -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lgnome-media-profiles -lgconf-2 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lsoup-gnome-2.4 -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -pthread -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -ldbus-glib-1 -ldbus-1 -lpthread -lrt -lgobject-2.0 -lglib-2.0 -lz libtool: link: cc -g -O2 -g -Wall -O2 -o .libs/rhythmbox main.o -pthread -Wl,--export-dynamic ./.libs/librhythmbox-core.so -ltotem-plparser -lgnome-media-profiles /usr/lib/libgconf-2.so /usr/lib/libglade-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lfontconfig -lsoup-gnome-2.4 -lsoup-2.4 /usr/lib/libgio-2.0.so /usr/lib/libgstbase-0.10.so /usr/lib/libgstreamer-0.10.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so /usr/lib/libxml2.so -ldbus-glib-1 -ldbus-1 -lpthread -lrt /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so -lz -pthread /usr/bin/ld: main.o: in function main:main.c:334: error: undefined reference to 'PyEval_RestoreThread' /usr/bin/ld: main.o: in function main:main.c:330: error: undefined reference to 'PyEval_SaveThread' collect2: ld returned 1 exit status make[4]: *** [rhythmbox] Error 1
Created attachment 148256 [details] [review] Link against python if building the python bindings
committed, thanks.