Re: Building from svn on MacOS

2020-04-15 Thread Jim Jagielski
I always have svn co of apr and apr-util in srclib when I build from SVN


Re: Building from svn on MacOS

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

Rainer,

On 4/13/20 18:02, Rainer Jung wrote:
> Am 13.04.2020 um 23:27 schrieb William A Rowe Jr:
>> On Mon, Apr 13, 2020 at 4:21 PM Christopher Schultz
>> > > 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.

On the off-change that I had broken my working copy, I went ahead and
checked-out fresh from svn again and "correctly" ran buildconf again.
I still get these errors from buildconf:

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

And, unsurprisingly, configure fails again with the same messages as
before. I checked, and this is not a path problem with e.g. brew's
installation of APR. Instead, those .m4 files are simply not present
in the distribution.

brew seems to have a "--devel" option, which will install the
"development version" or whatever package you are installing.
Unfortunately, the apr package doesn't have a "development" version
though their package-manager.

So I think I'll have to download the canonical sources as support. Not
a problem; I was just hoping I wouldn't have to do that manually.

I started with apr only, just in case apr-util didn't have the same
problem. Here's what buildconf says:

$ ./buildconf --with-apr=../apr-1.7.0/
- --with-apr-util=/usr/local/Cellar/apr-util/1.6.1_3/
found apr source: ../apr-1.7.0/

You don't have a copy of the apr-util source in srclib/apr-util.
Please get one the source using the following instructions,
or specify the location of the source with
- --with-apr-util=[path to apr-util]:

   svn co http://svn.apache.org/repos/asf/apr/apr-util/branches/1.5.x
srclib/apr-util

That's interesting. When buildconf doesn't find the files it needs in
apr (probably those .m4 files), it, I guess, can't validate the
apr-util installation, either.

Okay, so I'll grab apr-util.

$ ./buildconf --with-apr=../apr-1.7.0/ --with-apr-util=../apr-util-1.6.1
/
found apr source: ../apr-1.7.0/
found apr-util source: ../apr-util-1.6.1/
copying build files
rebuilding include/ap_config_auto.h.in
rebuilding configure
rebuilding rpm spec file
fixing timestamps for ap_expr sources

Huzzah!

$ ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... x86_64-apple-darwin18.7.0
checking host system type... x86_64-apple-darwin18.7.0
checking target system type... x86_64-apple-darwin18.7.0
configure:
configure: Configuring Apache Portable Runtime library...
configure:
checking for APR... no
configure: error: APR not found.  Please read the documentation.

LOL

Okay, so maybe I have to *build* apr and apr-util.

Running configure for apr gives me all that lovely configure sauce,
but then at the end:

config.status: executing libtool commands
rm: libtoolT: No such file or directory
config.status: executing default commands

Hmm. I hope libtoolT not being there is okay. Running the build
produces 2 .dylib files (.so's for macos), so I think I'

Re: Building from svn on MacOS

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

William,

On 4/13/20 17:27, William A Rowe Jr wrote:
> On Mon, Apr 13, 2020 at 4:21 PM Christopher Schultz
>  > 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.

Yeah, I tried backing-out with that, too, and buildconf no longer
complained about the missing directory. But configure still failed
with the same error :(

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6VvM4ACgkQHPApP6U8
pFgsShAAgqgAhKOPQsKi+HQRwvyTcZrC89xu5VX2ps3G2oyxWsouSdNOZgBO4ffI
6smRYpUh5sWXz3m0zh21YHtOKPVXaWfibQq7amD/FI/nTdEJ8AZC2E8PiAZ6MC4W
Vz3LvX07zeANHi58USMqmKf2HMdv0Hi1OHEsDHB9Xtp9KG8AyMm+UpPhm1jWo16k
GxqcgNjx8+ad8KQG1KtQxxamxqXIRFgzMj47wLbr4K3R/VOeTp7ekHWSLOW0Ipr4
EO76cFvjVp+1O850uC+1QN4RR8RzFzWuxJRQ0Ft82y9Ca/ZOgb4kMQYC2HqmPZW0
V2LWwKeYYZv2UbcY/Vp3aCwnFReEhi0U165OD4ApDqYb3Bp01kukdsvJQh+NkXB5
YXpMiREI3eR08N0VsI40yFjd62LFZXlx7qsPi4AbbK6ggyoiCVjD3O/c+us+GU+9
UJmlEQ5yxr+aJI7UB53HXn+aze0gVBVOXWobXEk1aNpW0zaNZcYUCKYFPHEItuyA
VUWegPwJ/KZTYmmbebladSq51dj2WsT60+qGo/eW2bTEvtk41zPIqd7SatTdExpQ
TBq3AXDXHuD061w1rGkons1ax0Hl59jDMvCOnNTGrPCONQA1w39eQxkHSlPVIdMf
Y7F9U9K0RRqQaKrY/uYJBxO8lXMI0q5/5WDRiNcZ3TCxSEhaNpQ=
=n8JV
-END PGP SIGNATURE-


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-