Re: Compiling with Apache 2.4

Ruben Safir <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.