You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Philip M. Gollucci" <ph...@p6m7g8.com> on 2002/01/19 01:44:14 UTC

Solaris + Apache + mod_perl = TROUBLE

I have system (Solaris 2.6) which I do NOT have root on... (now I know why that
doesn't happen often)

At anyrate, I need to install perl5.6.1  ... I'll pay anyone able to do without
using a binary release (on this particular solaris system (yes its that bad),
Apache Apache-1.3.22 from source, and mod_perl1.26


So I get the binary release of perl installed.
Then I install apache
/virtual/www/sdu/perl/
/virtual/www/sdu/apache

All fine and good.

Then I try mod_perl-1.26

It tells me my PERL is compiled with -lpthreads and to use LIBS=-lpthread for my
httpd... Well I had to recompile apache to do this, no big deal, done...

Apache even starts and runs, but as soon as you go to a URL it serves, a child process gives :
[Fri Jan 18 07:24:07 2002] [notice] SIGHUP received.  Attempting to restart
[Fri Jan 18 07:24:08 2002] [notice] Apache/1.3.22 (Unix) mod_perl/1.26  configured -- resuming normal operations
[Fri Jan 18 07:24:08 2002] [notice] Accept mutex: fcntl (Default: fcntl)
[Fri Jan 18 07:24:24 2002] [notice] child pid 26203 exit signal Segmentation
Fault (11), possible coredump in /virtual/sdu/www/apache/bin/httpd

I don't see what I am missing here

System configuration and useful info follows:
[pts/1]:sduweb@chameleon.umd.edu /virtual/sdu/www/apache/bin 1169 >ldd httpd
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libthread.so.1 =>        /usr/lib/libthread.so.1
        /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1

Note: it has pthread in it

uname -a
SunOS chameleon.umd.edu 5.6 Generic_105181-26 sun4u sparc SUNW,Ultra-250

Apache Configure
LIBS=-lpthread ./configure --prefix=$PREFIX/apache --enable-shared=max
--enable-module=most --with-port=$PORT_APACHE --with-perl=$PERL

mod_perl
$PERL Makefile.PL USE_APXS=1 WITH_APXS=$PREFIX/apache/bin/apxs EVERYTHING=1

perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris-thread-multi
    uname='sunos sparky 5.6 generic_105181-26 sun4u sparc sunw,ultra-5_10 '
    config_args='-des -Dcc=gcc -Dcf_by=ActiveState
-Dcf_email=ActivePerl@ActiveState.com -Uinstallusrbinperl -Ud_sigsetjmp
-Dusethreads -Dusei
reads -Dinc_version_list=5.6.0/$archname 5.6.0
-Dprefix=/virtual/sdu/www/perl5.6.1'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='gcc', ccflags ='-DUSE_REENTRANT_API -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOU
E -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-DUSE_REENTRANT_API -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.2 19991024 (release)',
gccosandvers='solaris2.6'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lposix4 -lpthread -lc
    perllibs=-lsocket -lnsl -ldl -lm -lposix4 -lpthread -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        ActivePerl Build 631
  Built under solaris
  Compiled at Jan  3 2002 20:33:12
  %ENV:
    PERL="/virtual/sdu/www/perl/bin/perl"
  @INC:
    /virtual/sdu/www/perl5.6.1/lib/5.6.1/sun4-solaris-thread-multi
    /virtual/sdu/www/perl5.6.1/lib/5.6.1
    /virtual/sdu/www/perl5.6.1/lib/site_perl/5.6.1/sun4-solaris-thread-multi
    /virtual/sdu/www/perl5.6.1/lib/site_perl/5.6.1
    /virtual/sdu/www/perl5.6.1/lib/site_perl







------------------------------------------------------------------------------
Philip M. Gollucci (p6m7g8) philip@p6m7g8.com 301.314.3118

Science, Discovery, & the Universe (UMCP)
        Webmaster & Webship Teacher
        URL: http://www.sdu.umd.edu

EJPress.com
        Database/PERL Programmer & System Admin
        URL : http://www.ejournalpress.com

Resume      : http://www.p6m7g8.com/resume.txt