<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>I am trying to get mod_perl working with apache2 and some other blastwave perl packages, like DBD::mysql, or Cache::Memcached.<br><br>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.<br><br>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<br><br>pkg-get -i perl ap2_modperl apache2 memcached<br><br>copy over an httpd.conf<br><br>cp /etc/apache2/original/httpd.conf /etc/apache2/httpd.conf<br><br>at the end of my httpd.conf, I append<br><br>LoadModule perl_module /opt/csw/apache2/libexec/mod_perl.so<br><Perl><br>use Cache::Memcached;<br></Perl><br><br>and try to restart
apache<br><br>svcadm restart apache2<br><br>all is well for about five seconds, then I get<br><br>Segmentation Fault - core dumped<br><br>I do a truss -rall -wall -f /lib/svc/method/http-apache2<br><br>and get<br><br>19591: write(2, 0x08075CB5, 33) = 33<br>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<br><br>but I can't find what filehandle 2 corresponds to.<br><br>If I include<br><br>LoadModule perl_module /usr/apache2/libexec/mod_perl.so<br><Perl><br> use lib qw(<br> /opt/csw/share/perl/csw<br> /opt/csw/lib/perl/csw<br> );<br> use Cache::Memcached;<br></Perl><br><br>and point
to the non-blastwave mod_perl.so, and include enough libs to get to the memcached stuff, I get<br><br>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<br><br>Not sure if it helps, but<br><br>bash-3.00# ldd /opt/csw/apache2/libexec/mod_perl.so<br> libperl.so => /opt/csw/lib/i386/libperl.so<br> libsocket.so.1 => /lib/libsocket.so.1<br> libnsl.so.1 => /lib/libnsl.so.1<br> libdl.so.1 => /lib/libdl.so.1<br> libm.so.1 => /lib/libm.so.1<br> libpthread.so.1
=> /lib/libpthread.so.1<br> libc.so.1 => /lib/libc.so.1<br> libdb-4.4.so => /opt/csw/bdb44/lib/libdb-4.4.so<br> libmp.so.2 => /lib/libmp.so.2<br> libmd.so.1 => /lib/libmd.so.1<br> libscf.so.1 => /lib/libscf.so.1<br> librt.so.1 => /lib/librt.so.1<br> libuutil.so.1 => /lib/libuutil.so.1<br> libgen.so.1 => /lib/libgen.so.1<br> libm.so.2 =>
/lib/libm.so.2<br><br>bash-3.00# which perl<br>/opt/csw/bin/perl<br><br>bash-3.00# perl -v<br><br>This is perl, v5.8.8 built for i86pc-solaris-thread-multi<br><br>I also included the contents of /opt/csw/apache2/etc/extra/httpd-perl.conf to no avail.<br><br>Any help would be much appreciated.<br><br>Thanks,<br>Earl<br></div></div><br>
<hr size=1>Sick sense of humor? Visit Yahoo! TV's
<a href="http://us.rd.yahoo.com/evt=47093/*http://tv.yahoo.com/collections/222">Comedy with an Edge </a>to see what's on, when.
</body></html>