You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Philip M. Gollucci" <pg...@p6m7g8.com> on 2005/07/21 08:14:32 UTC

freebsd + threads + httpd(worker)/mod_perl2

Speaking of FreeBSD,

I confirm the following combo passes 100% of the test suites and the 
ModPerl::Registry ones too.

FreeBSD 5.4-RELEASE
gcc 3.4.2
perl 5.8.7 WITH ithreads
httpd 2.0.54 apr IS THREADED (worker mpm)
mod_perl2 svn trunk
mod_apreq2 2.0.6 (just released)

As I didn't use the ports for this, I'll list the exact configure lines

****************************************************
before you start, edit your /etc/libmap.conf:

pgollucci@smgellar /etc rv=0 16 >cat libmap.conf
libc_r.so.5     libpthread.so.1
libc_r.so       libpthread.so

on 6-current change this appropriately
*****************************************************

perl:
./Configure -sde \
   -Dprefix=$PREFIX/perl \
   -Darchlib=$PREFIX/perl/lib \
   -Dsitearch=$PREFIX/perl/lib \
   -Dsitelib=$PREFIX/perl/lib \
   -Dprivlib=$PREFIX/perl/lib \
   -Dman3dir=$PREFIX/perl/man/man3 \
   -Dman1dir=$PREFIX/perl/man/man1 \
   -Dsiteman3dir=$PREFIX/perl/man/man3 \
   -Dsiteman1dir=$PREFIX/perl/man/man1 \
   -Dscriptdir=$PREFIX/perl/bin \
   -Uinstallusrbinperl \
   -Dcc=cc \
   -Doptimize="-ggdb3 -O0" \
   -Duseshrplib \
   -Dusedevel \
   -Dusethreads=y \
   -Dusemymalloc=y \         **** note this one well ****
   -Duse64bitint \
   -Dccflags=-pipe \
   -Ud_dosuid \
   -Ui_gdbm \
   -Ui_malloc \
   -Ui_iconv \
   -Ubincompat5005

httpd:
CFLAGS="-ggdb3 -O0"  \
  ./configure --prefix=$PREFIX/httpd \
  --with-perl=$PREFIX/perl/bin/perl \
  --enable-v4-mapped \
  --with-dbm=sdbm \
  --with-ssl=/usr \
  --enable-ssl \
  --enable-so \
  --with-port=80 \
  --with-mpm=worker \
  --with-expat=/usr/local \
  --enable-maintainer-mode \
  --enable-threads \
  --enable-debug \
  --enable-mods-shared=all \
  --enable-modules=all \
  --enable-deflate=shared \
  --enable-proxy=shared \
  --enable-threads \
  --disable-log-forensic

mod_perl2:
$PREFIX/perl/bin/perl Makefile.PL \
  MP_APXS=$PREFIX/httpd/bin/apxs \
  MP_MAINTAINER=1 \
  MP_DEBUG=1 \
  MP_TRACE=1

libapreq2:
./configure \
  --enable-perl-glue \
  --enable-maintainer-mode \
  --with-perl=$PREFIX/perl/bin/perl \
  --with-apache2-apxs=$PREFIX/httpd/bin/apxs \
  --with-expat=/usr/local

(don't forget to use gmake for libapreq2)


-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
	http://www.liquidityservicesinc.com