On Wed, Sep 15, 2004, Dennis McRitchie wrote:
> I reported this one before, but the problem is still in openpkg 2.1.
>
> If openldap is built using "with_sasl=yes", then libsasl2 and libdl need to
> be added to other packages that link using openldap.
>
> I have uploaded a pine.spec with the following change:
> %if "%{with_ldap}" == "yes"
> ldflags="$ldflags -lsasl2 -ldl"
> case "%{l_platform -t}" in
> *-sunos5.* ) ldflags="$ldflags -lresolv" ;;
> esac
> %endif
Well, but this will then break if "openldap" is built with
"with_sasl=no" (the default)! A more elaborate solution is required
here. That's the reason why it was not already fixed in 2.1. The only
correct and clean solution is that the "openldap" package announces
itself what additional libraries are required for an application
linking against its LDAP libraries. This can be done by an openldap.pc
(pkg-config!) file for instance. Additionally, as it looks to me, a
sasl.pc is also needed because SASL already needs things like the -ldl
or -lcrypt. I'll investigate...
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [EMAIL PROTECTED]