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



> >       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
> > 
> >      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
> 
  Hello Matthew,
             Hm, well I don't THINK your fixes are helping me.
I am using a 32 bit machine, so I ignore the 64 bit one, but the link
order doesn't seem to help.
  In the end I added "-lsasl2" to the link statements in the Makefile 
of evolution-exchange by hand. That seemed to fix compilation. But when
I ran...
  (evolution:16094): e-utils-WARNING **: can't load plugin
'/opt/evo-2.11.92//lib/libexchange-storage-1.2.so.3: undefined symbol:
sasl_errstring'

   This feels a little like a 'static /non static linking issue I had
once before. Maybe...
     Bill



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