pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ld problems with gssapi_krb5 and k5crypto



On Wed, Jan 31, 2024 at 09:44:18PM +0100, Marc Baudoin wrote:
> Thomas Klausner <wiz%gatalith.at@localhost> écrit :
> > On Wed, Jan 31, 2024 at 09:26:14PM +0100, Marc Baudoin wrote:
> > > Same problem with net/bind918:
> > > 
> > > [...]
> > > checking for krb5-config... /usr/pkg/bin/krb5-config
> > > checking for gssapi libraries... -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
> > > checking for gssapi/gssapi.h... yes
> > > checking for gssapi/gssapi_krb5.h... yes
> > > checking for gssapi_krb5.h... no
> > > checking for gss_acquire_cred... no
> > > configure: error: linking with -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err does not work
> > > *** Error code 1
> > 
> > Take a look at config.log, there you can find the actual error.
> >  Thomas
> 
> Might be this one:
> 
> configure:22705: checking for gss_acquire_cred
> configure:22705: gcc -o conftest -O2 -pthread -I/usr/include -I/usr/pkg/include 
>  -pthread  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -Wl,-zrelro -pth
> read -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib conftest.c -lblacklist   -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err >&5
> ld: cannot find -lgssapi_krb5
> ld: cannot find -lk5crypto
> 
> But libraries are in /usr/pkg/lib:
> 
> /usr/pkg/lib/libgssapi_krb5.a
> /usr/pkg/lib/libgssapi_krb5.la
> /usr/pkg/lib/libgssapi_krb5.so
> /usr/pkg/lib/libgssapi_krb5.so.2
> /usr/pkg/lib/libgssapi_krb5.so.2.0.2
> /usr/pkg/lib/libk5crypto.a
> /usr/pkg/lib/libk5crypto.la
> /usr/pkg/lib/libk5crypto.so
> /usr/pkg/lib/libk5crypto.so.3
> /usr/pkg/lib/libk5crypto.so.3.0.1
> 
> And they seem to be OK when building PostgreSQL.

Well, buildlink3 hides libraries so the question is if the libraries
are in work/.buildlink/lib and if not, why not.
 Thomas


Home | Main Index | Thread Index | Old Index