GNOME Bugzilla – Bug 409542
Missing link flags prevents build with -z defs ld flags
Last modified: 2007-05-24 09:21:45 UTC
Hi, When jhbuilding evolution-data-server with: os.environ['LDFLAGS'] = '-Wl,-z,defs' I got: Making all in sendmail make[4]: entrant dans le répertoire « /home/lool/jhbuild-gnome-2.18/checkout/evolution-data-server/camel/providers/sendmail » /bin/sh ../../../libtool --tag=CC --mode=link gcc -Os -Wall -Wmissing-prototypes -Wno-sign-compare -avoid-version -module -Wl,-O1 -Wl,-z,defs -o libcamelsendmail.la -rpath /home/lool/jhbuild-gnome-2.18/prefix/lib/evolution-data-server-1.2/camel-providers camel-sendmail-provider.lo camel-sendmail-transport.lo.. gcc -shared .libs/camel-sendmail-provider.o .libs/camel-sendmail-transport.o -Wl,-O1 -Wl,-z -Wl,defs -Wl,-soname -Wl,libcamelsendmail.so -o .libs/libcamelsendmail.so .libs/camel-sendmail-provider.o: In function `camel_provider_module_init': camel-sendmail-provider.c:(.text+0x22): undefined reference to `camel_url_hash' camel-sendmail-provider.c:(.text+0x2e): undefined reference to `camel_url_equal' camel-sendmail-provider.c:(.text+0x4c): undefined reference to `camel_provider_register' .libs/camel-sendmail-transport.o: In function `camel_sendmail_transport_get_type': camel-sendmail-transport.c:(.text+0x1c): undefined reference to `camel_transport_get_type' camel-sendmail-transport.c:(.text+0x3a): undefined reference to `camel_type_register' .libs/camel-sendmail-transport.o: In function `camel_sendmail_transport_class_init': camel-sendmail-transport.c:(.text+0x6a): undefined reference to `camel_transport_get_type' camel-sendmail-transport.c:(.text+0x73): undefined reference to `camel_object_class_cast' ... *** error during stage build of evolution-data-server: ########## Error running make *** [56/147] => sendmail providers needs to link to libcamel for camel_url_hash() There are a couple other missing link flags, so I'm attaching my notes as a text file and a global patch for all link flags issues. Bye,
Created attachment 82869 [details] Notes on the build failures
Created attachment 82870 [details] [review] Fix various linking issues in e-d-s
Patch looks good to me.
Applied to svn trunk, thanks.