[mp2] modperl2 compile error

[prev] [thread] [next] [Date index for 2005/04/27]

From: Tom Caldwell
Subject: [mp2] modperl2 compile error
Date: 16:35 on 27 Apr 2005

> -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:
>  
>   Modperl2 dynamic module build fails on Red Hat Linux (Intel 64)
> with the following error.
> 
> gcc -shared \
>  \
> mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo modperl_io_apache.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo modperl_constants.lo modperl_apache_compat.lo modperl_error.lo modperl_debug.lo modperl_common_util.lo modperl_common_log.lo modperl_hooks.lo modperl_directives.lo modperl_flags.lo modperl_xsinit.lo modperl_exports.lo  -Wl,-E  /opt/perl/lib/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a -L/opt/perl/lib/5.8.6/x86_64-linux/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lc \
> -o mod_perl.so
> /usr/bin/ld: /opt/perl/lib/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
> /opt/perl/lib/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[1]: *** [mod_perl.so] Error 1
> make[1]: Leaving directory `/opt/modperl/mod_perl-2.0.0-RC5/src/modules/perl'
> make: *** [modperl_lib] Error 2
> 
> As I am running red hat, there is another version of Perl installed, 
> apache2 has been built with the new version in /opt/perl.
> 
> Any ideas?
> 
> Thanks,
> 
> Tom
> 
> 2. Used Components and their Configuration:
>  
> *** mod_perl version 1.999022
>  
> *** using /opt/modperl/mod_perl-2.0.0-RC5/lib/Apache2/BuildConfig.pm
>  
> *** Makefile.PL options:
>   MP_APR_LIB     => aprext
>   MP_AP_PREFIX   => /opt/apache2/server
>   MP_COMPAT_1X   => 1
>   MP_GENERATE_XS => 1
>   MP_LIBNAME     => mod_perl
>   MP_USE_DSO     => 1
>  
> 
> *** The httpd binary was not found
> tc - found at /opt/apache2/server/bin/httpd                                                                                   
>  
> *** (apr|apu)-config linking info
>  
>  -L/opt/apache2/server/lib -lapr-0 -lrt -lm -lcrypt -lnsl  -lpthread -ldl
>  -L/opt/apache2/server/lib -laprutil-0 -lgdbm -ldb-4.1 -lexpat
>  
> 
> 
> *** /opt/perl/bin/perl -V
> Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
>   Platform:
>     osname=linux, osvers=2.4.21-27.0.2.el, archname=x86_64-linux
>     uname='linux dizzy 2.4.21-27.0.2.el #1 smp wed jan 12 23:25:36 est 2005 x86_64
> x86_64 x86_64 gnulinux '
>     config_args='-Dprefix=/opt/perl -Dcc=gcc'
>     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=define use64bitall=define uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='gcc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
>     optimize='-O2',
>     cppflags='-fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
>     ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-49)', gccosandvers=''
>     intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>     ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
>     alignbytes=8, prototype=define
>   Linker and Libraries:
>     ld='gcc', ldflags =''
>     libpth=/lib /usr/lib /usr/lib64
>     libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
>     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
>     libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
>     gnulibc_version='2.3.2'
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
>     cccdlflags='-fpic', lddlflags='-shared'
>                                                                                    
>  
> Characteristics of this binary (from libperl):
>   Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
>   Built under linux
>   Compiled at Apr 25 2005 12:34:43
>   %ENV:
>     PERL_LWP_USE_HTTP_10="1"
>   @INC:
>     /opt/perl/lib/5.8.6/x86_64-linux
>     /opt/perl/lib/5.8.6
>     /opt/perl/lib/site_perl/5.8.6/x86_64-linux
>     /opt/perl/lib/site_perl/5.8.6
>     /opt/perl/lib/site_perl
>     /opt/apache/perl
>     .
>  
> *** Packages of interest status:
>  
> Apache2         : -
> Apache2::Request: -
> CGI             : 3.05
> LWP             : -
> mod_perl        : -
> mod_perl2       : -
>  
> 
> 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 Apr 27 16:01:59 2005 GMT.
>  
> -------------8<---------- End Bug Report --------------8<----------
>  


(message missing)

[mp2] modperl2 compile error
Tom Caldwell 16:35 on 27 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 16:41 on 27 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 16:36 on 28 Apr 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 19:46 on 28 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 20:55 on 28 Apr 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 18:54 on 29 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 06:25 on 30 Apr 2005

Re: [mp2] modperl2 compile error
Marc =?ISO-8859-1?Q?Gr=E0cia?= 07:53 on 02 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 17:05 on 02 May 2005

Re: [mp2] modperl2 compile error
Marc =?ISO-8859-1?Q?Gr=E0cia?= 10:09 on 04 May 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 15:09 on 04 May 2005

Re: [mp2] modperl2 compile error
Marc =?ISO-8859-1?Q?Gr=E0cia?= 10:26 on 05 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 05:23 on 06 May 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 20:03 on 09 May 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 22:24 on 02 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 06:40 on 03 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 05:51 on 03 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 20:46 on 09 May 2005

Generated at 06:56 on 17 May 2005 by mariachi v0.52