[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/
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
">Hello,
verdana, sans-serif; ">2.0.4 on mac os x 10.6.2
sans-serif">
sans-serif">httpd 2.2.14
sans-serif">./configure --prefix=3D/tmp/q
sans-serif">make ; make install
sans-serif">
from SVN
PREFIX=3D/tmp/q2
-V
10 subversion 0) =
configuration:
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
usemultiplicity=3Ddefine
d_sfio=3Dundef, uselargefiles=3Ddefine, =
usesocks=3Dundef
use64bitall=3Ddefine, uselongdouble=3Dundef
usemymalloc=3Dn, =
bincompat5005=3Dundef
eristics of this binary (from =
libperl):
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
patches:
/Library/Perl/Updates/<version> comes before system perl =
directories
points to the Updates directory
darwin
15:07:54
/Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
bsp; /Library/Perl/Updates/5.10.0
/System/Library/Perl/5.10.0/darwin-thread-multi-2level
sp; /System/Library/Perl/5.10.0
/Library/Perl/5.10.0/darwin-thread-multi-2level
p; /Library/Perl/5.10.0
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level
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
.
make install I got .so file.
start apache now I get an error:
start
/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
static installation but was not successful too:
build via:
MP_USE_STATIC=3D1 MP_AP_PREFIX=3D/tmp/httpd-2.2.14 =
MP_AP_CONFIGURE=3D"--with-mpm=3Dprefork" =
PREFIX=3D/tmp/q3
8: error: storage class specified for parameter =
'modperl_destruct_level'
'modperl_destruct_level' is initialized
expected '=3D', ',', ';', 'asm' or '__attribute__' before '{' =
token
'*' token
'asm' or '__attribute__' before '{' token
error: expected ')' before '*' token
expected ')' before '*' token
'=3D', ',', ';', 'asm' or '__attribute__' before =
'modperl_cmds'
specifiers before ';' token
')' before '*' token
before '*' token
'*' token
token
token
or '__attribute__' before '{' token
expected declaration specifiers before =
'module'
specifiers before ';' token
parameter declarations in prototyped function =
definition
error: parameter name omitted
'{' at end of input
1
2
further?
=
--Apple-Mail-116--611253539--