Re: [Evolution-hackers] Linker Problems on Fedora 7
On Wed, 2007-09-05 at 19:52 -0400, Matthew Barnes wrote: > On Wed, 2007-09-05 at 23:50 +0200, William Murray wrote: > > 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 that case, maybe take the Red Hat SRPM apart. > > Let me know if I can help further. > > Matthew Barnes > Oops! I didn't recompile EDS, just evolution-exchange. The ONLY fix I really needed was from the redhat RPMs: if pkg-config openssl ; then LIBS="-lsasl2 `pkg-config --libs openssl`" else LIBS="-lsasl2 -lssl -lcrypto" fi export LIBS Bill ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Linker Problems on Fedora 7
On Wed, 2007-09-05 at 23:50 +0200, William Murray wrote: > 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 that case, maybe take the Red Hat SRPM apart. Let me know if I can help further. Matthew Barnes ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
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.0 > -0400 > +++ evolution-1.4.4/configure 2003-08-05 02:06:45.0 -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 ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
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.0 -0400 +++ evolution-1.4.4/configure 2003-08-05 02:06:45.0 -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 ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Linker Problems on Fedora 7
> > problems, and am trying to adapt an answer I got then, by editing > the > > configure files by hand to add ' -lssl -lcrypto -lsasl2' to the > compile > > test lines. That allows configure to work. > > But then in compiling evolution-exchange the same problem is hit > > again, and I am not sure where I can add such a 'fix' (hack) so > > configure does not overwrite it. > > Can anyone advise please? > > Hi Bill, I maintain Evolution on Fedora. > > Could you post the configure and/or compiler errors you're getting? I > wrestled with linker errors in this area recently and might be able to > help. > > Matthew Barnes > > 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? Thanks, Bill ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Linker Problems on Fedora 7
On Tue, 2007-09-04 at 22:54 +0100, William Murray wrote: > Hi Srinivasa, >I do feel a failure that I am unable to compile evolution on > Fedora 7. I asked a year ago (FC5) about ldap_open / ntlm_bind linking > problems, and am trying to adapt an answer I got then, by editing the > configure files by hand to add ' -lssl -lcrypto -lsasl2' to the compile > test lines. That allows configure to work. > But then in compiling evolution-exchange the same problem is hit > again, and I am not sure where I can add such a 'fix' (hack) so > configure does not overwrite it. > Can anyone advise please? Hi Bill, I maintain Evolution on Fedora. Could you post the configure and/or compiler errors you're getting? I wrestled with linker errors in this area recently and might be able to help. Matthew Barnes ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers