Date: Sat, 10 Feb 2018 09:56:10 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 225801] databases/postgresql*-server: problems compiling with GSSAPI providers from ports. Message-ID: <bug-225801-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225801 Bug ID: 225801 Summary: databases/postgresql*-server: problems compiling with GSSAPI providers from ports. Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: c.kworr@gmail.com CC: cy@FreeBSD.org, hrs@FreeBSD.org CC: cy@FreeBSD.org, hrs@FreeBSD.org IF someone tries to use security/krb5 to stay MIT or security/heimdal to ge= t a newer version of heimdal postgresql is one of packages that wouldn't work anymore out of the box. So we have: 1. World WITHOUT_KERBEROS and WITHOUT_KERBEROS_SUPPORT. 2. Trying to build postgresql server. Here we go down: configure:3851: $? =3D 1 configure:3871: checking whether the C compiler works configure:3893: clang60 -O3 -pipe -march=3Dnative -O3 -funroll-loops -fstack-protector -fno-strict-aliasing -I/usr/local/include -L/usr/local/l= ib -lpthread -lgssapi -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-prote= ctor conftest.c > &5 /usr/local/bin/ld: cannot find -lgssapi This happens because: - security/krb5 provides libgssapi_krb5 in /usr/local/lib (missed); - security/heimdal provides libgssapi in /usr/local/lib/heimdal (not inclu= ded in -L) Here's an example how this can be solved (I'm not good with options so this= is just to show the concept): OPTIONS_RADIO+=3D GSSAPI OPTIONS_RADIO_GSSAPI=3D GSSAPI_HEIMDAL GSSAPI_MIT .if exists(/usr/lib/libgssapi.so) # ? didn't have it installed OPTIONS_RADIO_GSSAPI+=3D GSSAPI_BASE OPTIONS_DEFAULT+=3D GSSAPI_BASE GSSAPI_BASE_USES=3D gssapi:base GSSAPI_BASE_CONFIGURE_ON=3D --with-gssapi .endif GSSAPI_HEIMDAL_USES=3D gssapi:heimdal,flags GSSAPI_HEIMDAL_CONFIGURE_ON=3D --with-gssapi GSSAPI_HEIMDAL_CFLAGS+=3D -I/usr/local/include/heimdal GSSAPI_HEIMDAL_LDLAGS+=3D -L/usr/local/lib/heimdal GSSAPI_HEIMDAL_LIB_DEPENDS+=3D libgssapi.so:security/heimdal GSSAPI_MIT_USES=3D gssapi:mit GSSAPI_MIT_CONFIGURE_ON=3D --with-gssapi GSSAPI_MIT_CFLAGS+=3D -I/usr/local/include GSSAPI_MIT_LDLAGS+=3D -L/usr/local/lib GSSAPI_MIT_LIB_DEPENDS+=3D libgssapi_krb5.so:security/krb5 .endif Hope this helps a little. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225801-13>