This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Finally Apache with mod_perl working (was: Error compiling mod_perl with apache-1.3.33-2 and perl-5.8.7-4)


Gerrit P. Haase wrote, on 11/4/2005 8:37 PM:


Please try ot run with a recent snapshot installed. http://cygwin.com/snapshots/



Gerrit

Finally I have mod_perl working.


For reference I will describe the changes I did so that some other poor soul might find help if he/she runs into the same trouble. (All of this is probably not necessary but I don't have time to isolate the crux of the problem.)

I did install a recent snapshot (right now cygwin-inst-20051114).

I downgraded to and rebuilt perl-5.8.6-4. Had to change:

*** major.version.cygwin.sh.patch.orig Wed Nov 16 14:56:31 2005
--- major.version.cygwin.sh.patch Mon Nov 14 17:25:03 2005
***************
*** 9,14 ****
--- 9,23 ----
$v_e_r_s =~ tr/./_/;
if ( $dllname =~ /libperl.*/) {
$dllname ="cygperl$v_e_r_s.dll";
+ @@ -64,6 +64,7 @@
+ $command .=" -Wl,--out-implib=$libname.dll$LIB_EXT" if $LIB_EXT;
+ $command .=" -Wl,--export-all-symbols" if $EXPORT_ALL;
+ $command .=" -Wl,--enable-auto-import -Wl,--stack,8388608"; # always
+ + $command .=" -Wl,--enable-auto-image-base"; # always
+ + # other args are passed through
+ shellexec("$command \\\n$args\n");
+
--- bleadperl/lib/ExtUtils/t/Embed.t~ 2004-11-09 16:40:19.006625000 +0100
+++ bleadperl/lib/ExtUtils/t/Embed.t 2004-11-09 16:40:30.616000000 +0100
@@ -94,7 +94,7 @@


and

*** build.sh.orig       Wed Nov 16 15:00:51 2005
--- build.sh    Mon Nov 14 17:26:01 2005
***************
*** 41,48 ****
--- 41,50 ----
               -Dmksymlinks    \
               -Duse64bitint   \
               -Dusethreads    \
+               -Uusemymalloc   \
               -Doptimize='-O3'        \
               -Dman3ext='3pm' \
+               -Dusesitecustomize \
               2>&1 | tee ${dir}/log.configure

# Implied by usethreads

(this is what I believe is the real fix since a "perl -V" showed "usemymalloc=y" with the existing build script and mod_perl does not like this, see INSTALL.apaci in the perl_mod tarball)

I rebuilt apache-1.33.3-2 using the included build script with the only difference that I installed in /usr/local/apache instead so as not to conflict with the distributed version. However I had to comment out
"ssize_t _EXFUN(getline, (char **, size_t *, FILE *));" in "/usr/include/sys/stdio.h" or apache would not build (apache has its own getline). Don't know if this a problem with the snapshot or with my installation.


I built mod_perl-1.29 following the steps in the post from Harald Joerg (http://cygwin.com/ml/cygwin/2005-08/msg00128.html).

/nenad



--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]