[csw-users] mod_perl troubles

Earl Cahill cahille at yahoo.com
Wed Jul 25 09:32:26 CEST 2007


I am trying to get mod_perl working with apache2 and some other blastwave perl packages, like DBD::mysql, or Cache::Memcached.

I know it sounds dumb, but I have been working on this for like a week and would really like some help.  These are some pretty decent steps to duplicate.

I am on nevada build 68.  I install a big zone, nothing shared.  I install blastwave on my big zone.  I then do something like

pkg-get -i perl ap2_modperl apache2 memcached

copy over an httpd.conf

cp /etc/apache2/original/httpd.conf /etc/apache2/httpd.conf

at the end of my httpd.conf, I append

LoadModule perl_module /opt/csw/apache2/libexec/mod_perl.so
<Perl>
use Cache::Memcached;
</Perl>

and try to restart apache

svcadm restart apache2

all is well for about five seconds, then I get

Segmentation Fault - core dumped

I do a truss -rall -wall -f /lib/svc/method/http-apache2

and get

19591:  write(2, 0x08075CB5, 33)                        = 33
19591:     S e g m e n t a t i o n   F a u l t   -   c o r e   d u m p e d

but I can't find what filehandle 2 corresponds to.

If I include

LoadModule perl_module /usr/apache2/libexec/mod_perl.so
<Perl>
    use lib qw(
        /opt/csw/share/perl/csw
        /opt/csw/lib/perl/csw
    );
    use Cache::Memcached;
</Perl>

and point to the non-blastwave mod_perl.so, and include enough libs to get to the memcached stuff, I get

ld.so.1: httpd: fatal: relocation error: file /opt/csw/lib/perl/csw/auto/String/CRC32/CRC32.so: symbol Perl_Gthr_key_ptr: referenced symbol not found

Not sure if it helps, but

bash-3.00# ldd /opt/csw/apache2/libexec/mod_perl.so
        libperl.so =>    /opt/csw/lib/i386/libperl.so
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libm.so.1 =>     /lib/libm.so.1
        libpthread.so.1 =>       /lib/libpthread.so.1
        libc.so.1 =>     /lib/libc.so.1
        libdb-4.4.so =>  /opt/csw/bdb44/lib/libdb-4.4.so
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        librt.so.1 =>    /lib/librt.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libm.so.2 =>     /lib/libm.so.2

bash-3.00# which perl
/opt/csw/bin/perl

bash-3.00# perl -v

This is perl, v5.8.8 built for i86pc-solaris-thread-multi

I also included the contents of /opt/csw/apache2/etc/extra/httpd-perl.conf to no avail.

Any help would be much appreciated.

Thanks,
Earl




       
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/users/attachments/20070725/ce5254ba/attachment-0001.html>


More information about the users mailing list