From owner-freebsd-ports-bugs@freebsd.org Sat Feb 10 09:56:12 2018 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A65FEF0D4F7 for ; Sat, 10 Feb 2018 09:56:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D4CE762BF for ; Sat, 10 Feb 2018 09:56:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 7AAB726DCF for ; Sat, 10 Feb 2018 09:56:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w1A9uB2P021630 for ; Sat, 10 Feb 2018 09:56:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w1A9uBjl021628 for freebsd-ports-bugs@FreeBSD.org; Sat, 10 Feb 2018 09:56:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 225801] databases/postgresql*-server: problems compiling with GSSAPI providers from ports. Date: Sat, 10 Feb 2018 09:56:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: c.kworr@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Feb 2018 09:56:12 -0000 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.=