Re: [Evolution-hackers] Linker Problems on Fedora 7



On Wed, 2007-09-05 at 07:40 +0100, William Murray wrote:
>   Thanks Matthew.
>       Maybe I should be taking the redhat src rpm apart?
> 
> If I just download the release and configure/compile it then configure
> it using  /usr/lib/evolution-openldap (and also I had to
> add  /usr/include/nspr4) then it does not find  ldap_open or ntlm_bind. 
> checking for ldap_open in -lldap... no
> checking for ldap_ntlm_bind... no
> 
> The reason is that the compilation test command does not pull in various
> libraries:
> 
> configure:28487: gcc -o conftest -g -O2   conftest.c -lldap
> -L/usr/lib/evolution-openldap/lib /usr/lib/evolution-openldap/lib/liblber.a -lresolv -lnsl  >&5
> 
> If I add " -lssl -lcrypto  -lsasl2" to the end of the configure line
> then configure is happy. But when I come to compile evolution-exchange I
> hit the same problem again.
>      Does that sound familiar?


Yeah, sounds familiar.  Are you on a 64-bit architecture?

I have to patch the tarballs in THREE places to get it to compile on
64-bit arches.

1) Apply this patch to evolution-data-server.  This is a very old patch
   (as you can see below) and pre-dates my tenure, but I think the net
   effect is similar to what you're doing by hand.

--- evolution-1.4.4/configure.ldaphack  2003-08-05 02:06:26.000000000
-0400
+++ evolution-1.4.4/configure   2003-08-05 02:06:45.000000000 -0400
@@ -12135,7 +12135,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lldap $LDAP_LDFLAGS $LDAP_LIBS $LIBS"
+LIBS="-lldap -lresolv $LDAP_LDFLAGS $LDAP_LIBS $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 /* confdefs.h.  */


2) The EVO_LDAP_CHECK m4 macro that lives in acinclude.m4 is not
   multilib-friendly, so we patch that to use /usr/lib64 when and where
   appropriate.  Crack open the evolution-exchange SRPM and look for:

   evolution-exchange-2.10.1-fix-64bit-acinclude.m4.patch

   I apply a similar patch to evolution-data-server as well.


3) There seems to be an LDAP linking order bug in Evolution-Exchange,
   which I reported as http://bugzilla.gnome.org/show_bug.cgi?id=443022
   along with a patch.  This one cropped up just recently, and appears
   to only cause problems for Fedora (so far).

Hope this helps.  Let me know how you fare.

Matthew Barnes




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]