Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2004 02:34:34 +1200 (NZST)
From:      Andrew McNaughton <andrew@scoop.co.nz>
To:        freebsd-ports@freebsd.org
Subject:   Version conflicts with mod_perl?
Message-ID:  <20040406013100.H45259@a2.scoop.co.nz>

next in thread | raw e-mail | index | archive | help

I've got a server that's still running FBSD4.5.  Well, actually it's
4.4-RC #1, because 4.5 was a couple of days away when I had to get it into
place.  I've been out of the country for a while and I haven't wanted to
do a remote reboot.  I know this isn't formally supported, but I'm hoping
someone will recognise this situation and can help me out.

The timing's bad.  The server's linked on slashdot, and is currently
limping along without any of it's dynamic content.

Installed ports are all pretty up to date.  Perhaps Too up to date i
think, although it's probably partly also the OS version?  I suspect it's
some sort of version conflict.

FreeBSD 4.4-RC #1: Fri Sep  7 06:03:14 NZST 2001
gcc version 2.95.3 20010315 (release) [FreeBSD]
apache-1.3.29_3
perl-5.8.2_5
mod_perl-1.29
p5-HTML-Mason-1.25

When I try to start up my web server I get this error at the point where
bits of HTML-Mason get dynamically loaded:

Can't load '/usr/local/lib/perl5/5.8.2/mach/auto/File/Glob/Glob.so' for
module File::Glob: /usr/local/lib/perl5/5.8.2/mach/auto/File/Glob/Glob.so:
Undefined symbol "PL_sv_undef" at
/usr/local/lib/perl5/5.8.2/mach/XSLoader.pm line 68.
 at /usr/local/lib/perl5/5.8.2/mach/File/Glob.pm line 96
Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.8.2/HTML/Mason/Resolver/File.pm line 20.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.8.2/HTML/Mason/Resolver/File.pm line 20.
Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.8.2/HTML/Mason/ApacheHandler.pm line 201.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.8.2/HTML/Mason/ApacheHandler.pm line 201.
Compilation failed in require at /home/scoop/mp/mason-handler.pl line 2.
BEGIN failed--compilation aborted at /home/scoop/mp/mason-handler.pl line 2.
Compilation failed in require at (eval 15) line 1.

It's not just HTML::Mason.  DBD::mysql produces much the same sort of
thing.

I've rebuilt every port in sight, so I'm quite sure there's no problems
with different compiler, CFLAGS, or anything like that.

I can start the apache/mod_perl server up OK so long as it doesn't try to
load dynamically linked .so files.  That's not all that helpful really.

I've been going on this for more than 24 hours straight now, with no
success.  Can anyone suggest how to deal with it?

Andrew McNaughton
Scoop Media











root@a2# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=freebsd, osvers=4.4-rc, archname=i386-freebsd
    uname='freebsd a2.scoop.co.nz 4.4-rc freebsd 4.4-rc #1: fri sep 7
06:03:14 nzst 2001
andrew@router.wallace.lan:usrsrcsyscompilewal-20010825-01 i386 '
    config_args='-sde -Dprefix=/usr/local
-Darchlib=/usr/local/lib/perl5/5.8.2/mach
-Dprivlib=/usr/local/lib/perl5/5.8.2
-Dman3dir=/usr/local/lib/perl5/5.8.2/man/man3
-Dman1dir=/usr/local/man/man1
-Dsitearch=/usr/local/lib/perl5/site_perl/5.8.2/mach
-Dsitelib=/usr/local/lib/perl5/site_perl/5.8.2 -Dscriptdir=/usr/local/bin
-Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Doptimize=-O -pipe
-Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.2/BSDPAN"
-Ud_dosuid -Ui_gdbm -Dusethreads=n -Dusemymalloc=y'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=y, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.2/BSDPAN"
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
-I/usr/local/include',
    optimize='-O -pipe ',
    cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.2/BSDPAN"
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
-I/usr/local/include'
    ccversion='', gccversion='2.95.3 20010315 (release) [FreeBSD]',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lm -lcrypt -lutil -lc
    perllibs=-lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='
-Wl,-R/usr/local/lib/perl5/5.8.2/mach/CORE'
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under freebsd
  Compiled at Apr  5 2004 20:56:33
  @INC:
    /usr/local/lib/perl5/site_perl/5.8.2/mach
    /usr/local/lib/perl5/site_perl/5.8.2
    /usr/local/lib/perl5/site_perl/5.6.1.bak
    /usr/local/lib/perl5/site_perl/5.005.bak
    /usr/local/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/site_perl
    /usr/local/lib/perl5/5.8.2/BSDPAN
    /usr/local/lib/perl5/5.8.2/mach
    /usr/local/lib/perl5/5.8.2
    .










--

No added Sugar.  Not tested on animals.  May contain traces of Nuts.  If
irritation occurs, discontinue use.

-------------------------------------------------------------------
Andrew McNaughton           Currently in Boomer Bay, Tasmania
andrew@scoop.co.nz
Mobile: +61 422 753 792     http://staff.scoop.co.nz/andrew/cv.doc





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040406013100.H45259>