----------------------- Start Bug Report ---------------------- 1. Problem Description:
I am using an AMD 64-bit dual processor machine with 4GB RAM. The operating system is Slackware Lin ux 10. I have Apache 2.0.54 and Perl 5.8.6 . I am trying to install mod perl and running with all a problem while I run make. The config process goes fine. The apxs and apr-config are passed during configuration process properly. When the make command runs, I get the following error:- I get the following error which says:- /**********************************************************************/ /opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/lib/gcc/x86_64-unknown-linux-gnu/3.4. 1/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/local/lib/perl5/5.8.6/x86_64-linux/auto/DynaLoa der/DynaLoader.a(DynaLoader.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/lib/perl5/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a: could not read symbols: Bad v alue collect2: ld returned 1 exit status make[1]: *** [mod_perl.so] Error 1 /**********************************************************************/ The entire command runs as follows:- /**********************************************************************/ x86_64-unknown-linux-gnu-gcc -shared -L/usr/local/lib \ \ mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo mod perl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.l o modperl_io_apache.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_gl obal.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo mod perl_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 mod perl_hooks.lo modperl_directives.lo modperl_flags.lo modperl_xsinit.lo modperl_exports.lo -Wl,-E -L/usr/local/lib /usr/local/lib/perl5/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a -L/usr/local/ lib/perl5/5.8.6/x86_64-linux/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lc \ -o mod_perl.so /opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/lib/gcc/x86_64-unknown-linux-gnu/3.4. 1/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/local/lib/perl5/5.8.6/x86_64-linux/auto/DynaLoa der/DynaLoader.a(DynaLoader.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/lib/perl5/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a: could not read symbols: Bad v alue collect2: ld returned 1 exit status make[1]: *** [mod_perl.so] Error 1 make[1]: Leaving directory `/home/staff/install/mod_perl-2.0.1/src/modules/perl' make: *** [modperl_lib] Error 2 /**********************************************************************/ I guess it is a problem with perl installation where Dynaloader should have been installed with -fPIC. If it is so, will I have to reinstall my perl? I dont want to do that because all this is being done on a server and the slightest change in configuration will change the entier setup. Can there be any other way to solve this problem , probably a workaround which doesnot disturb the existing configuration. 2. Used Components and their Configuration: *** mod_perl version 2.000001 *** using /home/staff/install/mod_perl-2.0.1/lib/Apache2/BuildConfig.pm *** Makefile.PL options: MP_APR_CONFIG => /opt/crosstool/apr/bin/apr-config MP_APR_LIB => aprext MP_APXS => /usr/local/apache2/bin/apxs MP_COMPAT_1X => 1 MP_DEBUG => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_TRACE => 1 MP_USE_DSO => 1 *** The httpd binary was not found *** (apr|apu)-config linking info -L/opt/crosstool/apr-util/lib -laprutil-0 -lldap -lgdbm -ldb -lexpat -L/opt/crosstool/apr/lib -lapr-0 -lrt -lm -lcrypt -lnsl -lpthread -ldl *** /usr/local/bin/perl -V Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=linux, osvers=2.6.9, archname=x86_64-linux-stdio uname='linux mail003 2.6.9 #3 wed apr 20 13:20:06 ist 2005 x86_64 unknown unknown gnulinux ' config_args='' hint=previous, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='x86_64-unknown-linux-gnu-gcc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D _LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -I/usr/local/include -fno-strict-aliasing -pipe -I/usr/loc al/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -pipe -I/usr/local/inclu de -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -pipe -I/usr/local/include -D_LA RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_ SOURCE -D_FILE_OFFSET_BITS=64' ccversion='', gccversion='3.4.1', 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, nvt Linker and Libraries: ld='x86_64-unknown-linux-gnu-gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib 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.3' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' 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 May 28 2005 01:31:49 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: /usr/local/lib/perl5/5.8.6/x86_64-linux /usr/local/lib/perl5/5.8.6 /usr/local/lib/perl5/site_perl/5.8.6/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl . *** Packages of interest status: Apache2 : - Apache2::Request : - CGI : 3.05 ExtUtils::MakeMaker: 6.17 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 Tue Oct 11 06:46:04 2005 GMT. -------------8<---------- End Bug Report --------------8<---------- Note: Complete the rest of the details and post this bug report to modperl <at> perl.apache.org. To subscribe to the list send an empty email to [EMAIL PROTECTED] PLEASE HELP. PLEASE. With warm regards. Vivek J. Joshi. [EMAIL PROTECTED] Trikon electronics Pvt. Ltd. --New opinions often appear first as jokes and fancies, then as blasphemies and treason, then as questions open to discussion, and finally as established truths.