You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Bernard T. Higonnet" <bt...@higonnet.net> on 2014/09/18 23:16:20 UTC

FreeBSD 10, Apache2.2, mod_perl, perl

Hello,

Can someone indicate a version of the following that work

Apache 2.2.x
perl 5.x
mod_perl 2.0.x

all under FreeBSD 10.0-RELEASE #0


I have tried various combinations with

Apache 2.2.29
perl 5.16
mod_perl 2.0.8, 2.07, 2.0.6

and none work... :(

TIA
Bernard Higonnet

Re: FreeBSD 10, Apache2.2, mod_perl, perl

Posted by "Bernard T. Higonnet" <bt...@higonnet.net>.
server-info:

Server Version: Apache/2.2.29 (Unix) PHP/5.6.0 mod_perl/2.0.8 Perl/v5.20.1

Many thanks!
Bernard Higonnet

On 09/19/14 16:42, John D Groenveld wrote:
> In message <54...@higonnet.net>, "Bernard T. Higonnet" writes:
>> Can someone indicate a version of the following that work
>>
>> Apache 2.2.x
>> perl 5.x
>> mod_perl 2.0.x
>>
>> all under FreeBSD 10.0-RELEASE #0
>
> Install gcc47 and build them each from source.
> $ cd http-2.2.29
> $ env CC=gcc47 ./configure --enable-ssl --enable-proxy \
> --enable-rewrite --enable-modules=all --enable-mods-shared=all \
> --with-included-apr --prefix=/opt/apache2
> $ cd perl-5.20.1
> $ ./Configure -Dprefix=/opt/apache2/perl-5.20.1 -Dcc=gcc47 -Duseshrplib \
> -Uusemymalc -Duselargefiles -Ubincompat5005 -Duse64bitall
> $ cd mod_perl-2.0.8
> $ env PATH=/opt/apache2/perl-5.20.1/bin:/opt/apache2/bin:${PATH} \
> perl Makefile.PL MP_APXS=/opt/apache2/bin/apxs
>
> John
> groenveld@acm.org
>


Re: FreeBSD 10, Apache2.2, mod_perl, perl

Posted by John D Groenveld <jd...@elvis.arl.psu.edu>.
In message <54...@higonnet.net>, "Bernard T. Higonnet" writes:
>Can someone indicate a version of the following that work
>
>Apache 2.2.x
>perl 5.x
>mod_perl 2.0.x
>
>all under FreeBSD 10.0-RELEASE #0

Install gcc47 and build them each from source.
$ cd http-2.2.29
$ env CC=gcc47 ./configure --enable-ssl --enable-proxy \
--enable-rewrite --enable-modules=all --enable-mods-shared=all \
--with-included-apr --prefix=/opt/apache2
$ cd perl-5.20.1
$ ./Configure -Dprefix=/opt/apache2/perl-5.20.1 -Dcc=gcc47 -Duseshrplib \
-Uusemymalc -Duselargefiles -Ubincompat5005 -Duse64bitall
$ cd mod_perl-2.0.8
$ env PATH=/opt/apache2/perl-5.20.1/bin:/opt/apache2/bin:${PATH} \
perl Makefile.PL MP_APXS=/opt/apache2/bin/apxs

John
groenveld@acm.org

Re: FreeBSD 10, Apache2.2, mod_perl, perl

Posted by jbiskofski <jb...@gmail.com>.
I tried all the possible combinations and was unable to get it to work. I
ended up reverting to freebsd 9.

I tried perl 5.12 thru 5.20.
Apache 2.0* 2.2* 2.4*
The last ten mod_perl releases.

This was a year ago. So I dont remember the specifics but I do remember
certain combinations just would not compile, other combinations would
compile after much suffering, only to segfault when I tried starting apache.

- Jose


On Thu, Sep 18, 2014 at 2:16 PM, Bernard T. Higonnet <bt...@higonnet.net>
wrote:

> Hello,
>
> Can someone indicate a version of the following that work
>
> Apache 2.2.x
> perl 5.x
> mod_perl 2.0.x
>
> all under FreeBSD 10.0-RELEASE #0
>
>
> I have tried various combinations with
>
> Apache 2.2.29
> perl 5.16
> mod_perl 2.0.8, 2.07, 2.0.6
>
> and none work... :(
>
> TIA
> Bernard Higonnet
>

Re: FreeBSD 10, Apache2.2, mod_perl, perl

Posted by Michael Schout <ms...@gkg.net>.
On 9/18/14 4:16 PM, Bernard T. Higonnet wrote:
> Hello,
> 
> Can someone indicate a version of the following that work
> 
> Apache 2.2.x
> perl 5.x
> mod_perl 2.0.x
> 
> all under FreeBSD 10.0-RELEASE #0

I'm late in replying to this, but a major problem on FreeBSD 10 is the
fact that programs ship with a libtool script that incorrectly
identifies it as FreeBSD 1.x, and thus disables building of shared
libraries.  I am guessing this is the problem you are running into.

This is not really apache, perl, or mod_perl's fault.  You have to patch
libtool so that it does not incorrectly identify it as FreeBSD 1.x.

I use the following in my own makefiles, adapted from FreeBSD ports
tree, which also applies this fix:


> 	-@for f in `find $(CURDIR) -type f \( -name config.libpath -o \
> 		-name config.rpath -o -name configure -o -name libtool.m4 -o \
> 		-name ltconfig -o -name libtool -o -name aclocal.m4 -o \
> 		-name acinclude.m4 \)` ; do \
> 			sed -i.fbsd10bak \
> 				-e 's|freebsd1\*)|freebsd1.\*)|g' \
> 				-e 's|freebsd\[12\]\*)|freebsd[12].*)|g' \
> 				-e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \
> 				-e 's|freebsd\[\[12\]\]\*)|freebsd[[12]].*)|g' \
> 				-e 's|freebsd\[\[123\]\]\*)|freebsd[[123]].*)|g' \
> 					$${f} ; \
> 			touch -f -mr $${f}.fbsd10bak $${f} ; \
> 			rm -f $${f}.fbsd10bak ; \
> 			echo "===>   FreeBSD 10 autotools fix applied to $${f}"; \
> 		done

> 	@find $(CURDIR)  \( -name configure -or -name ltconfig \)     \
> 		-type f | while read i; do sed -i.bak                \
> 		-e '/dragonfly\*/!s/^ *freebsd\*[ )]/dragonfly* | &/'   \
> 		-e '/gcc_dir=\\`/s/gcc /$$CC /'                         \
> 		-e '/gcc_ver=\\`/s/gcc /$$CC /'                         \
> 		-e '/link_all_deplibs[0-9A-Z_]*=/s/=unknown/=no/'       \
> 		-e '/objformat=/s/echo aout/echo elf/'                  \
> 		-e "/freebsd-elf\\*)/,/;;/ {                            \
> 	  	   /deplibs_check_method=/s/=.*/=pass_all/; }"         \
> 		   $${i} && touch -mr $${i}.bak $${i}; done
> 
> 	@find $(CURDIR) -type f -name ltmain.sh |                    \
> 		xargs sed -i.bak                               \
> 		-e '/if.*linkmode.*prog.*mode.*!= relink/s/if.*;/if :;/'\
> 		-e '/if.*linkmode.*prog.*mode.* = relink/s/||.*;/;/'    \
> 		-e 's/|-p|-pg|/|-B*|-p|-pg|/'

Regards,
Michael Schout