Mail Archives: cygwin/2003/05/23/00:20:30
------=_NextPart_000_000C_01C320A7.C2C60350
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Attached you will find patches that allow a mod_perl DSO *and* libapreq to
be installed.
The rules are:
if perl was compiled with largefile support (std for cygwin) you need to set
the following env vars
export CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64";
export CFLAGS_SHLIB="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64";
then build and install apache as normal
for mod perl apply the attached mod_perl.patch then configure as follows
perl Makefile.PL USE_APXS=1 EVERYTHING=1
for libapreq, apply the attached libapreq.patch and build as normal.
YMMV - I use my own local compiled perl....
Drop me e-mail with any questions.
-- Chris
------=_NextPart_000_000C_01C320A7.C2C60350
Content-Type: application/octet-stream;
name="mod_perl-1.27.cygwin.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="mod_perl-1.27.cygwin.patch"
diff -u ../mod_perl-1.27-/apaci/Makefile.tmpl apaci/Makefile.tmpl=0A=
--- ../mod_perl-1.27-/apaci/Makefile.tmpl 2001-02-14 14:57:08.000000000 =
-0800=0A=
+++ apaci/Makefile.tmpl 2003-05-22 19:48:34.000000000 -0700=0A=
@@ -37,7 +37,7 @@=0A=
##=0A=
=0A=
# the library to build=0A=
-MP_LIB=3Dlibperl.$(LIBEXT)=0A=
+MP_LIB=3Dlibmodperl.$(LIBEXT)=0A=
=0A=
# the objects to use=0A=
MP_OBJS=3D\=0A=
@@ -51,14 +51,18 @@=0A=
=0A=
lib: $(MP_LIB)=0A=
=0A=
-libperl.a: $(MP_OBJS)=0A=
+libmodperl.a: $(MP_OBJS)=0A=
$(MP_RM) $@=0A=
$(MP_AR) crv $@ $(MP_OBJS)=0A=
$(MP_RANLIB) $@=0A=
=0A=
-libperl.so: $(MP_OBJS_PIC)=0A=
+$(MP_LIB): $(MP_OBJS_PIC)=0A=
$(MP_RM) $@=0A=
- $(MP_LD) $(MP_LDFLAGS_SHLIB) -o $@ $(MP_OBJS_PIC) $(MP_LIBS)=0A=
+ if test `perl -e 'print $$^O'` =3D "cygwin"; then \=0A=
+ $(MP_LD) $(MP_LDFLAGS_SHLIB) -o $@ $(MP_OBJS_PIC) $(MP_LIBS) =
-L$(APACHELIBEXEC) -lhttpd; \=0A=
+ else \=0A=
+ $(MP_LD) $(MP_LDFLAGS_SHLIB) -o $@ $(MP_OBJS_PIC) $(MP_LIBS); \=0A=
+ fi=0A=
=0A=
.SUFFIXES: .xs .c .o .lo=0A=
=0A=
@@ -94,7 +98,7 @@=0A=
=0A=
# FOR STAND-ALONE BUILDING ONLY=0A=
install:=0A=
- $(APXS) -i -a -n perl libperl.so=0A=
+ $(APXS) -i -a -n perl libmodperl.$(LIBEXT)=0A=
=0A=
depend:=0A=
cp Makefile.tmpl Makefile.tmpl.bak \=0A=
diff -u ../mod_perl-1.27-/apaci/configure apaci/configure=0A=
--- ../mod_perl-1.27-/apaci/configure 2001-02-14 14:57:08.000000000 -0800=0A=
+++ apaci/configure 2003-05-22 19:44:50.000000000 -0700=0A=
@@ -94,7 +94,11 @@=0A=
echo "AP_CFLAGS=3D-DMOD_PERL $my_apxs_cflags" >>$my_makefileconf=0A=
echo "INCLUDES=3D$my_apxs_includes" >>$my_makefileconf=0A=
echo "RANLIB=3Dranlib" >>$my_makefileconf=0A=
-echo "LIBEXT=3Dso" >>$my_makefileconf=0A=
+if test `perl -e 'print $^O'` =3D "cygwin" ; then=0A=
+ echo "LIBEXT=3Ddll" >>$my_makefileconf=0A=
+else=0A=
+ echo "LIBEXT=3Dso" >>$my_makefileconf=0A=
+fi=0A=
echo "APACHEEXT=3D$my_apxs_sourcedir/src" >>$my_makefileconf=0A=
echo "APACHELIBEXEC=3D$my_apxs_libexec" >>$my_makefileconf=0A=
echo "BASEEXT=3Dmod_perl" >>$my_makefileconf=0A=
------=_NextPart_000_000C_01C320A7.C2C60350
Content-Type: application/octet-stream;
name="libapreq-1.1.cygwin.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="libapreq-1.1.cygwin.patch"
diff -r -u ../perl-libapreq-1.1-1-/Cookie/Makefile.PL =
./Cookie/Makefile.PL=0A=
--- ../perl-libapreq-1.1-1-/Cookie/Makefile.PL 2001-04-03 =
12:24:08.000000000 -0700=0A=
+++ ./Cookie/Makefile.PL 2003-05-22 19:22:57.000000000 -0700=0A=
@@ -5,6 +5,7 @@=0A=
use Apache::libapreq qw(xsubpp);=0A=
=0A=
my $Is_Win32 =3D ($^O eq "MSWin32") || $ENV{WIN32_TEST}; =0A=
+=0A=
my @mm_args =3D (=0A=
'NAME' =3D> 'Apache::Cookie',=0A=
'VERSION_FROM' =3D> 'Cookie.pm',=0A=
@@ -21,13 +22,18 @@=0A=
my $root =3D "../blib/arch/auto/libapreq";=0A=
mkpath $root, 1, 0755 unless -d $root;=0A=
=0A=
+ my $libs =3D "-L$root -lapreq";=0A=
+ if (defined($ENV{APLIBDIR})) {=0A=
+ $libs =3D "-L$root -L$ENV{APLIBDIR} -lmodperl -lapreq -lhttpd";=0A=
+ }=0A=
+=0A=
#grr, must trick ExtUtils::Liblist=0A=
system "touch $root/libapreq.a";=0A=
WriteMakefile(=0A=
@mm_args,=0A=
'INC' =3D> "-I../c ". $src->inc,=0A=
'TYPEMAPS' =3D> $src->typemaps,=0A=
- 'LIBS' =3D> "-L$root -lapreq",=0A=
+ 'LIBS' =3D> $libs,=0A=
'dynamic_lib' =3D> {=0A=
'OTHERLDFLAGS' =3D> $src->otherldflags,=0A=
},=0A=
diff -r -u ../perl-libapreq-1.1-1-/Request/Makefile.PL =
./Request/Makefile.PL=0A=
--- ../perl-libapreq-1.1-1-/Request/Makefile.PL 2001-04-03 =
12:24:09.000000000 -0700=0A=
+++ ./Request/Makefile.PL 2003-05-22 19:22:17.000000000 -0700=0A=
@@ -5,6 +5,7 @@=0A=
use Apache::libapreq qw(xsubpp);=0A=
=0A=
my $Is_Win32 =3D ($^O eq "MSWin32") || $ENV{WIN32_TEST}; =0A=
+=0A=
my @mm_args =3D (=0A=
'NAME' =3D> 'Apache::Request',=0A=
'VERSION_FROM' =3D> 'Request.pm',=0A=
@@ -21,13 +22,18 @@=0A=
my $root =3D "../blib/arch/auto/libapreq";=0A=
mkpath $root, 1, 0755 unless -d $root;=0A=
=0A=
+ my $libs =3D "-L$root -lapreq";=0A=
+ if (defined($ENV{APLIBDIR})) {=0A=
+ $libs =3D "-L$root -L$ENV{APLIBDIR} -lmodperl -lapreq -lhttpd";=0A=
+ }=0A=
+=0A=
#grr, must trick ExtUtils::Liblist=0A=
system "touch $root/libapreq.a";=0A=
WriteMakefile(=0A=
@mm_args,=0A=
'INC' =3D> "-I../c ". $src->inc,=0A=
'TYPEMAPS' =3D> $src->typemaps,=0A=
- 'LIBS' =3D> "-L$root -lapreq",=0A=
+ 'LIBS' =3D> $libs,=0A=
'dynamic_lib' =3D> {=0A=
'OTHERLDFLAGS' =3D> $src->otherldflags,=0A=
},=0A=
------=_NextPart_000_000C_01C320A7.C2C60350
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
------=_NextPart_000_000C_01C320A7.C2C60350--
- Raw text -