[Pine-info] Compilation problems on Fedora
alexeyt at freeshell.org
Thu Nov 16 11:34:58 PST 2006
On Thu, 16 Nov 2006, vi5u0-pineinfo at yahoo.co.uk wrote:
> When I try to compile pine 4.64 on FC6, the
> compilation fails, complaing of a lot of undefined
> functions in ldap/libraries/libldap.a(cyrus.o). The
> undefined functions have names starting with "sasl."
> I've installed every package with "sasl" in the name,
> and made sure there are symlinks to the libraries and
> headers from these packages, in the same directories
> as the ldap libraries and headers. It appears the
> same problem has been encountered before, on BSD
> Does anyone have any idea how to fix this, please?
I'm guessing you're creating an ldap directory in your pine source and
making symlinks therein to the system's ldap libs?
In any case, the problem is you're linking against an ldap that depends on
a separate sasl, but the pine build doesn't know it also has to link
against a separate sasl, it thinks the libldap it builds against is
If you're building the ldap lib you use, try adding the following to your
'LDAPLIBS=../ldap/libraries/libldap.a ../ldap/libraries/liblber.a \
<path to libsasl2.a>'
You might havge to add libldap's other dependancies the same way.
If my guess is correct and you're trying to build with the system's
libldap, then not including an ldap directory in the pine source and
appending LDAPLIBS=-lldap LDAPCFLAGS=-DENABLE_LDAP should work fine.
You can also try the lrh target which is similar to slx, but has some
default paths set to where RedHat puts (or used to put) things. This
should (in theory) autodetect your ldap libs.
More information about the Pine-info