After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 574455 - Compile issue with LDFLAGS=-Wl,-z,defs
Compile issue with LDFLAGS=-Wl,-z,defs
Status: RESOLVED DUPLICATE of bug 572713
Product: totem
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-03-07 07:49 UTC by christopher taylor
Modified: 2009-03-08 22:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description christopher taylor 2009-03-07 07:49:12 UTC
Please describe the problem:
make[5]: Entering directory `/tmp/build/totem/totem/src/plugins/thumbnail'
/bin/sh ../../../libtool --tag=CC   --mode=link gcc -DORBIT2=1 -pthread -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/gconf/2 -I/usr/local/include/orbit-2.0 -I/usr/local/include/totem-pl-parser/1/plparser -I/usr/local/include/evolution-data-server-2.26 -I/usr/local/include/libsoup-2.4 -I/usr/local/include/libbonobo-2.0 -I/usr/local/include/bonobo-activation-2.0 -I/usr/X11/include/pixman-1 -I/usr/X11/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libxml2   -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -I../../../ -I../../../lib -I../../../src -I../../../src/plugins -Wall 	-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes 	-Wnested-externs -Wpointer-arith 	-Wcast-align -Wsign-compare 	-fno-strict-aliasing 	-I/usr/X11/include -I/usr/X11/include -march=k8 -O2 -pipe -export_dynamic -avoid-version -module -Wl,-O1,--hash-style=both,-z,defs,--as-needed -o libthumbnail.la -rpath /usr/local/lib/totem/plugins/thumbnail libthumbnail_la-totem-thumbnail.lo  -L/usr/X11/lib 
libtool: link: gcc -shared  .libs/libthumbnail_la-totem-thumbnail.o   -L/usr/X11/lib  -pthread -march=k8 -Wl,-O1 -Wl,--hash-style=both -Wl,-z -Wl,defs -Wl,--as-needed   -pthread -Wl,-soname -Wl,libthumbnail.so -o .libs/libthumbnail.so
.libs/libthumbnail_la-totem-thumbnail.o: In function `register_totem_plugin':
totem-thumbnail.c:(.text+0x42): undefined reference to `totem_plugin_get_type'
totem-thumbnail.c:(.text+0x5e): undefined reference to `g_type_module_register_type'
.libs/libthumbnail_la-totem-thumbnail.o: In function `totem_thumbnail_plugin_init':
totem-thumbnail.c:(.text+0x80): undefined reference to `g_type_instance_get_private'
.libs/libthumbnail_la-totem-thumbnail.o: In function `totem_thumbnail_plugin_class_intern_init':
totem-thumbnail.c:(.text+0xa2): undefined reference to `g_type_class_peek_parent'
totem-thumbnail.c:(.text+0xae): undefined reference to `totem_plugin_get_type'
totem-thumbnail.c:(.text+0xb9): undefined reference to `g_type_check_class_cast'
totem-thumbnail.c:(.text+0xc9): undefined reference to `g_type_class_add_private'
.libs/libthumbnail_la-totem-thumbnail.o: In function `set_icon_to_default':
totem-thumbnail.c:(.text+0x105): undefined reference to `totem_object_get_type'
totem-thumbnail.c:(.text+0x129): undefined reference to `g_type_check_instance_is_a'
totem-thumbnail.c:(.text+0x14c): undefined reference to `totem_get_main_window'
.libs/libthumbnail_la-totem-thumbnail.o: In function `impl_deactivate':
totem-thumbnail.c:(.text+0x180): undefined reference to `g_type_check_instance_cast'
totem-thumbnail.c:(.text+0x192): undefined reference to `g_signal_handler_disconnect'
totem-thumbnail.c:(.text+0x1a0): undefined reference to `g_signal_handler_disconnect'
.libs/libthumbnail_la-totem-thumbnail.o: In function `update_from_state':
totem-thumbnail.c:(.text+0x1f2): undefined reference to `totem_object_get_type'
totem-thumbnail.c:(.text+0x211): undefined reference to `g_type_check_instance_is_a'
totem-thumbnail.c:(.text+0x22a): undefined reference to `g_return_if_fail_warning'
totem-thumbnail.c:(.text+0x25c): undefined reference to `totem_get_main_window'
totem-thumbnail.c:(.text+0x27f): undefined reference to `g_compute_checksum_for_string'
totem-thumbnail.c:(.text+0x293): undefined reference to `g_strdup_printf'
totem-thumbnail.c:(.text+0x29b): undefined reference to `g_get_home_dir'
totem-thumbnail.c:(.text+0x2b9): undefined reference to `g_build_filename'
totem-thumbnail.c:(.text+0x2d1): undefined reference to `gdk_pixbuf_new_from_file'
totem-thumbnail.c:(.text+0x2e1): undefined reference to `g_free'
totem-thumbnail.c:(.text+0x2e9): undefined reference to `g_free'
totem-thumbnail.c:(.text+0x2f1): undefined reference to `g_free'
totem-thumbnail.c:(.text+0x2fe): undefined reference to `gtk_window_set_icon'
totem-thumbnail.c:(.text+0x306): undefined reference to `g_object_unref'
totem-thumbnail.c:(.text+0x31d): undefined reference to `g_file_error_quark'
totem-thumbnail.c:(.text+0x329): undefined reference to `g_free'
totem-thumbnail.c:(.text+0x331): undefined reference to `g_free'
totem-thumbnail.c:(.text+0x339): undefined reference to `g_free'
totem-thumbnail.c:(.text+0x34a): undefined reference to `g_file_error_quark'
totem-thumbnail.c:(.text+0x365): undefined reference to `g_printerr'
totem-thumbnail.c:(.text+0x37c): undefined reference to `g_clear_error'
totem-thumbnail.c:(.text+0x384): undefined reference to `g_free'
totem-thumbnail.c:(.text+0x389): undefined reference to `g_get_home_dir'
totem-thumbnail.c:(.text+0x3a7): undefined reference to `g_build_filename'
totem-thumbnail.c:(.text+0x3b7): undefined reference to `gdk_pixbuf_new_from_file'
totem-thumbnail.c:(.text+0x3c2): undefined reference to `g_free'
totem-thumbnail.c:(.text+0x3ca): undefined reference to `g_free'
totem-thumbnail.c:(.text+0x3d2): undefined reference to `g_free'
.libs/libthumbnail_la-totem-thumbnail.o: In function `impl_activate':
totem-thumbnail.c:(.text+0x40b): undefined reference to `g_type_check_instance_cast'
totem-thumbnail.c:(.text+0x41a): undefined reference to `totem_get_main_window'
totem-thumbnail.c:(.text+0x438): undefined reference to `g_type_check_instance_cast'
totem-thumbnail.c:(.text+0x457): undefined reference to `g_signal_connect_data'
totem-thumbnail.c:(.text+0x46d): undefined reference to `g_type_check_instance_cast'
totem-thumbnail.c:(.text+0x48c): undefined reference to `g_signal_connect_data'
totem-thumbnail.c:(.text+0x4a8): undefined reference to `g_object_get'
totem-thumbnail.c:(.text+0x4c3): undefined reference to `g_free'
.libs/libthumbnail_la-totem-thumbnail.o: In function `set_icon_to_default':
totem-thumbnail.c:(.text+0x143): undefined reference to `g_return_if_fail_warning'
totem-thumbnail.c:(.text+0x15c): undefined reference to `gtk_window_set_icon_name'
collect2: ld returned 1 exit status
make[5]: *** [libthumbnail.la] Error 1
make[5]: Leaving directory `/tmp/build/totem/totem/src/plugins/thumbnail'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/build/totem/totem/src/plugins'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/build/totem/totem/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/build/totem/totem/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/build/totem/totem'
make: *** [all] Error 2


Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Philip Withnall 2009-03-08 21:59:57 UTC
The plugins are designed to have their symbols resolved when they're dynamically loaded. I don't see how we can sensibly have all their symbols resolved at compilation time without building them into the main Totem executable, which would be mad.

Bastien?
Comment 2 Bastien Nocera 2009-03-08 22:36:38 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 572713 ***