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 409542 - Missing link flags prevents build with -z defs ld flags
Missing link flags prevents build with -z defs ld flags
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
unspecified
Other Linux
: Normal major
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks: 413061
 
 
Reported: 2007-02-19 09:40 UTC by Loïc Minier
Modified: 2007-05-24 09:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Notes on the build failures (16.56 KB, text/plain)
2007-02-19 09:43 UTC, Loïc Minier
  Details
Fix various linking issues in e-d-s (1.91 KB, patch)
2007-02-19 09:44 UTC, Loïc Minier
committed Details | Review

Description Loïc Minier 2007-02-19 09:40:18 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,
Comment 1 Loïc Minier 2007-02-19 09:43:20 UTC
Created attachment 82869 [details]
Notes on the build failures
Comment 2 Loïc Minier 2007-02-19 09:44:26 UTC
Created attachment 82870 [details] [review]
Fix various linking issues in e-d-s
Comment 3 Ross Burton 2007-05-24 07:28:10 UTC
Patch looks good to me.
Comment 4 Ross Burton 2007-05-24 09:21:45 UTC
Applied to svn trunk, thanks.