Re: Building from svn on MacOS

2020-04-13 Thread Rainer Jung

Am 13.04.2020 um 23:27 schrieb William A Rowe Jr:
On Mon, Apr 13, 2020 at 4:21 PM Christopher Schultz 
mailto:ch...@christopherschultz.net>> wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

William,

 >> I'm having some trouble building 2.4.x directly from svn.
 >>
 >> MacOS 10.14.6 (Mojave)
 >
 > I note you mentioned apr 1.7.0. If you grab and pre build apr, and
 > then apr-util (and openssl and anything else you want to refresh)
 > or install the compiled system package, it should work. Point at
 > them --with-apr plus --with-aprutil.

I'm using brew which is like the missing package manager for macos.
I've installed apr and apr-util which I thikn are both binary
packages. I reconfigured with:

$ ./buildconf --with-apr=/usr/local/Cellar/apr/1.7.0/bin/apr-1-config
- --with-apr-util=/usr/local/Cellar/apr-util/1.6.1_3/bin/apu-1-config

I get this output:

using apr-config version 1.7.0
./buildconf: line 249: cd:
/usr/local/Cellar/apr-util/1.6.1_3/bin/apu-1-config: Not a directory
copying build files


That's your answer. It wants the parent path of the apr/apr-util 
installations,
not the name of the apr-1-config file. It will work out 
bin/apr-1-config... etc.


The script looks like it should work using the path to apr-1-config, but 
if used in that way it unfortunately does not do what it announces, 
namely ignoring the apr-util setting. What is definitely not suppported 
is using a path to apu-1-config. This only works for apr, not apr-util.


I recommend not trying to run buildconf against installed (binary) apr / 
apr-util but instead against an unpacked source download of these two. 
Run it with giving the path to the unpacked sources of the two. The 
script tries to copy a few files from the source tree and it is unclear, 
whether those files actually get packaged by people providing a binary 
distribution.


Regards,

Rainer



Re: Building from svn on MacOS

2020-04-13 Thread William A Rowe Jr
On Mon, Apr 13, 2020 at 4:21 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> William,
>
> >> I'm having some trouble building 2.4.x directly from svn.
> >>
> >> MacOS 10.14.6 (Mojave)
> >
> > I note you mentioned apr 1.7.0. If you grab and pre build apr, and
> > then apr-util (and openssl and anything else you want to refresh)
> > or install the compiled system package, it should work. Point at
> > them --with-apr plus --with-aprutil.
>
> I'm using brew which is like the missing package manager for macos.
> I've installed apr and apr-util which I thikn are both binary
> packages. I reconfigured with:
>
> $ ./buildconf --with-apr=/usr/local/Cellar/apr/1.7.0/bin/apr-1-config
> - --with-apr-util=/usr/local/Cellar/apr-util/1.6.1_3/bin/apu-1-config
>
> I get this output:
>
> using apr-config version 1.7.0
> ./buildconf: line 249: cd:
> /usr/local/Cellar/apr-util/1.6.1_3/bin/apu-1-config: Not a directory
> copying build files
>

That's your answer. It wants the parent path of the apr/apr-util
installations,
not the name of the apr-1-config file. It will work out bin/apr-1-config...
etc.


Re: Building from svn on MacOS

2020-04-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

William,

On 4/13/20 15:30, William A Rowe Jr wrote:
> On Mon, Apr 13, 2020, 11:41 Eric Covener  > wrote:
>
> On Mon, Apr 13, 2020 at 12:19 PM Christopher Schultz
>  > wrote:
>>
>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256
>>
>> All,
>>
>> I'm having some trouble building 2.4.x directly from svn.
>>
>> MacOS 10.14.6 (Mojave)
>>
>> $ autoconf -V autoconf (GNU Autoconf) 2.69
>>
>> $ glibtool --version glibtool (GNU libtool) 2.4.6 [ installed via
>> "brew install libtool" ]
>>
>> $ cc --version Apple LLVM version 10.0.1 (clang-1001.0.46.4)
>>
>> After "svn checkout", I tried:
>>
>> $ ./configure
>>
>> - -bash: ./configure: No such file or directory
>>
>> $ ./buildconf
>> --with-apr=/usr/local/Cellar/apr/1.7.0/bin/apr-1-config [ output
>> okay, a few "missing directory" warnings which INSTALL says [no
>> output, but now "configure" exists]
>>
>> $ ./configure ./configure: line 2990: syntax error near
>> unexpected token `Apache,' ./configure: line 2990:
>> `APR_ENABLE_LAYOUT(Apache, errordir iconsdir htdocsdir cgidir)'
>>
>> I'm no expert in toolchains, so I'm not sure where to look next.
>> Did I do something wrong?
>
>
> I note you mentioned apr 1.7.0. If you grab and pre build apr, and
> then apr-util (and openssl and anything else you want to refresh)
> or install the compiled system package, it should work. Point at
> them --with-apr plus --with-aprutil.

I'm using brew which is like the missing package manager for macos.
I've installed apr and apr-util which I thikn are both binary
packages. I reconfigured with:

$ ./buildconf --with-apr=/usr/local/Cellar/apr/1.7.0/bin/apr-1-config
- --with-apr-util=/usr/local/Cellar/apr-util/1.6.1_3/bin/apu-1-config

I get this output:

using apr-config version 1.7.0
./buildconf: line 249: cd:
/usr/local/Cellar/apr-util/1.6.1_3/bin/apu-1-config: Not a directory
copying build files
./buildconf: line 261: automake: command not found
cp: /config.guess: No such file or directory
cp: /config.sub: No such file or directory
cp: /usr/local/opt/apr/libexec/build-1/apr_common.m4: No such file or
directory
cp: /usr/local/opt/apr/libexec/build-1/find_apr.m4: No such file or
directory
cp: /usr/local/opt/apr/libexec/build-1/find_apu.m4: No such file or
directory
rebuilding include/ap_config_auto.h.in
rebuilding configure
rebuilding rpm spec file
fixing timestamps for ap_expr sources

Running ./configure gives me the same error as before. Umm.. is
"automake: command not found" a problem? That could be the core if my
issues.

> I always use the --with-included-apr method where you extract apr
> to the srclib/ dir of your source tree. svn co
> http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr
>
>
> If you check out a 1.7.0 flavor of apr, be sure to also use
> --with-included-aprutil and the latest aprutil 1.6.5 flavor checked
> out into srclib/aprutil alongside any apr flavor 1.x. Jeff's
> suggestion above, apr 2.0 (which has not been released) now
> combines aprutil into apr. Any of these options should get you
> further.

Must apr and apr-util both be available as source? Or can a binary
package be used? Those packages installed by brew do include the
header files for the package, which I'm assuming is the important part.

- -chris
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6U19cACgkQHPApP6U8
pFhA4w//TyXA3C2Ie81mrc/+yT6DJC+Tyb9Gqw4kc2qiqgKU0Kxl74g0lTELsaYa
vQfx8SfBPqvCR2qjMtxdGQkZx3vPmk8Zo1ey1mHrGyY3cvLmNixUk8zBvB36CQmO
eRC+XCIOhe/QbfvSbcFiXr+Gh/8pnvvXCtjRqCuPJKfKmAAGTve+uRbWbdBkvwe6
qn78H7SuvlYBi6qIMwJj3DQ2tY68B7jgUHY818kVPlM6m+MYIQevcDhJHSNcucoJ
xyG7L12OztOTourm6ceh/n1V/o15F1rzzaX8SY5ua7sMfR5C2V+VDVCY4Bw+gmkB
EwEBd4Yy8Oz/AgIN1sSmhZALuog/W9vybfLjdHjPlxEqC5ws69E2YFDi/M7feaG9
nokVYsW6EhtlSUVTtpvwjRlJbTwohiwRlB4afP37PX0BxWBnUSrPIFyp09NS9KIC
bcLyWfX1kZBeXG58fMVXABhIfl/xXSSQQnBKbp6Nunv6F18P23JzwpzP1OyDTecO
8RhLk1/gRksfja0CudfA8pTfpPxtxX7FSfSlKN6ksesJ9sIw1VMB2IeD/PMt+Rxd
gKHYRjJ1D+DE0DfDjsXl2/Wd2GztIxWoA5wmpIBosxlGvliIVIA8MbhHMJQ3hUhp
kG0zE3F14ek/PqlQIVcB1yt5CCMle30qjKgo/EJxYL9CjCRE7ww=
=d+9F
-END PGP SIGNATURE-


Re: Building from svn on MacOS

2020-04-13 Thread William A Rowe Jr
On Mon, Apr 13, 2020, 11:41 Eric Covener  wrote:

> On Mon, Apr 13, 2020 at 12:19 PM Christopher Schultz
>  wrote:
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA256
> >
> > All,
> >
> > I'm having some trouble building 2.4.x directly from svn.
> >
> > MacOS 10.14.6 (Mojave)
> >
> > $ autoconf -V
> > autoconf (GNU Autoconf) 2.69
> >
> > $ glibtool --version
> > glibtool (GNU libtool) 2.4.6
> > [ installed via "brew install libtool" ]
> >
> > $ cc --version
> > Apple LLVM version 10.0.1 (clang-1001.0.46.4)
> >
> > After "svn checkout", I tried:
> >
> > $ ./configure
> >
> > - -bash: ./configure: No such file or directory
> >
> > $ ./buildconf --with-apr=/usr/local/Cellar/apr/1.7.0/bin/apr-1-config
> > [ output okay, a few "missing directory" warnings which INSTALL says
> > [no output, but now "configure" exists]
> >
> > $ ./configure
> > ./configure: line 2990: syntax error near unexpected token `Apache,'
> > ./configure: line 2990: `APR_ENABLE_LAYOUT(Apache, errordir iconsdir
> > htdocsdir cgidir)'
> >
> > I'm no expert in toolchains, so I'm not sure where to look next. Did I
> > do something wrong?
>

I note you mentioned apr 1.7.0. If you grab and pre build apr, and then
apr-util (and openssl and anything else you want to refresh) or install the
compiled system package, it should work. Point at them --with-apr plus
--with-aprutil.

I always use the --with-included-apr method where you extract apr to
> the srclib/ dir of your source tree.
> svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr
>

If you check out a 1.7.0 flavor of apr, be sure to also use
--with-included-aprutil and the latest aprutil 1.6.5 flavor checked out
into srclib/aprutil alongside any apr flavor 1.x. Jeff's suggestion above,
apr 2.0 (which has not been released) now combines aprutil into apr. Any of
these options should get you further.


Re: Building from svn on MacOS

2020-04-13 Thread Eric Covener
On Mon, Apr 13, 2020 at 12:19 PM Christopher Schultz
 wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> All,
>
> I'm having some trouble building 2.4.x directly from svn.
>
> MacOS 10.14.6 (Mojave)
>
> $ autoconf -V
> autoconf (GNU Autoconf) 2.69
>
> $ glibtool --version
> glibtool (GNU libtool) 2.4.6
> [ installed via "brew install libtool" ]
>
> $ cc --version
> Apple LLVM version 10.0.1 (clang-1001.0.46.4)
>
> After "svn checkout", I tried:
>
> $ ./configure
>
> - -bash: ./configure: No such file or directory
>
> $ ./buildconf --with-apr=/usr/local/Cellar/apr/1.7.0/bin/apr-1-config
> [ output okay, a few "missing directory" warnings which INSTALL says
> [no output, but now "configure" exists]
>
> $ ./configure
> ./configure: line 2990: syntax error near unexpected token `Apache,'
> ./configure: line 2990: `APR_ENABLE_LAYOUT(Apache, errordir iconsdir
> htdocsdir cgidir)'
>
> I'm no expert in toolchains, so I'm not sure where to look next. Did I
> do something wrong?

I always use the --with-included-apr method where you extract apr to
the srclib/ dir of your source tree.
svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr


Building from svn on MacOS

2020-04-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

All,

I'm having some trouble building 2.4.x directly from svn.

MacOS 10.14.6 (Mojave)

$ autoconf -V
autoconf (GNU Autoconf) 2.69

$ glibtool --version
glibtool (GNU libtool) 2.4.6
[ installed via "brew install libtool" ]

$ cc --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)

After "svn checkout", I tried:

$ ./configure

- -bash: ./configure: No such file or directory

$ ./buildconf --with-apr=/usr/local/Cellar/apr/1.7.0/bin/apr-1-config
[ output okay, a few "missing directory" warnings which INSTALL says
[no output, but now "configure" exists]

$ ./configure
./configure: line 2990: syntax error near unexpected token `Apache,'
./configure: line 2990: `APR_ENABLE_LAYOUT(Apache, errordir iconsdir
htdocsdir cgidir)'

I'm no expert in toolchains, so I'm not sure where to look next. Did I
do something wrong?

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6UkR0ACgkQHPApP6U8
pFiggQ/+Nft9v/ycGBM3XFVQWND9Ha5ZbGRhpqBRMlOyiVFGbsv3ANWMGlBEeZij
e98P/xbryHrAJcMK9mRyaWscdlC17wStNvncrwO6Pj47h/RBpdD7qifTYrGFYLxp
VWjxt90bhGt9eQktchgjCQXpPw0M6SBn23EIw1CUeXfJn7zWOGbwJHaCykTMXfCk
pZ3vi8h/iGVMVLjJs1dnOFzOQO2FWjHrFfNzYPyq1PXcLTf/HalzwBOh7qxJKEFx
SYENZrSYiQcrFXBhe2KQBYv36uZp+Om9EtyoL3voQkEPdtCfbvoihYnuWUxJDBuM
CUcYBvMX+mH39femBjkoemNAey7jHuH0esTGV8h42e9fVqSQRZqHpUEOJFLVqBGa
blji/5jJWxQxnWOIRq2R70hPVccC4T5b8kyJzk7xJSoMarG3rK5EzZMS/sT25Woz
G6nMe6ivVzefeXagaQK25KAKga5IznkxMCvdUdr2C5wUALU/hWH1qaVkLUlUTi1u
1TIMub3TEarzdUtbffzHPmoIysCtnYGVorYbkbPYoAGk7CfNKzb9OOq3iHEysDbl
LYXD3OFOhElKssAtIlly6Kcyzi12G4OtT/ZPXGazYS7/uRzpG74uLzsh56taiUb/
zlerdKUrYZYRefQT+18q3tE+Kf7zDrzikKSp/4FZp25bdwHbGoY=
=dNI8
-END PGP SIGNATURE-


Re: Memory management inside mod_proxy

2020-04-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Eric,

On 4/10/20 15:56, Eric Covener wrote:
>>> Note: If you move to r->notes (also a table) you can use
>>> apr_table_setn to pass a casted pointer and retrieve the
>>> pointer on the other side.  But this is probably a last
>>> resort.
>>
>> I'm not sure I follow, other than mechanically. Why might I want
>> to do that, exactly?
>
> Quick and dirty way for two modules to pass a reference to a
> struct around. mod_session providers use it almost like a cache.

Aha, okay. In this case, we're just setting an environment variable
and making sure we clean-up after ourselves. Any other modules who
want that data can find it in the environment :)

- -chris
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6UhdwACgkQHPApP6U8
pFjTPA/9FTTZLBVzCS0n/5NXLwCWCZGYZdRC00ODh/Xu+Lo0OBPkAQ5vSH4zQigx
MS7Y3p7VCWEkQ9uxl+JDmxgXROsYbxbgbvl4xu1tK4kkLcoE7lBAye/rwJ3NA9YO
C1Xu6sO90cURtIAXgaD4pP7jT914H8LAhJ765U25VmuEkXjyhhzkGNO1PPENFWRL
44ijSB1d5HgzX5PJmll8AuawHHvKZnhWodiWTeOl6jgZxmP6caGp0SlgNfZoSddx
L3H4S+B5pyJCP2EkZ7EtXCTMVDqrHqsRlazFLji2GKHImO1t5BKh1psWQd64vwHi
wA8cumpaSk0YtXdl+uVAh3RK9v9Yk621PhlIDUjU7XhF4v8t34odCaw8K96yoWlN
TQULdCcIok869rEtONnfbB13pGTtG450JkWZPFatoU9Kkq5k9l4LAwAP+LCLYnK9
rL8IOw2arU1fZ9F2R3/60qZsPwD0UyuCfvUFgRv24BA64bg6Dek/z6XT1B92JI2x
NIPHOQvSA8bQMdcZuzfd0lNH8ofUSP8pVnaPWANFzwjhcUbmHADb0XkOihxebUIj
Gvx6npacu+H+V3uvHRZzcFKXlBtiqtzNcBlIMS4V/lx+1yXqFsP6wgzlCWshdPHW
R+5Qzl6ljlBzYfnd9VF7gjVnE81Az4t2usyTnFKyjhgYRuZPfT4=
=jJCz
-END PGP SIGNATURE-