X-Server: Advanced Direct Remailer Message-ID: <437B4B09.8050507@ericsson.com> Date: Wed, 16 Nov 2005 16:06:50 +0100 From: Nenad Antic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Thunderbird/1.0.6 Mnenhy/0.7 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Finally Apache with mod_perl working (was: Error compiling mod_perl with apache-1.3.33-2 and perl-5.8.7-4) References: <436B4525 DOT 8010405 AT ericsson DOT com> <436BB87F DOT 1080908 AT cygwin DOT com> In-Reply-To: <436BB87F.1080908@cygwin.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/