[mp2] OS X snow leopard compile issue

[mp2] OS X snow leopard compile issue

am 23.11.2009 23:45:04 von rpolonski

--Apple-Mail-116--611253539
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii

Hello,

I tried to compile mod_perl 2.0.4 on mac os x 10.6.2

httpd 2.2.14
../configure --prefix=3D/tmp/q
make ; make install

mod_perl 2.0.4 and latest from SVN
perl Makefile.PL MP_APXS=3D/tmp/q/bin/apxs PREFIX=3D/tmp/q2
system perl: perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=3Ddarwin, osvers=3D10.0, archname=3Ddarwin-thread-multi-2level
uname=3D'darwin b66.apple.com 10.0 darwin kernel version 10.0.0d8: =
tue may 5 19:29:59 pdt 2009; root:xnu-1437.2~2release_i386 i386 '
config_args=3D'-ds -e -Dprefix=3D/usr -Dccflags=3D-g -pipe =
-Dldflags=3D -Dman3ext=3D3pm -Duseithreads -Duseshrplib =
-Dinc_version_list=3Dnone -Dcc=3Dgcc-4.2'
hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
useithreads=3Ddefine, usemultiplicity=3Ddefine
useperlio=3Ddefine, d_sfio=3Dundef, uselargefiles=3Ddefine, =
usesocks=3Dundef
use64bitint=3Ddefine, use64bitall=3Ddefine, uselongdouble=3Dundef
usemymalloc=3Dn, bincompat5005=3Dundef


Characteristics of this binary (from libperl):=20
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP =
USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Locally applied patches:
/Library/Perl/Updates/ comes before system perl =
directories
installprivlib and installarchlib points to the Updates =
directory
Built under darwin
Compiled at Jul 9 2009 15:07:54
@INC:
/Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
/Library/Perl/Updates/5.10.0
/System/Library/Perl/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/5.10.0
/Library/Perl/5.10.0/darwin-thread-multi-2level
/Library/Perl/5.10.0
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level
/Network/Library/Perl/5.10.0
/Network/Library/Perl
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2leve l
/System/Library/Perl/Extras/5.10.0
.


after make and make install I got .so file.

When I try to start apache now I get an error:
../apachectl start
httpd: Syntax error on line 53 of /tmp/q/conf/httpd.conf: Cannot load =
/tmp/q/modules/mod_perl.so into server: =
dlopen(/tmp/q/modules/mod_perl.so, 10): Symbol not found: =
_ap_add_input_filter\n Referenced from: /tmp/q/modules/mod_perl.so\n =
Expected in: flat namespace\n in /tmp/q/modules/mod_perl.so

I decided to perform static installation but was not successful too:
I tried to build via:
perl Makefile.PL MP_USE_STATIC=3D1 MP_AP_PREFIX=3D/tmp/httpd-2.2.14 =
MP_AP_CONFIGURE=3D"--with-mpm=3Dprefork" PREFIX=3D/tmp/q3

....
mod_perl.c:768: error: storage class specified for parameter =
'modperl_destruct_level'
mod_perl.c:768: error: parameter 'modperl_destruct_level' is initialized
mod_perl.c:771: error: expected '=3D', ',', ';', 'asm' or =
'__attribute__' before '{' token
mod_perl.c:778: error: expected ';', ',' or ')' before '*' token
mod_perl.c:788: error: expected '=3D', ',', ';', 'asm' or =
'__attribute__' before '{' token
mod_perl.c:823: error: expected ')' before '*' token
mod_perl.c:833: error: expected ')' before '*' token
mod_perl.c:904: error: expected '=3D', ',', ';', 'asm' or =
'__attribute__' before 'modperl_cmds'
mod_perl.c:961: error: expected declaration specifiers before ';' token
mod_perl.c:963: error: expected ')' before '*' token
mod_perl.c:986: error: expected ')' before '*' token
mod_perl.c:994: error: expected ')' before '*' token
mod_perl.c:1016: error: expected ')' before '*' token
mod_perl.c:1057: error: expected ')' before '*' token
mod_perl.c:1140: error: expected '=3D', ',', ';', 'asm' or =
'__attribute__' before '{' token
mod_perl.c:1145: error: expected declaration specifiers before 'module'
mod_perl.c:1153: error: expected declaration specifiers before ';' token
mod_perl.c:1153: error: old-style parameter declarations in prototyped =
function definition
/tmp/httpd-2.2.14/srclib/apr/include/apr_errno.h:52: error: parameter =
name omitted
mod_perl.c:1153: error: expected '{' at end of input
make[1]: *** [mod_perl.o] Error 1
make: *** [modperl_lib] Error 2


any ideas how to make step further?
--


--Apple-Mail-116--611253539
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii

-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
">Hello,


I tried to compile mod_perl  class=3D"Apple-style-span" style=3D"font-family: helvetica, arial, =
verdana, sans-serif; ">2.0.4 on mac os x 10.6.2
class=3D"Apple-style-span" face=3D"helvetica, arial, verdana, =
sans-serif">
face=3D"helvetica, arial, verdana, =
sans-serif">httpd 2.2.14
class=3D"Apple-style-span" face=3D"helvetica, arial, verdana, =
sans-serif">./configure --prefix=3D/tmp/q
class=3D"Apple-style-span" face=3D"helvetica, arial, verdana, =
sans-serif">make ; make install
class=3D"Apple-style-span" face=3D"helvetica, arial, verdana, =
sans-serif">
face=3D"helvetica, arial, verdana, sans-serif">mod_perl 2.0.4 and latest =
from SVN
face=3D"helvetica, arial, verdana, sans-serif">perl href=3D"http://Makefile.PL">Makefile.PL MP_APXS=3D/tmp/q/bin/apxs =
PREFIX=3D/tmp/q2
face=3D"helvetica, arial, verdana, sans-serif">system perl: perl =
-V
arial, verdana, sans-serif">
Summary of my perl5 (revision 5 version =
10 subversion 0) =
configuration:
  Platform:
   =
 osname=3Ddarwin, osvers=3D10.0, =
archname=3Ddarwin-thread-multi-2level
   =
 uname=3D'darwin =
10.0 darwin kernel version 10.0.0d8: tue may 5 19:29:59 pdt 2009; =
root:xnu-1437.2~2release_i386 i386 '
   =
 config_args=3D'-ds -e -Dprefix=3D/usr -Dccflags=3D-g  -pipe =
 -Dldflags=3D -Dman3ext=3D3pm -Duseithreads -Duseshrplib =
-Dinc_version_list=3Dnone -Dcc=3Dgcc-4.2'
   =
 hint=3Drecommended, useposix=3Dtrue, =
d_sigaction=3Ddefine
    useithreads=3Ddefine, =
usemultiplicity=3Ddefine
    useperlio=3Ddefine, =
d_sfio=3Dundef, uselargefiles=3Ddefine, =
usesocks=3Dundef
    use64bitint=3Ddefine, =
use64bitall=3Ddefine, uselongdouble=3Dundef
   =
 usemymalloc=3Dn, =
bincompat5005=3Dundef


Charact=
eristics of this binary (from =
libperl): 
  Compile-time options: MULTIPLICITY =
PERL_DONT_CREATE_GVSV
           =
             PERL_IMPLICIT_CONTEXT =
PERL_MALLOC_WRAP USE_64_BIT_ALL
       =
                =
 USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
   =
                    =
 USE_PERLIO USE_REENTRANT_API
  Locally applied =
patches:
style=3D"white-space:pre"> =
/Library/Perl/Updates/<version> comes before system perl =
directories
style=3D"white-space:pre"> installprivlib and installarchlib =
points to the Updates directory
  Built under =
darwin
  Compiled at Jul  9 2009 =
15:07:54
  @INC:
   =
 /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
&n=
bsp;   /Library/Perl/Updates/5.10.0
   =
 /System/Library/Perl/5.10.0/darwin-thread-multi-2level
&nb=
sp;   /System/Library/Perl/5.10.0
   =
 /Library/Perl/5.10.0/darwin-thread-multi-2level
 &nbs=
p;  /Library/Perl/5.10.0
   =
 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level
&n=
bsp;   /Network/Library/Perl/5.10.0
   =
 /Network/Library/Perl
   =
  /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2leve l
<=
div>   =
 /System/Library/Perl/Extras/5.10.0
   =
 .


after make and =
make install I got .so file.

When I try to =
start apache now I get an error:
./apachectl =
 start
httpd: Syntax error on line 53 of =
/tmp/q/conf/httpd.conf: Cannot load /tmp/q/modules/mod_perl.so into =
server: dlopen(/tmp/q/modules/mod_perl.so, 10): Symbol not found: =
_ap_add_input_filter\n  Referenced from: =
/tmp/q/modules/mod_perl.so\n  Expected in: flat namespace\n in =
/tmp/q/modules/mod_perl.so

I decided to perform =
static installation but was not successful too:
I tried to =
build via:
perl =
MP_USE_STATIC=3D1 MP_AP_PREFIX=3D/tmp/httpd-2.2.14 =
MP_AP_CONFIGURE=3D"--with-mpm=3Dprefork" =
PREFIX=3D/tmp/q3

...
mod_perl.c:76=
8: error: storage class specified for parameter =
'modperl_destruct_level'
mod_perl.c:768: error: parameter =
'modperl_destruct_level' is initialized
mod_perl.c:771: error: =
expected '=3D', ',', ';', 'asm' or '__attribute__' before '{' =
token
mod_perl.c:778: error: expected ';', ',' or ')' before =
'*' token
mod_perl.c:788: error: expected '=3D', ',', ';', =
'asm' or '__attribute__' before '{' token
mod_perl.c:823: =
error: expected ')' before '*' token
mod_perl.c:833: error: =
expected ')' before '*' token
mod_perl.c:904: error: expected =
'=3D', ',', ';', 'asm' or '__attribute__' before =
'modperl_cmds'
mod_perl.c:961: error: expected declaration =
specifiers before ';' token
mod_perl.c:963: error: expected =
')' before '*' token
mod_perl.c:986: error: expected ')' =
before '*' token
mod_perl.c:994: error: expected ')' before =
'*' token
mod_perl.c:1016: error: expected ')' before '*' =
token
mod_perl.c:1057: error: expected ')' before '*' =
token
mod_perl.c:1140: error: expected '=3D', ',', ';', 'asm' =
or '__attribute__' before '{' token
mod_perl.c:1145: error: =
expected declaration specifiers before =
'module'
mod_perl.c:1153: error: expected declaration =
specifiers before ';' token
mod_perl.c:1153: error: old-style =
parameter declarations in prototyped function =
definition
/tmp/httpd-2.2.14/srclib/apr/include/apr_errno.h:52: =
error: parameter name omitted
mod_perl.c:1153: error: expected =
'{' at end of input
make[1]: *** [mod_perl.o] Error =
1
make: *** [modperl_lib] Error =
2


any ideas how to make step =
further?
--

=
=

--Apple-Mail-116--611253539--