Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543794 - gnome-extra/evolution-data-server-3.12.11 on SYMLINK_LIB=no profile does not compile due to hardcoded krb5-libs path
Summary: gnome-extra/evolution-data-server-3.12.11 on SYMLINK_LIB=no profile does not ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-19 14:20 UTC by Georgi Georgiev
Modified: 2015-03-24 02:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2015-03-19 14:20:19 UTC
On an amd64 system with SYMLINK_LIB=no profile gnome-extra/evolution-data-server (up to version 3.12.11) cannot build with USE=kerberos. The reason seems to be that /usr/lib gets added to the lib search path in that case:

$ cat /var/log/paludis/1426630242-install-gnome-extra_evolution-data-server-3.12.11:0::gentoo.out
...
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC .libs/libebookbackendldap_la-e-book-backend-ldap.o .libs/libebookbackendldap_la-e-book-backend-ldap-factory.o .libs/libebookbackendldap_la-e-source...
...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libdb.so when searching for -ldb
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libdb.a when searching for -ldb
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libxml2.so when searching for -lxml2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libsoup-2.4.so when searching for -lsoup-2.4
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libgio-2.0.so when searching for -lgio-2.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libgobject-2.0.so when searching for -lgobject-2.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libgmodule-2.0.so when searching for -lgmodule-2.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libglib-2.0.so when searching for -lglib-2.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libssl3.so when searching for -lssl3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libsmime3.so when searching for -lsmime3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libnss3.so when searching for -lnss3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libnssutil3.so when searching for -lnssutil3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libplds4.so when searching for -lplds4
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libplc4.so when searching for -lplc4
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libnspr4.so when searching for -lnspr4
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libsqlite3.so when searching for -lsqlite3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libkrb5.so when searching for -lkrb5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libk5crypto.so when searching for -lk5crypto
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libcom_err.so when searching for -lcom_err
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libcom_err.a when searching for -lcom_err
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when searching for -lgssapi_krb5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libicui18n.so when searching for -licui18n
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libicuuc.so when searching for -licuuc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libicudata.so when searching for -licudata
/usr/lib/libldap.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Makefile:648: recipe for target 'libebookbackendldap.la' failed
make[4]: Leaving directory '/var/tmp/paludis/gnome-extra-evolution-data-server-3.12.11/work/evolution-data-server-3.12.11/addressbook/backends/ldap'
make[4]: *** [libebookbackendldap.la] Error 1
Makefile:550: recipe for target 'all-recursive' failed
make[3]: Leaving directory '/var/tmp/paludis/gnome-extra-evolution-data-server-3.12.11/work/evolution-data-server-3.12.11/addressbook/backends'
make[3]: *** [all-recursive] Error 1
Makefile:546: recipe for target 'all-recursive' failed
make[2]: Leaving directory '/var/tmp/paludis/gnome-extra-evolution-data-server-3.12.11/work/evolution-data-server-3.12.11/addressbook'
make[2]: *** [all-recursive] Error 1
Makefile:751: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/paludis/gnome-extra-evolution-data-server-3.12.11/work/evolution-data-server-3.12.11'
Makefile:659: recipe for target 'all' failed
make: *** [all] Error 2

!!! ERROR in gnome-extra/evolution-data-server-3.12.11::gentoo:
!!! In /usr/libexec/paludis/utils/emake at line 30
!!! emake returned error 2

!!! Call stack:
!!!    * paludis_die_or_error_func (/usr/libexec/paludis/die_functions.bash:67)
!!!    * main (/usr/libexec/paludis/utils/emake:30)

diefunc: making ebuild PID 8361 exit with error
die trap: exiting with error.

The workaround is to use the following patch, which will force "configure" to find the libraries in the right place.

--- evolution-data-server-3.12.11.ebuild.orig   2015-03-18 07:11:23.824209163 +0900
+++ evolution-data-server-3.12.11.ebuild        2015-03-18 07:12:13.182598954 +0900
@@ -99,6 +99,7 @@
                $(use_enable introspection) \
                $(use_enable ipv6) \
                $(use_with kerberos krb5 "${EPREFIX}"/usr) \
+               $(use_with kerberos krb5-libs "${EPREFIX}"/usr/$(get_libdir)) \
                $(use_with ldap openldap) \
                $(use_enable vala vala-bindings) \
                $(use_enable weather)
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-03-24 02:32:52 UTC
Fixed, thanks for the patch!

+  24 Mar 2015; Alexandre Rostovtsev <tetromino@gentoo.org>
+  evolution-data-server-3.12.11.ebuild:
+  Fix kerberos libs detection on on SYMLINK_LIB=no (bug #543794, thanks to
+  Georgi Georgiev).