Mailing List Archive

Compiling with Apache 2.4
I am trying to compile Apache 2.4.27 and mod_perl 2.0.10 and I used the
command

perl Makefile.PL MP_USE_STATIC=11
MP_AP_PREFIX="/home/ruben/src/httpd-2.4.xx"
MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"

and it bombs with:
perl Makefile.PL MP_USE_STATIC=11
MP_AP_PREFIX="/home/ruben/src/httpd-2.4.xx"
MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
Reading Makefile.PL args from @ARGV
MP_USE_STATIC = 11
[ error] MP_AP_PREFIX must point to a valid directory.

I googled this and pulled two libraries but not sure how to proceed.

total 12540
drwxr-xr-x 7 ruben ruben 4096 Sep 28 06:03 .
drwx------ 8 ruben ruben 4096 Sep 28 06:18 ..
drwxr-xr-x 27 ruben ruben 4096 Sep 28 06:04 apr-1.6.2
-rw-r--r-- 1 ruben ruben 1071074 Jun 20 06:29 apr-1.6.2.tar.gz
drwxr-xr-x 20 ruben ruben 4096 May 3 19:20 apr-util-1.6.0
-rw-r--r-- 1 ruben ruben 565507 Jun 20 06:29 apr-util-1.6.0.tar.gz
drwxr-xr-x 9 ruben ruben 4096 Apr 16 2014 Embperl-2.5.0
-rw-r--r-- 1 ruben ruben 787397 Oct 9 2015 Embperl-2.5.0.tar.gz
drwxr-xr-x 11 ruben ruben 4096 Sep 28 06:17 httpd-2.4.27
-rw-r--r-- 1 ruben ruben 6527394 Jul 9 14:10 httpd-2.4.27.tar.bz2
drwxr-xr-x 15 ruben ruben 4096 Sep 28 05:46 mod_perl-2.0.10
-rw-r--r-- 1 ruben ruben 3846211 Oct 27 2016 mod_perl-2.0.10.tar.gz

I did a ./configure under the apr-1.6.2 source and is seemed to work but
a libtool error happened, and tha is just too many errors without me
asking now from someone I trust as how to proceed.

config.status: creating test/internal/Makefile
config.status: creating include/arch/unix/apr_private.h
config.status: executing libtool commands
rm: cannot remove 'libtoolT': No such file or directory
config.status: executing default commands
config.status: include/apr.h is unchanged
config.status: include/arch/unix/apr_private.h is unchanged


Ruben

--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
Hello,

> On 28 Sep 2017, at 15:39, Ruben Safir <ruben@mrbrklyn.com> wrote:
>
> I am trying to compile Apache 2.4.27 and mod_perl 2.0.10 and I used the
> command
>
> perl Makefile.PL MP_USE_STATIC=11
> MP_AP_PREFIX="/home/ruben/src/httpd-2.4.xx"
> MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
>
> and it bombs with:
> perl Makefile.PL MP_USE_STATIC=11
> MP_AP_PREFIX="/home/ruben/src/httpd-2.4.xx"
> MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
> Reading Makefile.PL args from @ARGV
> MP_USE_STATIC = 11
> [ error] MP_AP_PREFIX must point to a valid directory.

Are you sure, that the directory '/home/ruben/src/httpd-2.4.xx’ exists and you have write access to it? The message says it is not a valid directory.

Best regards

Matthias Schmitt

magic moving pixel s.a.
23, Avenue Grande-Duchesse Charlotte
L-3441 Dudelange
Luxembourg
Phone: +352 54 75 75
http://www.mmp.lu
Re: Compiling with Apache 2.4 [ In reply to ]
Correct: Let me correct my ignorance ;)

[ruben@www3 mod_perl-2.0.10]$ perl Makefile.PL MP_USE_STATIC=1
MP_AP_PREFIX="/home/ruben/src/httpd-2.4.27"
MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
Reading Makefile.PL args from @ARGV
MP_USE_STATIC = 1
MP_AP_PREFIX = /home/ruben/src/httpd-2.4.27
MP_AP_CONFIGURE = --with-mpm=prefork --enable-load-all-modules
no conflicting prior mod_perl version found - good.
Using Apache prefix => /home/ruben/src/httpd-2.4.27
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-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
configure:
configure: Configuring Apache Portable Runtime library...
configure:
checking for APR... no
configure: error: APR not found. Please read the
documentation.
httpd: ./configure --with-mpm=prefork --enable-load-all-modules
failed at lib/Apache2/Build.pm line 412.


On Thu, Sep 28, 2017 at 04:18:25PM +0200, Matthias Schmitt wrote:
> Hello,
>
> > On 28 Sep 2017, at 15:39, Ruben Safir <ruben@mrbrklyn.com> wrote:
> >
> > I am trying to compile Apache 2.4.27 and mod_perl 2.0.10 and I used the
> > command
> >
> > perl Makefile.PL MP_USE_STATIC=11
> > MP_AP_PREFIX="/home/ruben/src/httpd-2.4.xx"
> > MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
> >
> > and it bombs with:
> > perl Makefile.PL MP_USE_STATIC=11
> > MP_AP_PREFIX="/home/ruben/src/httpd-2.4.xx"
> > MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
> > Reading Makefile.PL args from @ARGV
> > MP_USE_STATIC = 11
> > [ error] MP_AP_PREFIX must point to a valid directory.
>
> Are you sure, that the directory '/home/ruben/src/httpd-2.4.xx’ exists and you have write access to it? The message says it is not a valid directory.
>
> Best regards
>
> Matthias Schmitt
>
> magic moving pixel s.a.
> 23, Avenue Grande-Duchesse Charlotte
> L-3441 Dudelange
> Luxembourg
> Phone: +352 54 75 75
> http://www.mmp.lu
>
>
>

--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
Hello, it’s me again, …

> On 28 Sep 2017, at 16:23, Ruben Safir <ruben@mrbrklyn.com> wrote:
>
> Correct: Let me correct my ignorance ;)
>
> [ruben@www3 mod_perl-2.0.10]$ perl Makefile.PL MP_USE_STATIC=1
> MP_AP_PREFIX="/home/ruben/src/httpd-2.4.27"
> MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
> Reading Makefile.PL args from @ARGV
> MP_USE_STATIC = 1
> MP_AP_PREFIX = /home/ruben/src/httpd-2.4.27
> MP_AP_CONFIGURE = --with-mpm=prefork --enable-load-all-modules
> no conflicting prior mod_perl version found - good.
> Using Apache prefix => /home/ruben/src/httpd-2.4.27
> 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-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> checking target system type... x86_64-pc-linux-gnu
> configure:
> configure: Configuring Apache Portable Runtime library...
> configure:
> checking for APR... no
> configure: error: APR not found. Please read the
> documentation.
> httpd: ./configure --with-mpm=prefork --enable-load-all-modules
> failed at lib/Apache2/Build.pm line 412.

"error: APR not found. Please read the documentation.”

You need to install APR (Apache Portable Runtime) first. You can find it here: http://apr.apache.org/.

Best regards

Matthias Schmitt

magic moving pixel s.a.
23, Avenue Grande-Duchesse Charlotte
L-3441 Dudelange
Luxembourg
Phone: +352 54 75 75
http://www.mmp.lu
Re: Compiling with Apache 2.4 [ In reply to ]
>
> "error: APR not found. Please read the documentation.”
>
> You need to install APR (Apache Portable Runtime) first. You can find it here: http://apr.apache.org/.
>
> Best regards
>
> Matthias Schmitt
>
> magic moving pixel s.a.
> 23, Avenue Grande-Duchesse Charlotte
> L-3441 Dudelange
> Luxembourg
> Phone: +352 54 75 75
> http://www.mmp.lu
>
>
>
>

I tried that with configure, make and sudo make install and it still
can't find it. It is there under /usr/local/apr/

Configuring Apache/2.4.27 mod_perl/2.0.10 Perl/v5.26.0
[ error] Can't find apr include/ directory,
[ error] use MP_APR_CONFIG=/path/to/apr-config

I tried to point it to it and g perl Makefile.PL MP_USE_STATIC=1
MP_AP_PREFIX="/home/ruben/src/httpd-2.4.27"
MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
MP_APR_CONFIG=/usr/local/apr/

error
You need to pass either MP_AP_PREFIX or MP_APR_CONFIG, but not both
Re: Compiling with Apache 2.4 [ In reply to ]
In message <20170928133913.GA27278@www.mrbrklyn.com>, Ruben Safir writes:
>I am trying to compile Apache 2.4.27 and mod_perl 2.0.10 and I used the
>command
>
>perl Makefile.PL MP_USE_STATIC=11
>MP_AP_PREFIX="/home/ruben/src/httpd-2.4.xx"
>MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
>
>and it bombs with:
>perl Makefile.PL MP_USE_STATIC=11
>MP_AP_PREFIX="/home/ruben/src/httpd-2.4.xx"
>MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
>Reading Makefile.PL args from @ARGV
> MP_USE_STATIC = 11
> [ error] MP_AP_PREFIX must point to a valid directory.
>
>I googled this and pulled two libraries but not sure how to proceed.
>
>total 12540
>drwxr-xr-x 7 ruben ruben 4096 Sep 28 06:03 .
>drwx------ 8 ruben ruben 4096 Sep 28 06:18 ..
>drwxr-xr-x 27 ruben ruben 4096 Sep 28 06:04 apr-1.6.2
>-rw-r--r-- 1 ruben ruben 1071074 Jun 20 06:29 apr-1.6.2.tar.gz
>drwxr-xr-x 20 ruben ruben 4096 May 3 19:20 apr-util-1.6.0
>-rw-r--r-- 1 ruben ruben 565507 Jun 20 06:29 apr-util-1.6.0.tar.gz
>drwxr-xr-x 9 ruben ruben 4096 Apr 16 2014 Embperl-2.5.0
>-rw-r--r-- 1 ruben ruben 787397 Oct 9 2015 Embperl-2.5.0.tar.gz
>drwxr-xr-x 11 ruben ruben 4096 Sep 28 06:17 httpd-2.4.27
>-rw-r--r-- 1 ruben ruben 6527394 Jul 9 14:10 httpd-2.4.27.tar.bz2
>drwxr-xr-x 15 ruben ruben 4096 Sep 28 05:46 mod_perl-2.0.10
>-rw-r--r-- 1 ruben ruben 3846211 Oct 27 2016 mod_perl-2.0.10.tar.gz
>
>I did a ./configure under the apr-1.6.2 source and is seemed to work but
>a libtool error happened, and tha is just too many errors without me
>asking now from someone I trust as how to proceed.

I'm not familiar with static linking mod_perl, but if you build Apache
separately with the intention of running mod_perl as a DSO, you should
configure Apache --with-included-apr and place apr and apr-util in
its srclib directory.

Then you would build mod_perl,
$ env MAKE=gmake /path/to/bin/perl Makefile.PL \
MP_APXS=/path/to/bin/apxs MAKE=gmake MP_NO_THREADS=1

Happy hacking,
John
groenveld@acm.org
Re: Compiling with Apache 2.4 [ In reply to ]
Re-Hello, ...

> I tried that with configure, make and sudo make install and it still
> can't find it. It is there under /usr/local/apr/
>
> Configuring Apache/2.4.27 mod_perl/2.0.10 Perl/v5.26.0
> [ error] Can't find apr include/ directory,
> [ error] use MP_APR_CONFIG=/path/to/apr-config
>
> I tried to point it to it and g perl Makefile.PL MP_USE_STATIC=1
> MP_AP_PREFIX="/home/ruben/src/httpd-2.4.27"
> MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
> MP_APR_CONFIG=/usr/local/apr/
>
> error
> You need to pass either MP_AP_PREFIX or MP_APR_CONFIG, but not both

This looks to me as you would be mixing Apache and mod_perl installation. Instead of giving just another puzzle piece, it might be more helpful to you when I show you how I installed Apache and mod_perl from the sources using customised paths. ‘MySourcePath’ and ‘MyHttpdPrefixPath’ present my local setup, so you need to adapt this to your path structure.

cd /MySourcePath/apr-1.6.2
./configure —prefix=/MyHttpdPrefixPath
make
make test
make install

cd /MySourcePath/apr-util-1.6.0
./configure --prefix=/MyHttpdPrefixPath --without-sqlite3 --with-apr=/MyHttpdPrefixPath
make
make test
make install

cd /MySourcePath/pcre-8.41
./configure --prefix=/MyHttpdPrefixPath
make
make test
make install


cd /MySourcePath/httpd-2.4.27
./configure --prefix=/MyHttpdPrefixPath --with-mpm=prefork --enable-mods-shared=all --enable-dav --enable-rewrite --enable-ssl --enable-proxy --enable-proxy_http --enable-auth-digest --with-apr=/MyHttpdPrefixPath --with-apr-util=/MyHttpdPrefixPath --with-pcre=/MyHttpdPrefixPath —with-ssl=/MySslPath
(of course you might have different needs, so feel free to leave some options away)
make
make install


cd /MySourcePath/mod_perl-2.0.10
perl Makefile.PL MP_APR_CONFIG=/MyHttpdPrefixPath/bin/apr-1-config MP_APXS=/MyHttpdPrefixPath/bin/apxs
make
make test
make install

The test had shown minor problems here, but for my requirements all functions are working.

I hope this offers you a more complete picture.

Best regards

Matthias Schmitt

magic moving pixel s.a.
23, Avenue Grande-Duchesse Charlotte
L-3441 Dudelange
Luxembourg
Phone: +352 54 75 75
http://www.mmp.lu
Re: Compiling with Apache 2.4 [ In reply to ]
On 09/28/2017 11:21 AM, Matthias Schmitt wrote:
> Re-Hello, ...
>
>> I tried that with configure, make and sudo make install and it still
>> can't find it. It is there under /usr/local/apr/
>>
>> Configuring Apache/2.4.27 mod_perl/2.0.10 Perl/v5.26.0
>> [ error] Can't find apr include/ directory,
>> [ error] use MP_APR_CONFIG=/path/to/apr-config
>>
>> I tried to point it to it and g perl Makefile.PL MP_USE_STATIC=1
>> MP_AP_PREFIX="/home/ruben/src/httpd-2.4.27"
>> MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules"
>> MP_APR_CONFIG=/usr/local/apr/
>>
>> error
>> You need to pass either MP_AP_PREFIX or MP_APR_CONFIG, but not both
>
> This looks to me as you would be mixing Apache and mod_perl installation. Instead of giving just another puzzle piece, it might be more helpful to you when I show you how I installed Apache and mod_perl from the sources using customised paths. ‘MySourcePath’ and ‘MyHttpdPrefixPath’ present my local setup, so you need to adapt this to your path structure.
>
> cd /MySourcePath/apr-1.6.2
> ./configure —prefix=/MyHttpdPrefixPath
> make
> make test
> make install
>
> cd /MySourcePath/apr-util-1.6.0
> ./configure --prefix=/MyHttpdPrefixPath --without-sqlite3 --with-apr=/MyHttpdPrefixPath
> make
> make test
> make install
>
> cd /MySourcePath/pcre-8.41
> ./configure --prefix=/MyHttpdPrefixPath
> make
> make test
> make install
>
>
> cd /MySourcePath/httpd-2.4.27
> ./configure --prefix=/MyHttpdPrefixPath --with-mpm=prefork --enable-mods-shared=all --enable-dav --enable-rewrite --enable-ssl --enable-proxy --enable-proxy_http --enable-auth-digest --with-apr=/MyHttpdPrefixPath --with-apr-util=/MyHttpdPrefixPath --with-pcre=/MyHttpdPrefixPath —with-ssl=/MySslPath
> (of course you might have different needs, so feel free to leave some options away)
> make
> make install
>
>
> cd /MySourcePath/mod_perl-2.0.10
> perl Makefile.PL MP_APR_CONFIG=/MyHttpdPrefixPath/bin/apr-1-config MP_APXS=/MyHttpdPrefixPath/bin/apxs
> make
> make test
> make install
>
> The test had shown minor problems here, but for my requirements all functions are working.
>
> I hope this offers you a more complete picture.
>
> Best regards
>
> Matthias Schmitt
>
> magic moving pixel s.a.
> 23, Avenue Grande-Duchesse Charlotte
> L-3441 Dudelange
> Luxembourg
> Phone: +352 54 75 75
> http://www.mmp.lu
>
>
>
>

You created apache seperately

--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
On 09/28/2017 11:21 AM, Matthias Schmitt wrote:
> -with-apr=/MyHttpdPrefixPath --with-apr-util=/MyHttpdPrefixPath


it looks like you can not compile apache from mod_perl anylonger.


--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
On 09/28/2017 11:21 AM, Matthias Schmitt wrote:
> cd /MySourcePath/httpd-2.4.27
> ./configure --prefix=/MyHttpdPrefixPath --with-mpm=prefork --enable-mods-shared=all --enable-dav --enable-rewrite --enable-ssl --enable-proxy --enable-proxy_http --enable-auth-digest --with-apr=/MyHttpdPrefixPath --with-apr-util=/MyHttpdPrefixPath --with-pcre=/MyHttpdPrefixPath —with-ssl=/MySslPath
> (of course you might have different needs, so feel free to leave some options away)
> make
> make install
>
>
> cd /MySourcePath/mod_perl-2.0.10
> perl Makefile.PL MP_APR_CONFIG=/MyHttpdPrefixPath/bin/apr-1-config MP_APXS=/MyHttpdPrefixPath/bin/apxs
> make
> make test
> make install


I really wanted to make this static and compile from mod_perl and it
just looks like it is not possible any longer unless I can get apr UNDER
the apache tree somehow.

I tried adding /usr/local/apr to ld.conf.d with no luck

There is a section in the apache code
ls ../httpd-2.4.27/srclib/
apr-1.6.2 apr-util-1.6.0 Makefile Makefile.in

where I added the source code for apr, but it is not being seen

I tired a derivative of your method
perl Makefile.PL MP_USE_STATIC=1
MP_AP_PREFIX="/home/ruben/src/httpd-2.4.27"
MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules
--with-apr=/usr/local/apr"


that has a very strange failure:

configure: summary of build options:

Server Version: 2.4.27
Install prefix: /usr/local/apache2
C compiler: gcc
CFLAGS: -g -O2 -pthread
LDFLAGS:
LIBS:
CPPFLAGS: -DLINUX -D_REENTRANT -D_GNU_SOURCE
C preprocessor: gcc -E

Configuring Apache/2.4.27 mod_perl/2.0.10 Perl/v5.26.0
Use of uninitialized value $httpd_version in string lt at
lib/ModPerl/MapUtil.pm line 51.
Checking if your kit is complete...
Looks good
ERROR from evaluation of
/home/ruben/src/mod_perl-2.0.10/Apache-Reload/Makefile.PL: Use of
uninitialized value $v in substitution (s///) at
Apache-Test/lib/Apache/TestRun.pm line 1100.


--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
In message <64d9bcac-1bea-acbb-d21d-02b13fee5e64@mrbrklyn.com>, Ruben Safir wri
tes:
>I really wanted to make this static and compile from mod_perl and it
>just looks like it is not possible any longer unless I can get apr UNDER
>the apache tree somehow.

Unknown whether statically link is supported, but mod_perl works
fine as a DSO.

>I tried adding /usr/local/apr to ld.conf.d with no luck
>
>There is a section in the apache code
>ls ../httpd-2.4.27/srclib/
>apr-1.6.2 apr-util-1.6.0 Makefile Makefile.in
>
>where I added the source code for apr, but it is not being seen

$ ln -s apr-1.6.2 apr
$ ln -s apr-util-1.6.0 apr-util

John
groenveld@acm.org
Re: Compiling with Apache 2.4 [ In reply to ]
So I moved the apr and apr-util source under the httpd directory but I
removed the version numbers and it passed the apr problem:

Note this solution for Apache 2.4 and Modperl 10

cp -r ../apr-1.6.2 ~/src/httpd-2.4.27/srclib/apr
cp -r ../apr-util-1.6.0 ~/src/httpd-2.4.27/srclib/apr-util

Now I seem to be running into what seems to be a bug:


config.status: creating include/ap_config_auto.h
config.status: include/ap_config_auto.h is unchanged
config.status: executing default commands
configure: summary of build options:

Server Version: 2.4.27
Install prefix: /usr/local/apache2
C compiler: gcc
CFLAGS: -g -O2 -pthread
LDFLAGS:
LIBS:
CPPFLAGS: -DLINUX -D_REENTRANT -D_GNU_SOURCE
C preprocessor: gcc -E

Configuring Apache/2.4.27 mod_perl/2.0.10 Perl/v5.26.0
Use of uninitialized value $httpd_version in string lt at
lib/ModPerl/MapUtil.pm line 51.
Checking if your kit is complete...
Looks good
ERROR from evaluation of
/home/ruben/src/mod_perl-2.0.10/Apache-Reload/Makefile.PL: Use of
uninitialized value $v in substitution (s///) at
Apache-Test/lib/Apache/TestRun.pm line 1100.



--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
no, apache simply doesn't complile any long. This is what we get for
depending on package from distors.

We have no broken tarballs and source code that doesn't work or
fundementally broken.

exports.c:1461:13: note: previous definition of
‘ap_hack_apr_xml_empty_elem’ was here
const void *ap_hack_apr_xml_empty_elem = (const void
*)apr_xml_empty_elem;
^~~~~~~~~~~~~~~~~~~~~~~~~~
exports.c:2650:13: error: redefinition of ‘ap_hack_apr_xml_quote_string’
const void *ap_hack_apr_xml_quote_string = (const void
*)apr_xml_quote_string;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~


a stream of these
Re: Compiling with Apache 2.4 [ In reply to ]
FWIW

This error seems to be from apr conflicts. I had differing APRs and I
made the APR and APR-UTIL but hand but it seems the systems already had
installed apr for another package. I have to remove all the hand
compliled versions, not that easy, but I was luckky to have everything
in known locations. Then I reinstalled apr-utility with pacman.

That was a problem not and the packagemanager was out of sync. I
couldn't remove it or instlall it so I have to remove dead files in
/usr/lib/pkgconfig/ and then reinstall and upgrade apr-utility (which
includes apr). Don't, if you use arch, install apr by itself. I think
it was the source of the instability.

Hopefully some seach engine will find this and save someone a lot of
greif.


On Thu, Sep 28, 2017 at 01:23:34PM -0400, Ruben Safir wrote:
>
> no, apache simply doesn't complile any long. This is what we get for
> depending on package from distors.
>
> We have no broken tarballs and source code that doesn't work or
> fundementally broken.
>
> exports.c:1461:13: note: previous definition of
> ‘ap_hack_apr_xml_empty_elem’ was here
> const void *ap_hack_apr_xml_empty_elem = (const void
> *)apr_xml_empty_elem;
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> exports.c:2650:13: error: redefinition of ‘ap_hack_apr_xml_quote_string’
> const void *ap_hack_apr_xml_quote_string = (const void
> *)apr_xml_quote_string;
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> a stream of these

--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
On 09/28/2017 11:21 AM, Matthias Schmitt wrote:
> cd /MySourcePath/pcre-8.41
> ./configure --prefix=/MyHttpdPrefixPath
> make
> make test
> make install

what is pcre?


--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
On 30.09.2017 16:39, Ruben Safir wrote:
> On 09/28/2017 11:21 AM, Matthias Schmitt wrote:
>> cd /MySourcePath/pcre-8.41
>> ./configure --prefix=/MyHttpdPrefixPath
>> make
>> make test
>> make install
>
> what is pcre?
>
>
I don't what the context of the questions is, but
"pcre" stands for "Perl Compatible Regular Expressions"
Re: Compiling with Apache 2.4 [ In reply to ]
On 09/28/2017 11:21 AM, Matthias Schmitt wrote:
> perl Makefile.PL MP_APR_CONFIG=/MyHttpdPrefixPath/bin/apr-1-config MP_APXS=/MyHttpdPrefixPath/bin/apxs

cc -shared -O2 -L/usr/local/lib -fstack-protector-strong \
\
mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo
modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo
modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo
modperl_io_apache.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo
modperl_pcw.lo modperl_global.lo modperl_env.lo modperl_cgi.lo
modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo
modperl_module.lo modperl_svptr_table.lo modperl_const.lo
modperl_constants.lo modperl_apache_compat.lo modperl_error.lo
modperl_debug.lo modperl_common_util.lo modperl_common_log.lo
modperl_hooks.lo modperl_directives.lo modperl_flags.lo
modperl_xsinit.lo modperl_exports.lo -Wl,-E -fstack-protector-strong
-L/usr/local/lib
-L/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE -lperl
-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc \
-o mod_perl.so
/usr/bin/ld:
/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE/libperl.a(op.o):
relocation R_X86_64_PC32 against symbol `PL_opargs' can not be used when
making a shared object; recompile with -fPIC


This doesn't work. I just throw up my hands at this point. ModPerl is
obviously so broken now that it can no longer be used.

--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
>
> This doesn't work. I just throw up my hands at this point. ModPerl is
> obviously so broken now that it can no longer be used.


Having spent a few months coaxing some 2005-era apache and mod_perl into modern life, I kicked out all the self-build apache, mod_perl, perl from Bamboo and went with the latest RPMs from RHEL 7.

I do not regret this decision.

And don’t talk to me about mod_perl 1.x.
Re: Compiling with Apache 2.4 [ In reply to ]
On 09/30/2017 01:47 PM, David Hodgkinson wrote:
>>
>> This doesn't work. I just throw up my hands at this point. ModPerl is
>> obviously so broken now that it can no longer be used.
>
>
> Having spent a few months coaxing some 2005-era apache and mod_perl into modern life, I kicked out all the self-build apache, mod_perl, perl from Bamboo and went with the latest RPMs from RHEL 7.
>
> I do not regret this decision.
>
> And don’t talk to me about mod_perl 1.x.
>

relocation R_X86_64_PC32 against symbol `PL_opargs' can not be used when
making a shared object; recompile with -fPIC

what the hell is this error

--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
In message <0aaf73f0-af48-53ac-c8d7-871ae0339d2e@mrbrklyn.com>, Ruben Safir wri
tes:
>/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE/libperl.a(op.o):
>relocation R_X86_64_PC32 against symbol `PL_opargs' can not be used when
>making a shared object; recompile with -fPIC

$ perl -V

Looks like your Perl build is statically linked and multi-threaded
while your Apache is pre-fork and you intend to build mod_perl
as a DSO.

John
groenveld@acm.org
Re: Compiling with Apache 2.4 [ In reply to ]
On Sat, Sep 30, 2017 at 08:27:22PM -0400, John D Groenveld wrote:
> In message <0aaf73f0-af48-53ac-c8d7-871ae0339d2e@mrbrklyn.com>, Ruben Safir wri
> tes:
> >/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE/libperl.a(op.o):
> >relocation R_X86_64_PC32 against symbol `PL_opargs' can not be used when
> >making a shared object; recompile with -fPIC
>
> $ perl -V
>
> Looks like your Perl build is statically linked and multi-threaded
> while your Apache is pre-fork and you intend to build mod_perl
> as a DSO.
>
> John
> groenveld@acm.org



Yes! I rebuilt it for threads and shared. Different docs say different
things. I tried to rebuild it with the ithread option and that option
is now Dusethread no longer Duseithread. I think there was also a
problem building it for 64 bits and I had to use an envar for CFLAG for
64 bits. I think these items need to get into the docs.

[ruben@www3 ~]$ perl -v

This is perl 5, version 26, subversion 1 (v5.26.1) built for
x86_64-linux-thread-multi


--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Re: Compiling with Apache 2.4 [ In reply to ]
In message <20171001044753.GA20787@www.mrbrklyn.com>, Ruben Safir writes:
>Yes! I rebuilt it for threads and shared. Different docs say different
>things. I tried to rebuild it with the ithread option and that option
>is now Dusethread no longer Duseithread. I think there was also a

Try 64-bit Perl Configured with
-Uuseithreads -Uusethreads -Duseshrplib -Duse64bitall

John
groenveld@acm.org