Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

www.webdp.net, Event 9 IIS log failed to write entry, wwwxxx jeffs, Catastrophic failure Unexpected method call sequence. 0x8000ffff (-2147418113)., ksh lock a file, [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed, sed: -e expression #1, char 1: unterminated address regex, procmail + change subject, w2ksp4.exe download, /proc/kallsyms format

Links

XODOX
Impressum

#1: [mp2] OS X snow leopard compile issue

Posted on 2009-11-23 23:45:04 by 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/<version> 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

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
">Hello,<div><br></div><div>I tried to compile mod_perl&nbsp;<span =
class=3D"Apple-style-span" style=3D"font-family: helvetica, arial, =
verdana, sans-serif; ">2.0.4 on mac os x 10.6.2</span></div><div><font =
class=3D"Apple-style-span" face=3D"helvetica, arial, verdana, =
sans-serif"><br></font></div><div><font class=3D"Apple-style-span" =
face=3D"helvetica, arial, verdana, =
sans-serif">httpd&nbsp;2.2.14</font></div><div><font =
class=3D"Apple-style-span" face=3D"helvetica, arial, verdana, =
sans-serif">./configure --prefix=3D/tmp/q</font></div><div><font =
class=3D"Apple-style-span" face=3D"helvetica, arial, verdana, =
sans-serif">make ; make install</font></div><div><font =
class=3D"Apple-style-span" face=3D"helvetica, arial, verdana, =
sans-serif"><br></font></div><div><font class=3D"Apple-style-span" =
face=3D"helvetica, arial, verdana, sans-serif">mod_perl 2.0.4 and latest =
from SVN</font></div><div><font class=3D"Apple-style-span" =
face=3D"helvetica, arial, verdana, sans-serif">perl <a =
href=3D"http://Makefile.PL">Makefile.PL</a> MP_APXS=3D/tmp/q/bin/apxs =
PREFIX=3D/tmp/q2</font></div><div><font class=3D"Apple-style-span" =
face=3D"helvetica, arial, verdana, sans-serif">system perl: perl =
-V</font></div><div><font class=3D"Apple-style-span" face=3D"helvetica, =
arial, verdana, sans-serif"><div>Summary of my perl5 (revision 5 version =
10 subversion 0) =
configuration:</div><div>&nbsp;&nbsp;Platform:</div><div>&nbsp;&nbsp; =
&nbsp;osname=3Ddarwin, osvers=3D10.0, =
archname=3Ddarwin-thread-multi-2level</div><div>&nbsp;&nbsp; =
&nbsp;uname=3D'darwin <a href=3D"http://b66.apple.com">b66.apple.com</a> =
10.0 darwin kernel version 10.0.0d8: tue may 5 19:29:59 pdt 2009; =
root:xnu-1437.2~2release_i386 i386 '</div><div>&nbsp;&nbsp; =
&nbsp;config_args=3D'-ds -e -Dprefix=3D/usr -Dccflags=3D-g &nbsp;-pipe =
&nbsp;-Dldflags=3D -Dman3ext=3D3pm -Duseithreads -Duseshrplib =
-Dinc_version_list=3Dnone -Dcc=3Dgcc-4.2'</div><div>&nbsp;&nbsp; =
&nbsp;hint=3Drecommended, useposix=3Dtrue, =
d_sigaction=3Ddefine</div><div>&nbsp;&nbsp; &nbsp;useithreads=3Ddefine, =
usemultiplicity=3Ddefine</div><div>&nbsp;&nbsp; &nbsp;useperlio=3Ddefine, =
d_sfio=3Dundef, uselargefiles=3Ddefine, =
usesocks=3Dundef</div><div>&nbsp;&nbsp; &nbsp;use64bitint=3Ddefine, =
use64bitall=3Ddefine, uselongdouble=3Dundef</div><div>&nbsp;&nbsp; =
&nbsp;usemymalloc=3Dn, =
bincompat5005=3Dundef</div><div><br></div><div><br></div><div><div>Charact=
eristics of this binary (from =
libperl):&nbsp;</div><div>&nbsp;&nbsp;Compile-time options: MULTIPLICITY =
PERL_DONT_CREATE_GVSV</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PERL_IMPLICIT_CONTEXT =
PERL_MALLOC_WRAP USE_64_BIT_ALL</div><div>&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES</div><div>&nbsp;&nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;USE_PERLIO USE_REENTRANT_API</div><div>&nbsp;&nbsp;Locally applied =
patches:</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> =
</span>/Library/Perl/Updates/&lt;version&gt; comes before system perl =
directories</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>installprivlib and installarchlib =
points to the Updates directory</div><div>&nbsp;&nbsp;Built under =
darwin</div><div>&nbsp;&nbsp;Compiled at Jul &nbsp;9 2009 =
15:07:54</div><div>&nbsp;&nbsp;@INC:</div><div>&nbsp;&nbsp; =
&nbsp;/Library/Perl/Updates/5.10.0/darwin-thread-multi-2level</div><div>&n=
bsp;&nbsp; &nbsp;/Library/Perl/Updates/5.10.0</div><div>&nbsp;&nbsp; =
&nbsp;/System/Library/Perl/5.10.0/darwin-thread-multi-2level</div><div>&nb=
sp;&nbsp; &nbsp;/System/Library/Perl/5.10.0</div><div>&nbsp;&nbsp; =
&nbsp;/Library/Perl/5.10.0/darwin-thread-multi-2level</div><div>&nbsp;&nbs=
p; &nbsp;/Library/Perl/5.10.0</div><div>&nbsp;&nbsp; =
&nbsp;/Network/Library/Perl/5.10.0/darwin-thread-multi-2level</div><div>&n=
bsp;&nbsp; &nbsp;/Network/Library/Perl/5.10.0</div><div>&nbsp;&nbsp; =
&nbsp;/Network/Library/Perl</div><div>&nbsp;&nbsp; =
&nbsp; /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2leve l</div><=
div>&nbsp;&nbsp; =
&nbsp;/System/Library/Perl/Extras/5.10.0</div><div>&nbsp;&nbsp; =
&nbsp;.</div><div><br></div></div><div><br></div><div>after make and =
make install I got .so file.</div><div><br></div><div>When I try to =
start apache now I get an error:</div><div><div>./apachectl =
&nbsp;start</div><div>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 &nbsp;Referenced from: =
/tmp/q/modules/mod_perl.so\n &nbsp;Expected in: flat namespace\n in =
/tmp/q/modules/mod_perl.so</div><div><br></div><div>I decided to perform =
static installation but was not successful too:</div><div>I tried to =
build via:</div><div>perl <a href=3D"http://Makefile.PL">Makefile.PL</a> =
MP_USE_STATIC=3D1 MP_AP_PREFIX=3D/tmp/httpd-2.2.14 =
MP_AP_CONFIGURE=3D"--with-mpm=3Dprefork" =
PREFIX=3D/tmp/q3</div><div><br></div><div>...</div><div><div>mod_perl.c:76=
8: error: storage class specified for parameter =
'modperl_destruct_level'</div><div>mod_perl.c:768: error: parameter =
'modperl_destruct_level' is initialized</div><div>mod_perl.c:771: error: =
expected '=3D', ',', ';', 'asm' or '__attribute__' before '{' =
token</div><div>mod_perl.c:778: error: expected ';', ',' or ')' before =
'*' token</div><div>mod_perl.c:788: error: expected '=3D', ',', ';', =
'asm' or '__attribute__' before '{' token</div><div>mod_perl.c:823: =
error: expected ')' before '*' token</div><div>mod_perl.c:833: error: =
expected ')' before '*' token</div><div>mod_perl.c:904: error: expected =
'=3D', ',', ';', 'asm' or '__attribute__' before =
'modperl_cmds'</div><div>mod_perl.c:961: error: expected declaration =
specifiers before ';' token</div><div>mod_perl.c:963: error: expected =
')' before '*' token</div><div>mod_perl.c:986: error: expected ')' =
before '*' token</div><div>mod_perl.c:994: error: expected ')' before =
'*' token</div><div>mod_perl.c:1016: error: expected ')' before '*' =
token</div><div>mod_perl.c:1057: error: expected ')' before '*' =
token</div><div>mod_perl.c:1140: error: expected '=3D', ',', ';', 'asm' =
or '__attribute__' before '{' token</div><div>mod_perl.c:1145: error: =
expected declaration specifiers before =
'module'</div><div>mod_perl.c:1153: error: expected declaration =
specifiers before ';' token</div><div>mod_perl.c:1153: error: old-style =
parameter declarations in prototyped function =
definition</div><div>/tmp/httpd-2.2.14/srclib/apr/include/apr_errno.h:52: =
error: parameter name omitted</div><div>mod_perl.c:1153: error: expected =
'{' at end of input</div><div>make[1]: *** [mod_perl.o] Error =
1</div><div>make: *** [modperl_lib] Error =
2</div><div><br></div><div><br></div><div>any ideas how to make step =
further?</div><div>--</div></div></div><div><br></div></font></div></body>=
</html>=

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

Report this message