You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by John D Groenveld <jd...@elvis.arl.psu.edu> on 2017/08/30 22:23:36 UTC
Re: Trouble compiling modperl with FreeBSD11
In message <CA...@mail.gmail.com>
, jbiskofski writes:
>FreeBSD servers. Its been a few years since I've been able to compile
>mod-perl in FreeBSD. Everytime I need a new webserver I need to install
>FreeBSD9 and Perl 5.22. This has gradually been causing me more and more
>problems with server maintenance. Im hoping somebody can help me work this
>out. And ideally this can be resolved for other users, I've googled a bunch
>and it seems like Im not the only one going through this.
>
>*Heres what Im doing *
>*=================*
>
>tar xzfv perl-5.26.0.tar.gz
>cd perl-5.26.0
>sh Configure -Dusethreads -des -A ccflags=-fPIC -Dprefix=/usr/local/perl
>-Duseperlio
>make
>make test
>make install
>
>*This works and I get a working perl5.26 binary, which I then symlink to
>/usr/local/bin and /usr/bin*
I don't like mixing my application perl with my system perl,
but otherwise, LGTM.
>*===================*
>tar xzfv httpd-2.4.27.tar.bz2
$ ./configure --with-expat=/usr --with-ssl=/usr --enable-ssl \
--enable-proxy --enable-rewrite --enable-modules=all \
--enable-mods-shared=all --with-mpm=prefork \
--prefix=/usr/local/apache24
>tar xzfv mod_perl-2.0.10.tar.gz
$ env PATH=/usr/local/perl/bin:/usr/local/apache24/bin:${PATH} \
perl Makefile.PL MP_APXS=/usr/local/apache24/bin/apxs \
MAKE=make MP_NO_THREADS=1
make test fails for t/apache/read.t and t/filter/in_bbs_inject_header.t
but otherwise it works.
Happy hacking,
John
groenveld@acm.org
Re: Trouble compiling modperl with FreeBSD11
Posted by John D Groenveld <jd...@elvis.arl.psu.edu>.
In message <CA...@mail.gmail.com>
, jbiskofski writes:
>Thanks John, unfortunately same result.
$ ln -s /usr/local/bin/gmake /tmp/bin/make
$ env PATH=/tmp/bin:/usr/local/perl-5.26.0/bin:/usr/local/apache/bin:${PATH} \
make test
But it looks like you can avoid that fugliness:
$ env PATH=/usr/local/perl-5.26.0/bin:/usr/local/apache/bin:${PATH} \
MAKE=gmake \
perl Makefile.PL MP_APXS=/usr/local/apache/bin/apxs MAKE=gmake MP_NO_THREADS=1
John
groenveld@acm.org
Re: Trouble compiling modperl with FreeBSD11
Posted by jbiskofski <jb...@gmail.com>.
Thanks John, unfortunately same result.
Even though I really want the newest Perl, I tried with 5.24 and 5.22 , but
still I always got the same result on 5.22, 5.24 and 5.26
gmake[1]: Leaving directory
'/usr/local/src/mod_perl-2.0.10/ModPerl-Registry'
gmake[1]: Entering directory '/usr/local/src/mod_perl-2.0.10/WrapXS'
make[2]: don't know how to make w. Stop
make[2]: stopped in /usr/local/src/mod_perl-2.0.10/WrapXS/APR
gmake[1]: *** [Makefile:477: subdirs] Error 2
gmake[1]: Leaving directory '/usr/local/src/mod_perl-2.0.10/WrapXS'
gmake: *** [Makefile:688: subdirs] Error 2
On Thu, Aug 31, 2017 at 6:17 AM, John D Groenveld <jd...@elvis.arl.psu.edu>
wrote:
> In message <CAHpPzY7f8bY3-SRgdqiuzHAKujPhm9OTTodqa5O8xsz
> SA+UyEQ@mail.gmail.com>
> , jbiskofski writes:
> >*Inspecting the FreeBSD port file I see that it needs gmake instead of
> >make, so I tried this :*
> >
> >perl Makefile.PL MP_APXS=/usr/local/apache/bin/apxs MAKE=gmake
> >MP_NO_THREADS=1
> >gmake
> >
> >*That also did not work, but the error was different :*
>
> The quick fugly hack:
> $ mkdir /tmp/bin
> $ ln -s /usr/local/bin/gmake /tmp/bin
> $ env PATH=/tmp/bin:/usr/local/perl-5.26.0/bin:/usr/local/apache/bin:${PATH}
> \
> make test
>
> John
> groenveld@acm.org
>
Re: Trouble compiling modperl with FreeBSD11
Posted by John D Groenveld <jd...@elvis.arl.psu.edu>.
In message <CA...@mail.gmail.com>
, jbiskofski writes:
>*Inspecting the FreeBSD port file I see that it needs gmake instead of
>make, so I tried this :*
>
>perl Makefile.PL MP_APXS=/usr/local/apache/bin/apxs MAKE=gmake
>MP_NO_THREADS=1
>gmake
>
>*That also did not work, but the error was different :*
The quick fugly hack:
$ mkdir /tmp/bin
$ ln -s /usr/local/bin/gmake /tmp/bin
$ env PATH=/tmp/bin:/usr/local/perl-5.26.0/bin:/usr/local/apache/bin:${PATH} \
make test
John
groenveld@acm.org
Re: Trouble compiling modperl with FreeBSD11
Posted by jbiskofski <jb...@gmail.com>.
I tried recompiling perl without the -Duseperlio and got the same error.
On Wed, Aug 30, 2017 at 6:34 PM, jbiskofski <jb...@gmail.com> wrote:
> John, thanks for your reply. the MP_NO_THREADS=1 made a difference,
> although Im still not able to complete the Build, ./configure works fine,
> when I run make I get further along, but eventually I get this error :
>
> 2 warnings generated.
> rm -f ../../../blib/arch/auto/APR/PerlIO/PerlIO.so
> cc -shared -L/usr/local/lib -fstack-protector-strong PerlIO.o
> modperl_apr_perlio.o -pthread -Wl,-E -fstack-protector-strong
> -L/usr/local/lib -o ../../../blib/arch/auto/APR/PerlIO/PerlIO.so
> chmod 755 ../../../blib/arch/auto/APR/PerlIO/PerlIO.so
> make[3]: don't know how to make static. Stop
>
> =======
>
> I did build my perl with -Duseperlio, I dont know if that could be
> causing the problem.
>
> *Inspecting the FreeBSD port file I see that it needs gmake instead of
> make, so I tried this :*
>
> perl Makefile.PL MP_APXS=/usr/local/apache/bin/apxs MAKE=gmake
> MP_NO_THREADS=1
> gmake
>
> *That also did not work, but the error was different :*
>
> cp lib/ModPerl/PerlRunPrefork.pm ../blib/lib/ModPerl/PerlRunPrefork.pm
> gmake[1]: Leaving directory '/usr/local/src/mod_perl-2.0.
> 10/ModPerl-Registry'
> gmake[1]: Entering directory '/usr/local/src/mod_perl-2.0.10/WrapXS'
> make[2]: don't know how to make w. Stop
> make[2]: stopped in /usr/local/src/mod_perl-2.0.10/WrapXS/APR
> gmake[1]: *** [Makefile:478: subdirs] Error 2
> gmake[1]: Leaving directory '/usr/local/src/mod_perl-2.0.10/WrapXS'
> gmake: *** [Makefile:627: subdirs] Error 2
>
> =====
>
> I appreciate the help.
>
> - Jose
>
> On Wed, Aug 30, 2017 at 3:23 PM, John D Groenveld <
> jdg117@elvis.arl.psu.edu> wrote:
>
>> In message <CAHpPzY5XW8JrPCdXETehPEjxhWRChgTpNxsdxQXHNumA=DkgQg@mail.gm
>> ail.com>
>> , jbiskofski writes:
>> >FreeBSD servers. Its been a few years since I've been able to compile
>> >mod-perl in FreeBSD. Everytime I need a new webserver I need to install
>> >FreeBSD9 and Perl 5.22. This has gradually been causing me more and more
>> >problems with server maintenance. Im hoping somebody can help me work
>> this
>> >out. And ideally this can be resolved for other users, I've googled a
>> bunch
>> >and it seems like Im not the only one going through this.
>> >
>> >*Heres what Im doing *
>> >*=================*
>> >
>> >tar xzfv perl-5.26.0.tar.gz
>> >cd perl-5.26.0
>> >sh Configure -Dusethreads -des -A ccflags=-fPIC -Dprefix=/usr/local/perl
>> >-Duseperlio
>> >make
>> >make test
>> >make install
>> >
>> >*This works and I get a working perl5.26 binary, which I then symlink to
>> >/usr/local/bin and /usr/bin*
>>
>> I don't like mixing my application perl with my system perl,
>> but otherwise, LGTM.
>>
>> >*===================*
>> >tar xzfv httpd-2.4.27.tar.bz2
>>
>> $ ./configure --with-expat=/usr --with-ssl=/usr --enable-ssl \
>> --enable-proxy --enable-rewrite --enable-modules=all \
>> --enable-mods-shared=all --with-mpm=prefork \
>> --prefix=/usr/local/apache24
>>
>> >tar xzfv mod_perl-2.0.10.tar.gz
>>
>> $ env PATH=/usr/local/perl/bin:/usr/local/apache24/bin:${PATH} \
>> perl Makefile.PL MP_APXS=/usr/local/apache24/bin/apxs \
>> MAKE=make MP_NO_THREADS=1
>>
>> make test fails for t/apache/read.t and t/filter/in_bbs_inject_header.t
>> but otherwise it works.
>>
>> Happy hacking,
>> John
>> groenveld@acm.org
>>
>
>
Re: Trouble compiling modperl with FreeBSD11
Posted by jbiskofski <jb...@gmail.com>.
John, thanks for your reply. the MP_NO_THREADS=1 made a difference,
although Im still not able to complete the Build, ./configure works fine,
when I run make I get further along, but eventually I get this error :
2 warnings generated.
rm -f ../../../blib/arch/auto/APR/PerlIO/PerlIO.so
cc -shared -L/usr/local/lib -fstack-protector-strong PerlIO.o
modperl_apr_perlio.o -pthread -Wl,-E -fstack-protector-strong
-L/usr/local/lib -o ../../../blib/arch/auto/APR/PerlIO/PerlIO.so
chmod 755 ../../../blib/arch/auto/APR/PerlIO/PerlIO.so
make[3]: don't know how to make static. Stop
=======
I did build my perl with -Duseperlio, I dont know if that could be causing
the problem.
*Inspecting the FreeBSD port file I see that it needs gmake instead of
make, so I tried this :*
perl Makefile.PL MP_APXS=/usr/local/apache/bin/apxs MAKE=gmake
MP_NO_THREADS=1
gmake
*That also did not work, but the error was different :*
cp lib/ModPerl/PerlRunPrefork.pm ../blib/lib/ModPerl/PerlRunPrefork.pm
gmake[1]: Leaving directory
'/usr/local/src/mod_perl-2.0.10/ModPerl-Registry'
gmake[1]: Entering directory '/usr/local/src/mod_perl-2.0.10/WrapXS'
make[2]: don't know how to make w. Stop
make[2]: stopped in /usr/local/src/mod_perl-2.0.10/WrapXS/APR
gmake[1]: *** [Makefile:478: subdirs] Error 2
gmake[1]: Leaving directory '/usr/local/src/mod_perl-2.0.10/WrapXS'
gmake: *** [Makefile:627: subdirs] Error 2
=====
I appreciate the help.
- Jose
On Wed, Aug 30, 2017 at 3:23 PM, John D Groenveld <jd...@elvis.arl.psu.edu>
wrote:
> In message <CAHpPzY5XW8JrPCdXETehPEjxhWRChgTpNxsdxQXHNumA=DkgQg@mail.
> gmail.com>
> , jbiskofski writes:
> >FreeBSD servers. Its been a few years since I've been able to compile
> >mod-perl in FreeBSD. Everytime I need a new webserver I need to install
> >FreeBSD9 and Perl 5.22. This has gradually been causing me more and more
> >problems with server maintenance. Im hoping somebody can help me work this
> >out. And ideally this can be resolved for other users, I've googled a
> bunch
> >and it seems like Im not the only one going through this.
> >
> >*Heres what Im doing *
> >*=================*
> >
> >tar xzfv perl-5.26.0.tar.gz
> >cd perl-5.26.0
> >sh Configure -Dusethreads -des -A ccflags=-fPIC -Dprefix=/usr/local/perl
> >-Duseperlio
> >make
> >make test
> >make install
> >
> >*This works and I get a working perl5.26 binary, which I then symlink to
> >/usr/local/bin and /usr/bin*
>
> I don't like mixing my application perl with my system perl,
> but otherwise, LGTM.
>
> >*===================*
> >tar xzfv httpd-2.4.27.tar.bz2
>
> $ ./configure --with-expat=/usr --with-ssl=/usr --enable-ssl \
> --enable-proxy --enable-rewrite --enable-modules=all \
> --enable-mods-shared=all --with-mpm=prefork \
> --prefix=/usr/local/apache24
>
> >tar xzfv mod_perl-2.0.10.tar.gz
>
> $ env PATH=/usr/local/perl/bin:/usr/local/apache24/bin:${PATH} \
> perl Makefile.PL MP_APXS=/usr/local/apache24/bin/apxs \
> MAKE=make MP_NO_THREADS=1
>
> make test fails for t/apache/read.t and t/filter/in_bbs_inject_header.t
> but otherwise it works.
>
> Happy hacking,
> John
> groenveld@acm.org
>