You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tim Evans <tk...@tkevans.com> on 2004/11/15 13:47:42 UTC

Re: Bug Report: seg fault with 1.2

>So what are the differences? I suppose you want to compare
>1) the options passed to ./configure
>2) linker and compilation options (since mod_perl inserts the options 
>suggested by Perl (see perl -V) when compiling the rest of the Apache 
>modules and the Apache core.

For PHP:

./configure  --with-apxs=/usr/local/apache/bin/apxs --with-png-dir=/usr --with-gd --with-jpeg-dir=/usr --with-openssl --with-png --with-ftp --with-zlib --ena ble-sockets --with-mysql --with-xml

For apache (auto-generated via mod_perl Makefile):

CC="gcc" \
CFLAGS=" -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g -DPERL_DESTRUCT_LEVEL=2" \
>LDFLAGS_SHLIB_EXPORT="-Wl,-E" \
./configure \
"--with-layout=Apache" \
"--activate-module=src/modules/perl/libperl.a" \
"--disable-rule=EXPAT" \
"--enable-shared=perl" \

>Also, take a look at:
>http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_php
>to see if it makes any difference.

Later today.

-- 
Tim Evans, TKEvans.com, Inc.	|    5 Chestnut Court
tkevans@tkevans.com		|    Owings Mills, MD 21117
http://www.tkevans.com/		|    443-394-3864
http://www.come-here.com/News/	|    

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Bug Report: seg fault with 1.2

Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> Tim Evans wrote:
> 
>>> So what are the differences? I suppose you want to compare
>>> 1) the options passed to ./configure
>>> 2) linker and compilation options (since mod_perl inserts the options 
>>> suggested by Perl (see perl -V) when compiling the rest of the Apache 
>>> modules and the Apache core.
>>
>>
>>
>> For PHP:
>>
>> ./configure  --with-apxs=/usr/local/apache/bin/apxs 
>> --with-png-dir=/usr --with-gd --with-jpeg-dir=/usr --with-openssl 
>> --with-png --with-ftp --with-zlib --ena ble-sockets --with-mysql 
>> --with-xml
>>
>> For apache (auto-generated via mod_perl Makefile):
>>
>> CC="gcc" \
>> CFLAGS=" -fno-strict-aliasing -pipe -I/usr/local/include 
>> -D_LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g 
>> -DPERL_DESTRUCT_LEVEL=2" \
>>
>>> LDFLAGS_SHLIB_EXPORT="-Wl,-E" \
>>
>>
>> ./configure \
>> "--with-layout=Apache" \
>> "--activate-module=src/modules/perl/libperl.a" \
>> "--disable-rule=EXPAT" \
>> "--enable-shared=perl" \
> 
> 
> Great! The two candidates I'd suggest are:
> 
> 1) --disable-rule=EXPAT
> 
> 2) -D_LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64
> 
> It's either LFS or XML parser problem. Since your problem happens with 
> XML, I think it's the first one. Try removing --disable-rule=EXPAT in 
> Makefile.PL and see if it helps.

And/or try adding the other flags to the modperl build:

--with-png-dir=/usr --with-gd --with-jpeg-dir=/usr --with-openssl 
--with-png --with-ftp --with-zlib --ena ble-sockets --with-mysql --with-xml
via:
http://perl.apache.org/docs/1.0/guide/install.html#APACI_ARGS

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Bug Report: seg fault with 1.2

Posted by Stas Bekman <st...@stason.org>.
Tim Evans wrote:
>>So what are the differences? I suppose you want to compare
>>1) the options passed to ./configure
>>2) linker and compilation options (since mod_perl inserts the options 
>>suggested by Perl (see perl -V) when compiling the rest of the Apache 
>>modules and the Apache core.
> 
> 
> For PHP:
> 
> ./configure  --with-apxs=/usr/local/apache/bin/apxs --with-png-dir=/usr --with-gd --with-jpeg-dir=/usr --with-openssl --with-png --with-ftp --with-zlib --ena ble-sockets --with-mysql --with-xml
> 
> For apache (auto-generated via mod_perl Makefile):
> 
> CC="gcc" \
> CFLAGS=" -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g -DPERL_DESTRUCT_LEVEL=2" \
> 
>>LDFLAGS_SHLIB_EXPORT="-Wl,-E" \
> 
> ./configure \
> "--with-layout=Apache" \
> "--activate-module=src/modules/perl/libperl.a" \
> "--disable-rule=EXPAT" \
> "--enable-shared=perl" \

Great! The two candidates I'd suggest are:

1) --disable-rule=EXPAT

2) -D_LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64

It's either LFS or XML parser problem. Since your problem happens with 
XML, I think it's the first one. Try removing --disable-rule=EXPAT in 
Makefile.PL and see if it helps.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html