From owner-freebsd-apache@freebsd.org Wed Feb 28 13:41:17 2018 Return-Path: Delivered-To: freebsd-apache@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 0D2B7F26EF0 for ; Wed, 28 Feb 2018 13:41:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BCC5D77EEC for ; Wed, 28 Feb 2018 13:41:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7A9BDF26EED; Wed, 28 Feb 2018 13:41:16 +0000 (UTC) Delivered-To: apache@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 3E832F26EE6 for ; Wed, 28 Feb 2018 13:41:16 +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 CD1A877EE9 for ; Wed, 28 Feb 2018 13:41:15 +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 DD1E91D7F1 for ; Wed, 28 Feb 2018 13:41:14 +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 w1SDfErd062443 for ; Wed, 28 Feb 2018 13:41:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w1SDfEoG062442 for apache@FreeBSD.org; Wed, 28 Feb 2018 13:41:14 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: apache@FreeBSD.org Subject: [Bug 226261] www/mod_auth_kerb2 Date: Wed, 28 Feb 2018 13:41:13 +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 Only Me X-Bugzilla-Who: rocky@herveybayaustralia.com.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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-apache@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2018 13:41:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226261 Bug ID: 226261 Summary: www/mod_auth_kerb2 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: apache@FreeBSD.org Reporter: rocky@herveybayaustralia.com.au Assignee: apache@FreeBSD.org Flags: maintainer-feedback?(apache@FreeBSD.org) This issue has come up in other bug reports but this has failed on 11.1-RELEASE. mod_auth_kerb2 builds and install ok, but fails at runtime causing apache to fail to start. httpd: Syntax error on line 169 of /usr/local/etc/apache24/httpd.conf: Cann= ot load libexec/apache24/mod_auth_kerb.so into server: /usr/local/libexec/apache24/mod_auth_kerb.so: Undefined symbol "krb5_rc_dfl_init" ldd /usr/local/libexec/apache24/mod_auth_kerb.so /usr/local/libexec/apache24/mod_auth_kerb.so: libgssapi_krb5.so.10 =3D> /usr/lib/libgssapi_krb5.so.10 (0x801208000) libkrb5.so.11 =3D> /usr/lib/libkrb5.so.11 (0x801427000) libk5crypto.so.3.1 =3D> /usr/local/lib/libk5crypto.so.3.1 (0x8016a5000) libcom_err.so.5 =3D> /usr/lib/libcom_err.so.5 (0x8018d9000) libc.so.7 =3D> /lib/libc.so.7 (0x800824000) libgssapi.so.10 =3D> /usr/lib/libgssapi.so.10 (0x801adb000) libcrypto.so.8 =3D> /lib/libcrypto.so.8 (0x801e00000) libroken.so.11 =3D> /usr/lib/libroken.so.11 (0x802269000) libasn1.so.11 =3D> /usr/lib/libasn1.so.11 (0x80247c000) libcrypt.so.5 =3D> /lib/libcrypt.so.5 (0x80271e000) libhx509.so.11 =3D> /usr/lib/libhx509.so.11 (0x80293d000) libwind.so.11 =3D> /usr/lib/libwind.so.11 (0x802b8a000) libheimbase.so.11 =3D> /usr/lib/libheimbase.so.11 (0x802db2000) libprivateheimipcc.so.11 =3D> /usr/lib/libprivateheimipcc.so.11 (0x802f= b6000) libkrb5support.so.0.1 =3D> /usr/local/lib/libkrb5support.so.0.1 (0x8031= b8000) libintl.so.8 =3D> /usr/local/lib/libintl.so.8 (0x8033c6000) libthr.so.3 =3D> /lib/libthr.so.3 (0x8035d1000) readelf -Ws /usr/local/lib/libkrb5.so | grep krb5_rc_dfl_init 1422: 000000000007c7b0 234 FUNC GLOBAL DEFAULT 11 krb5_rc_dfl_init readelf -Ws /usr/lib/libkrb5.so | grep krb5_rc_dfl_init make debug-krb shows everything works as expected in the ports framework: cc -O2 -pipe -fstack-protector -fno-strict-aliasing -o /tmp/debug-krb.x -I"/usr/local/include" -lkrb5 -lgssapi_krb5 -L"/usr/local/lib" -Wl,-rpath,/usr/local/lib /tmp/debug-krb.c && ldd /tmp/debug-krb.x; /bin= /rm -f /tmp/debug-krb.x /tmp/debug-krb.x: libkrb5.so.3.3 =3D> /usr/local/lib/libkrb5.so.3.3 (0x800822000) libgssapi_krb5.so.2.2 =3D> /usr/local/lib/libgssapi_krb5.so.2.2 (0x800b= 08000) libc.so.7 =3D> /lib/libc.so.7 (0x800d50000) libk5crypto.so.3.1 =3D> /usr/local/lib/libk5crypto.so.3.1 (0x801108000) libcom_err.so.3.0 =3D> /usr/local/lib/libcom_err.so.3.0 (0x80133c000) libkrb5support.so.0.1 =3D> /usr/local/lib/libkrb5support.so.0.1 (0x8015= 3f000) libintl.so.8 =3D> /usr/local/lib/libintl.so.8 (0x80174d000) PREFIX: /usr/local GSSAPIBASEDIR: /usr/local GSSAPIINCDIR: /usr/local/include GSSAPILIBDIR: /usr/local/lib GSSAPILIBS: -lkrb5 -lgssapi_krb5 GSSAPICPPFLAGS: -I/usr/local/include GSSAPILDFLAGS: -L/usr/local/lib GSSAPI_CONFIGURE_ARGS: CFLAGS=3D-I/usr/local/include -O2 -pipe -fstack-prot= ector -fno-strict-aliasing LDFLAGS=3D-L/usr/local/lib -Wl,-rpath,/usr/local/lib:/usr/lib -fstack-protector LIBS=3D-lkrb5 -lgssapi= _krb5 KRB5CONFIG=3D/usr/local/bin/krb5-config KRB5CONFIG: /usr/local/bin/krb5-config CFLAGS: -O2 -pipe -fstack-protector -fno-strict-aliasing LDFLAGS: -Wl,-rpath,/usr/local/lib:/usr/lib -fstack-protector LDADD:=20 Looking through the commands used (little though there is) shows libtool ne= eds -L/usr/local/lib before -o src/mod_auth_kerb.la. Seeing as apxs actually runs libtool, apxs needs to be told to pass this in= fo along. apxs -q reveals LDFLAGS=3D-L/usr/lib -fstack-protector This is builtin when apxs is compiled - which may vary from system to system (which probably explains the hit and miss of functionality). To override this variable apxs needs to be passed: apxs -S LDFLAGS=3D-L/usr/local/lib=20 So, in order to resolve this issue, line 16 on the work/ Makefile ./apxs.sh= arg 4 needs to adjusted to "-S LDFLAGS=3D-L/usr/local/lib -c". No patch is supplied here due to concern with the loss of the the other components of LDFLAGS in apxs (couldn't prepend the -L/usr/local/lib to the other arguments - _needs to be first_), and that this needs to probably ref= lect say GSSAPIBASEDIR or KRB5_HOME or something, but this works: ldd work/stage/usr/local/libexec/apache24/mod_auth_kerb.so=20 work/stage/usr/local/libexec/apache24/mod_auth_kerb.so: libgssapi_krb5.so.2.2 =3D> /usr/local/lib/libgssapi_krb5.so.2.2 (0x801208000) libkrb5.so.3.3 =3D> /usr/local/lib/libkrb5.so.3.3 (0x801450000) libk5crypto.so.3.1 =3D> /usr/local/lib/libk5crypto.so.3.1 (0x801736= 000) libcom_err.so.3.0 =3D> /usr/local/lib/libcom_err.so.3.0 (0x80196a00= 0) libc.so.7 =3D> /lib/libc.so.7 (0x800824000) libkrb5support.so.0.1 =3D> /usr/local/lib/libkrb5support.so.0.1 (0x801b6d000) libintl.so.8 =3D> /usr/local/lib/libintl.so.8 (0x801d7b000) service apache24 restart Performing sanity check on apache24 configuration: AH00548: NameVirtualHost has no effect and will be removed in the next rele= ase /usr/local/etc/apache24/extra/httpd-vhosts.conf:25 Syntax OK Stopping apache24. Waiting for PIDS: 20506. Performing sanity check on apache24 configuration: AH00548: NameVirtualHost has no effect and will be removed in the next rele= ase /usr/local/etc/apache24/extra/httpd-vhosts.conf:25 Syntax OK Starting apache24. AH00548: NameVirtualHost has no effect and will be removed in the next rele= ase /usr/local/etc/apache24/extra/httpd-vhosts.conf:25 --=20 You are receiving this mail because: You are the assignee for the bug.=