You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Roman Bessyadovskii <ri...@nnz.ru> on 2004/02/11 10:50:59 UTC

[mp2] Cannot load mod_perl.so into server. Undefined symbol "Perl _vmess"

-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

After successful compile mod_perl-1.99_12 i try load mod_perl.so in httpd
(Apache/2.0.48) i recive message bellow (here output 
mod_perl-1.99_10, that i try to install from FreeBSD 4.2-RELEASE ports, and
in release 12 i have same problem)
Also, I try to install Latest mod_perl 2.0 Version with same effect.
Bug report generated with lastest mod_perl version
------------------ Make test output ---------------------------- su-2.04$
make test TEST_VERBOSE=1 \
 >     TEST_FILES="compat/apache_util.t modperl/pnotes.t"
cd "src/modules/perl" && make -f Makefile.modperl /usr/local/bin/perl
-Iblib/arch/Apache2 -Iblib/lib/Apache2  t/TEST -clean APACHE_USER=
APACHE_GROUP= APACHE_PORT= APACHE= APXS= 
/usr/local/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2  t/TEST 
-verbose=1 compat/apache_util.t modperl/pnotes.t /raid/www/bin/httpd  -d
/usr/ports/www/mod_perl2/work/mod_perl-1.99_10/t 
-f /usr/ports/www/mod_perl2/work/mod_perl-1.99_10/t/conf/httpd.conf 
-DAPACHE2
using Apache/2.0.48 (prefork MPM)

waiting for server to start: .Syntax error on line 16 of 
/usr/ports/www/mod_perl2/work/mod_perl-1.99_10/t/conf/httpd.conf:
Cannot load 
/usr/ports/www/mod_perl2/work/mod_perl-1.99_10/src/modules/perl/mod_perl.so 
into server: 
/usr/ports/www/mod_perl2/work/mod_perl-1.99_10/src/modules/perl/mod_perl.so:

Undefined symbol "Perl_vmess"
............................................................
waiting for server to start: giving up after 61 secs
!!! server failed to start! (t/logs/error_log wasn't created, start the 
server in the debug mode)
*** Error code 1

Stop in /usr/ports/www/mod_perl2/work/mod_perl-1.99_10.


2. Used Components and their Configuration:

*** mod_perl version 1.9913

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS         => /raid/www/bin/apxs
  MP_COMPAT_1X    => 1
  MP_GENERATE_XS  => 1
  MP_INST_APACHE2 => 1
  MP_LIBNAME      => mod_perl
  MP_USE_DSO      => 1
  MP_USE_STATIC   => 1


*** /raid/www/bin/httpd -V
Server version: Apache/2.0.48
Server built:   Feb  3 2004 15:50:28
Server's Module Magic Number: 20020903:4
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_FLOCK_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/raid/www"
 -D SUEXEC_BIN="/raid/www/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
  Platform:
    osname=freebsd, osvers=4.2-release, archname=i386-freebsd
    uname='freebsd portal.nienschanz.ru 4.2-release freebsd 4.2-release #0:
sun mar 25 04:17:52 msd 2001
root@nportal.nnz.ru:usrsrcsyscompilenportal-firewall-ccd.last i386 '
    config_args='-de'
    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=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-fno-strict-aliasing -I/usr/local/include',
    optimize='-O',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
-I/usr/local/include'
    ccversion='', gccversion='2.95.2 19991024 (release)', 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=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    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 Feb  3 2004 17:48:08
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/local/lib/perl5/5.8.3/i386-freebsd
    /usr/local/lib/perl5/5.8.3
    /usr/local/lib/perl5/site_perl/5.8.3/i386-freebsd
    /usr/local/lib/perl5/site_perl/5.8.3
    /usr/local/lib/perl5/site_perl/5.8.0/i386-freebsd
    /usr/local/lib/perl5/site_perl/5.8.0
    /usr/local/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/site_perl
    .

*** Packages of interest status:

Apache::Request: -
CGI            : 3.01
LWP            : 5.52
mod_perl       : 1.9912, 1.9912


3. This is the core dump trace: (if you get a core dump):

  [CORE TRACE COMES HERE]

This report was generated by t/REPORT on Wed Feb 11 09:42:02 2004 GMT.

-------------8<---------- End Bug Report --------------8<----------

Note: Complete the rest of the details and post this bug report to
dev <at> perl.apache.org. To subscribe to the list send an empty
email to dev-subscribe@perl.apache.org.



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] Cannot load mod_perl.so into server. Undefined symbol "Perl _vmess"

Posted by Stas Bekman <st...@stason.org>.
Roman Bessyadovskii wrote:
> -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:
> 
> After successful compile mod_perl-1.99_12 i try load mod_perl.so in httpd
> (Apache/2.0.48) i recive message bellow (here output 
> mod_perl-1.99_10, that i try to install from FreeBSD 4.2-RELEASE ports, and
> in release 12 i have same problem)
[...]
> waiting for server to start: .Syntax error on line 16 of 
> /usr/ports/www/mod_perl2/work/mod_perl-1.99_10/t/conf/httpd.conf:
> Cannot load 
> /usr/ports/www/mod_perl2/work/mod_perl-1.99_10/src/modules/perl/mod_perl.so 
> into server: 
> /usr/ports/www/mod_perl2/work/mod_perl-1.99_10/src/modules/perl/mod_perl.so:
> 
> Undefined symbol "Perl_vmess"

Show us the output of:

nm /usr/ports/www/mod_perl2/work/mod_perl-1.99_10/src/modules/perl/mod_perl.so 
| grep Perl_vmess

it looks like during the linking phase, it has picked the wrong libperl.a. Do 
you have more than one libperl.a on your system?

Please run the following:

cd modperl-1.99_12
cd src/modules/perl
rm -f mod_perl.so
make -f Makefile.modperl
cat /etc/ld.so.conf

and post the output here.

> *** Packages of interest status:
[...]
> mod_perl       : 1.9912, 1.9912

It also looks like you have mp2 installed more than once. Show us the outpuf of:

find /usr/local/lib/perl5/ -type f -name 'mod_perl.pm'

You probably want to nuke all the previously installed instances of mp2.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html