Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 1999 00:45:52 +0100
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        hackers@freebsd.org
Subject:   Re: mode_perl DSO works on STABLE, not CURRENT
Message-ID:  <19991111004552.B44926@keltia.freenix.fr>
In-Reply-To: <600.942223977@axl.noc.iafrica.com>
References:  <600.942223977@axl.noc.iafrica.com>

next in thread | previous in thread | raw e-mail | index | archive | help
According to Sheldon Hearn:
> | Syntax error on line 261 of /usr/local/etc/apache/httpd.conf:
> | Can't load '/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/MD5/MD5.so' for module MD5: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/MD5/MD5.so: Undefined symbol "PL_markstack_ptr" at /usr/libdata/perl/5.00503/DynaLoader.pm line 169.

Your Perl binary is compiled without '-Wl,-E' (or '-Wl,--export-dynamic'). 
Without this option the Perl binary doesn't expoert its symbols thus
preventing any dynamically loaded module to use anything from the binary.

The official Perl distribution and the one in CURRENT (and 3.3-STABLE) have
been fixed a long time ago.

/usr/src/contrib/perl5/hints/freebsd.sh:
-=-=-
# Support for FreeBSD/ELF
# Ollivier Robert <roberto@keltia.freenix.fr>
# Date: Wed Sep  2 16:22:12 CEST 1998

...

3.*|4.0*)
        objformat=`/usr/bin/objformat`
        if [ x$objformat = xelf ]; then
            libpth="/usr/lib /usr/local/lib"
            glibpth="/usr/lib /usr/local/lib"
            ldflags="-Wl,-E "
            lddlflags="-shared "
        else
            if [ -e /usr/lib/aout ]; then
            libpth="/usr/lib/aout /usr/local/lib /usr/lib"
            glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
        fi
        lddlflags='-Bshareable'
        fi
        cccdlflags='-DPIC -fpic'
        ;;
...
-=-=-

-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr
FreeBSD keltia.freenix.fr 4.0-CURRENT #75: Tue Nov  2 21:03:12 CET 1999



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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