From owner-freebsd-apache@freebsd.org Fri Mar 30 21:08:18 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 9D317F6A2C7 for ; Fri, 30 Mar 2018 21:08:18 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) 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 0BC2D7FEEE for ; Fri, 30 Mar 2018 21:08:18 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: by mailman.ysv.freebsd.org (Postfix) id B69C6F6A2C1; Fri, 30 Mar 2018 21:08:17 +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 7E45AF6A2C0 for ; Fri, 30 Mar 2018 21:08:17 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 02A657FEE8 for ; Fri, 30 Mar 2018 21:08:16 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: by mail-wm0-x22f.google.com with SMTP id x4so18311111wmh.5 for ; Fri, 30 Mar 2018 14:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=p6m7g8-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VwCtgS+Kti4s51yLi5a0xkARDsV0Raa+Bs+rKgFkQcE=; b=ERx9Ly1LV2NisVUIDuwVBIhXpEVbpAc5X0Q0OqKCJBBQBGTPQJLrnVxwyxulh8uSoE 4w5Jb37423RC1EeIzMYjEq2Uma2AtrbcBHohO+qMZPQgxh6q0Y/VOJ30YIolUWlTHSeI dF76uKjoBNh1+ogxqrU4zC2PkoJjO4Y1E+gaCLO1EsFEAVQEjQJr7drBb4MMGIDXNqdj Fm4ICOcVMbzi/Y47oF663UKyJw1pXbg49JhlixAMwxbVSHjgDODi361bog6KRKJsHQBd KaGmKMw1owGoHd/61W2PkzKfFNgCRT2zvIlVMqfXuATJwdmcJRDuWKZQ3h6qD8IL+1CT Hprw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VwCtgS+Kti4s51yLi5a0xkARDsV0Raa+Bs+rKgFkQcE=; b=RlP+f8rbBSwfyoPMNRCfVuPacy7vlCh6hcfHEzhH4p1TEcjCuLz65PKyV7ZKQ2C0sY 0VGWi3qyI90YcXMOfn6/xltKqKjmSv3oZye9RGrBmUacEt1hz+BfWv3xWPMmYvA+7P/i WpQfnUm2ZZwEGq3HPAk74BNuuTlfOjxaoyNLomBEqyBvRj7jcZYeLhcDOHYkK1fv3Cxl rHv6RKOkcGEo57lblIVsu/MlBhNpCIz3Av46dnSyATlJkR5R6LA7Uy8tUUGIgq+Uqnei 2RuEPk1C8VGoTk4yk1v6ixM97To9j0n5sj7OJI7kBddJbg+tvhXcmhYmhoV9+xgT8y4K QCzQ== X-Gm-Message-State: AElRT7EMNp4CRgs0UEq1LWzk/rgq/IzH70IPwgGDefL0FZc/x2IzpqC2 uYsGXyL3vIUqA2eba/+KOISdIGQlyU9pcpnhQuYofQ== X-Google-Smtp-Source: AIpwx4+HyWbE/RIbigX7XNVpdHxJhgnbVSu1XPbWcf6ut8kF03yeiLRVcZAw3fOu2jB8wt5Fln3T54cdjEq4OvMTfi8= X-Received: by 10.80.184.9 with SMTP id j9mr4044066ede.272.1522444095483; Fri, 30 Mar 2018 14:08:15 -0700 (PDT) MIME-Version: 1.0 References: <1659d22a-0e5e-1dbf-5cd0-ec39d7bb3e55@gmx.de> In-Reply-To: From: "Philip M. Gollucci" Date: Fri, 30 Mar 2018 21:08:04 +0000 Message-ID: Subject: Re: apache24 regression between svn r465240:465461 To: spil.oss@gmail.com Cc: "apache@FreeBSD.org" , olli hauer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Fri, 30 Mar 2018 21:08:18 -0000 While I=E2=80=99m sure someone will want it, shared is the way to go. Maybe modulariZe static support to its own .mk to keep things clean On Fri, Mar 30, 2018 at 11:56 AM Spil Oss wrote: > Hi Olli, > > Good find! > > I'm trying to figure out the mechanics of the `session' problem. In > line we force the session module to be enabled when one of the > `session_*` modules is enabled. How does it still not have that module > when building? > > In my local tree I've added the =3Dshared as this is a regression > between existing and new building methods. As far as I know, static > binaries are not preferred on FreeBSD. I've yet to see reports of > people wanting it back, but that can still come. > The =3Dshared does appear in the install.html file. > > There's already 2 PR's for the _MODULES error we trigger from apache.mk..= . > > So we've actually duplicated the enabling of modules between apache.mk > and the 2.4 port. Not pretty. As you've probably seen the 2.2 port is > up for removal shortly. After we finish that I'll clean up the > apache.mk file. > > Anyone have thoughts on having server build framework bits in > Mk/Uses/apache.mk? With OptionsNG I believe the regular way of porting > using Makefile moving parts to apache.mk doesn't reduce the Makefile > significantly. There's an apache25-devel port in preparation, which is > very similar to the 2.4 one. > > Cheers, Bernard. > > > > 2018-03-30 17:04 GMT+02:00 olli hauer : > > Seems there is a regression in the apache24 port between svn > r465240:465461 > > > > With the change in Makfile.options from ALL_MODULES_CATEGORIES to > ALL_MODULES > > it is no longer possible to build static modules since the code in > Mk/Uses/apache.mk > > is no longer honored. > > > > That's the part in apache.mk > > > > .for category in ${ALL_MODULES_CATEGORIES} > > AVAILABLE_MODULES+=3D ${${category}_MODULES} > > .endfor > > ... > > .for module in ${AVAILABLE_MODULES} > > . if !empty(WITH_STATIC_MODULES:M${module}) > > CONFIGURE_ARGS+=3D --enable-${module:tl}=3Dstatic > > PLIST_SUB+=3D MOD_${module}=3D"@comment " > > . elif !empty(APACHE_MODULES:M${module}) > > CONFIGURE_ARGS+=3D --enable-${module:tl}=3Dshared > > PLIST_SUB+=3D MOD_${module}=3D"" > > . else > > CONFIGURE_ARGS+=3D --disable-${module:tl} > > PLIST_SUB+=3D MOD_${module}=3D"@comment " > > . endif > > .endfor > > > > > > that was replaced with this simpler part in the ports Makefile > > > > .for module in ${ALL_MODULES} > > .if ${PORT_OPTIONS:M${module}} > > CONFIGURE_ARGS+=3D --enable-${module:S/_/-/g:tl} > > .else > > CONFIGURE_ARGS+=3D --disable-${module:S/_/-/g:tl} > > .endif > > .endfor > > > > > > That's OK, after the removal of apache22 large (server) parts of > apache.mk > > can be removed if we do not support static modules any longer. > > > > But there is another regression that will be noticed only with the > original > > apache24 httpd.conf the first time apache24 starts. > > > > httpd: Syntax error on line 143 of /usr/local/etc/apache24/httpd.conf: > > Cannot load libexec/apache24/mod_session_cookie.so into server: > > /usr/local/libexec/apache24/mod_session_cookie.so: Undefined symbol > "ap_hook_session_save" > > > > > > This error message has is the result of three modules > (session_cookie_module, > > session_crypto_module and session_dbd_module) that are enabled in > httpd.conf > > without enabling session_module. > > > > > > One easy fix (dynamic modules only) could be: > > > > Index: apache24/Makefile > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- apache24/Makefile (revision 465976) > > +++ apache24/Makefile (working copy) > > @@ -132,7 +132,7 @@ > > > > .for module in ${ALL_MODULES} > > .if ${PORT_OPTIONS:M${module}} > > -CONFIGURE_ARGS+=3D --enable-${module:S/_/-/g:tl} > > +CONFIGURE_ARGS+=3D --enable-${module:S/_/-/g:tl}=3Dshared > > .else > > CONFIGURE_ARGS+=3D --disable-${module:S/_/-/g:tl} > > .endif > > > > > > The difference can be shown without installing apache by comparing > httpd.conf.sample in the stage dir with and without the small patch. > > > > I know ./configure ---help does not show the usage of > --enable-$module=3D(shared|static|yes), but this hint can be found in > acinclude.m4 and as I remember in older apache versions > > > > > > -- > > olli > > _______________________________________________ > > freebsd-apache@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-apache > > To unsubscribe, send any mail to "freebsd-apache-unsubscribe@freebsd.or= g > " > _______________________________________________ > freebsd-apache@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-apache > To unsubscribe, send any mail to "freebsd-apache-unsubscribe@freebsd.org" > --=20 ---------------------------------------------------------------------------= ------ 4096R/D21D2752 ECDF B= 597 B54B 7F92 753E E0EA F699 A450 D21D 2752 Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354 Member, Apache Software Foundation Committer, FreeBSD Foundation Consultant, P6M7G8 Inc. Director Cloud Technology, Capital One What doesn't kill us can only make us stronger; Except it almost kills you.