mod_perl issue on freebsd 7.0

ReN

Verified User
Joined
Jul 2, 2005
Messages
185
Howdy guys , any ideas about the below???


cp Base64.pm ../../../blib/lib/APR/Base64.pm
/usr/local/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap -typemap /usr/local/directadmin/custombuild/mod_perl-2.0.4/xs/typemap Base64.xs > Base64.xsc && mv Base64.xsc Base64.c
cc -c -I/usr/local/directadmin/custombuild/mod_perl-2.0.4/src/modules/perl -I/usr/local/directadmin/custombuild/mod_perl-2.0.4/xs -I/usr/include/apache -I/usr/include/apache -I/usr/local/include -I/usr/include/apache -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -DMOD_PERL -DMP_COMPAT_1X -D_REENTRANT -D_THREAD_SAFE -DAP_HAVE_DESIGNATED_INITIALIZER -O2 -fno-strict-aliasing -pipe -DVERSION=\"0.009000\" -DXS_VERSION=\"0.009000\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/mach/CORE" -DMP_HAVE_APR_LIBS Base64.c
In file included from Base64.xs:24:
/usr/local/directadmin/custombuild/mod_perl-2.0.4/xs/modperl_xs_typedefs.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
*** Error code 1

Stop in /usr/local/directadmin/custombuild/mod_perl-2.0.4/WrapXS/APR/Base64.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/mod_perl-2.0.4/WrapXS/APR.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/mod_perl-2.0.4/WrapXS.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/mod_perl-2.0.4.

*** The make has failed, do you want to try to make again? (y,n):
 
Seems like a bug in the code or something.

Did you try a ./build clean first?
 
Surely did , runs clean from the options.conf in custombuild - but i did it manually also , same error
 
Whats on line 67 in /usr/local/directadmin/custombuild/mod_perl-2.0.4/xs/modperl_xs_typedefs.h
 
typedef apr_thread_rwlock_t * APR__ThreadRWLock;
 
Seems like you don't have the correct APR headers version for that version of mod_perl.
Check the configure output for any warning.
 
See if this works:

Code:
cd /usr/local/directadmin/custombuild/mod_perl-2.04

echo "
--- lib/ModPerl/BuildMM.pm      (revision 648960)
+++ lib/ModPerl/BuildMM.pm      (working copy)
@@ -359,7 +359,7 @@

     $apr_config ||= $build->get_apr_config();

-    if ($path =~ m/(Thread|Global)Mutex/) {
+    if ($path =~ m/(Thread|Global)(Mutex|RWLock)/) {
         return unless $apr_config->{HAS_THREADS};
     }
" > patch

patch -p1 patch

cd /usr/local/directadmin/custombuild
./build mod_perl
 
Seems like you don't have the correct APR headers version for that version of mod_perl.
Check the configure output for any warning.

The only config output error is the original error i get.
 
See if this works:

Code:
cd /usr/local/directadmin/custombuild/mod_perl-2.04

echo "
--- lib/ModPerl/BuildMM.pm      (revision 648960)
+++ lib/ModPerl/BuildMM.pm      (working copy)
@@ -359,7 +359,7 @@

     $apr_config ||= $build->get_apr_config();

-    if ($path =~ m/(Thread|Global)Mutex/) {
+    if ($path =~ m/(Thread|Global)(Mutex|RWLock)/) {
         return unless $apr_config->{HAS_THREADS};
     }
" > patch

patch -p1 patch

cd /usr/local/directadmin/custombuild
./build mod_perl

Seems the patch command hangs and doesn't drop back to a prompt
 
ok , now i get this


# patch -p1 -i patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- lib/ModPerl/BuildMM.pm (revision 648960)
|+++ lib/ModPerl/BuildMM.pm (working copy)
--------------------------
File to patch:
 
Just write in the path to "BuildMM.pm". You probably won't need it if you use -p0 instead of -p1.
 
Yer thats what i though to , i went ahead and adjusted it before your post , and got this

# patch -p0 -i patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- lib/ModPerl/BuildMM.pm (revision 648960)
|+++ lib/ModPerl/BuildMM.pm (working copy)
--------------------------
Patching file lib/ModPerl/BuildMM.pm using Plan A...
Hunk #1 failed at 359.
1 out of 1 hunks failed--saving rejects to lib/ModPerl/BuildMM.pm.rej
done



which is


***************
*** 359,365 ****

||= ->get_apr_config();

- if ( =~ m/(Thread|Global)Mutex/) {
return unless ->{HAS_THREADS};
}

--- 359,365 ----

||= ->get_apr_config();

+ if ( =~ m/(Thread|Global)(Mutex|RWLock)/) {
return unless ->{HAS_THREADS};
}
 
You can probably just change the one line manually.

Should be line 359 in /usr/local/directadmin/custombuild/mod_perl-2.04/lib/ModPerl/BuildMM.pm

From:

Code:
if ($path =~ m/(Thread|Global)Mutex/) {

To:

Code:
if ($path =~ m/(Thread|Global)(Mutex|RWLock)/) {
 
ok , update to this one guys ,

once i update the options.conf to do apache 2.2 instead of 2.0 there was no longer an issue
 
Ok. Well its still a known issue with mod_perl but as long as that fixes it.
 
Back
Top