[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Amended:
From:       "Ed Brown" <ebrown () arcompanies ! net>
Date:       2004-09-25 22:00:03
Message-ID: 015501c4a34b$03115a00$0501a8c0 () ebrownhome
[Download RAW message or body]

I got this. (Thanks for the hint Stas Beckman)

I deleted the perl executable directory tree, did a make clean, rebuilt passing \
"=fPIC" as a compiler flag.

Then configured and built mod_perl.  No problems this time.




Ed 
  ----- Original Message ----- 
  From: Ed Brown 
  To: modperl@perl.apache.org 
  Sent: Saturday, September 25, 2004 1:38 PM
  Subject: Amended:


  This is a repost. Sorry for not including everything. I believe this post is \
complete.

  I started with a standard Suse 9.0 on AMD Athlon. I built the current versions of \
Apache and PHP from source, then perl. I'm getting an error at dynaloader. I'm \
moderately knowledgeable in linux, but I don't know how to resolve this. Can anyone \
give me a suggestion?


  Thanks



  Ed Brown

  "t/REPORT" says
    #!/usr/local/bin/perl
    # WARNING: this file is generated, do not edit
    # 01: Apache-Test/lib/Apache/TestConfig.pm:875
    # 02: Apache-Test/lib/Apache/TestConfig.pm:965
    # 03: Apache-Test/lib/Apache/TestReport.pm:44
    # 04: Makefile.PL:274
    # 05: Makefile.PL:51

    BEGIN { eval { require blib; } }


    use strict;
    use warnings FATAL => 'all';

    use lib qw(
        /usr/src/mod_perl-1.99_16/lib
        /usr/src/mod_perl-1.99_16/Apache-Test/lib
        /usr/src/mod_perl-1.99_16/t/lib
    );
  "which perl" says
    /usr/local/bin/perl
  which is the version I built today
  I built Perl perl-5.8.5. "perl -V" says
    Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
      Platform:
        osname=linux, osvers=2.4.21-102-default, archname=x86_64-linux
        uname='linux http01 2.4.21-102-default #1 wed sep 24 13:57:05 utc 2003 x86_64 \
x86_64 x86_64 gnulinux '  config_args='-ds -e -Duse64bitint -Dusethreads \
-Duseshrplib'  hint=previous, 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='cc', 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/local/include -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64'  ccversion='', gccversion='3.3.1 (SuSE Linux)', \
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='cc', ldflags =' -L/usr/local/lib'
        libpth=/usr/local/lib /lib /usr/lib
        libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc
        perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
        libc=, 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 -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 Sep 25 2004 11:45:02
      @INC:
        /usr/local/lib/perl5/5.8.5/x86_64-linux
        /usr/local/lib/perl5/5.8.5
        /usr/local/lib/perl5/site_perl/5.8.5/x86_64-linux
        /usr/local/lib/perl5/site_perl/5.8.5
        /usr/local/lib/perl5/site_perl
  make test says
    <snip>
    All tests successful.
    u=1.65  s=0.32  cu=133.99  cs=10.52  scripts=821  tests=84931
    make[2]: Leaving directory `/usr/src/perl-5.8.5'
    make[1]: Leaving directory `/usr/src/perl-5.8.5'
  I configure mod_perl with
    perl Makefile.PL  -Duse64bitint -Dusethreads -Duseshrplib \
MP_APXS=/usr/local/apache2/bin/apxs -MP_INST_APACHE2=1    and when I do make 
  I get
    <snip>
    DynaLoader.a -L/usr/local/lib/perl5/5.8.5/x86_64-linux/CORE -lperl -lnsl -ldl -lm \
                -lcrypt -lutil -lc \
    -o mod_perl.so
    /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.1/../../../../x86_64-suse-linux/bin/ld: \
/usr/local/lib/perl5/5.8.5/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  /usr/local/lib/perl5/5.8.5/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 `/usr/src/mod_perl-1.99_16/src/modules/perl'
    make: *** [modperl_lib] Error 2


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I got this. (Thanks for the hint Stas 
Beckman)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I deleted the perl executable directory tree, did a 
make clean, rebuilt passing "=fPIC" as a compiler flag.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Then configured and built mod_perl.&nbsp; No 
problems this time.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Ed&nbsp;</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px">  <DIV style="FONT: 10pt arial">----- Original Message \
----- </DIV>  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ebrown@arcompanies.net href="mailto:ebrown@arcompanies.net">Ed 
  Brown</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=modperl@perl.apache.org 
  href="mailto:modperl@perl.apache.org">modperl@perl.apache.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, September 25, 2004 1:38 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Amended:</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>This is a repost. Sorry for not including 
  everything. I believe this post is complete.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I&nbsp;started with&nbsp;a standard Suse 9.0 on 
  AMD Athlon. <FONT face=Arial size=2>I built the current versions of Apache and 
  PHP from source, then perl. I'm getting an error at dynaloader. </FONT><FONT 
  face=Arial size=2>I'm moderately knowledgeable in linux, but I don't know how 
  to resolve this. Can anyone give me a suggestion?</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Ed Brown</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><STRONG>"t/REPORT"</STRONG> says</DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><STRONG>#!/usr/local/bin/perl<BR># WARNING: this file is generated, do 
    not edit<BR># 01: Apache-Test/lib/Apache/TestConfig.pm:875<BR># 02: 
    Apache-Test/lib/Apache/TestConfig.pm:965<BR># 03: 
    Apache-Test/lib/Apache/TestReport.pm:44<BR># 04: Makefile.PL:274<BR># 05: 
    Makefile.PL:51</STRONG></DIV>
    <DIV><STRONG></STRONG>&nbsp;</DIV>
    <DIV><STRONG>BEGIN { eval { require blib; } }</STRONG></DIV>
    <DIV><STRONG></STRONG>&nbsp;</DIV>
    <DIV><BR><STRONG>use strict;<BR>use warnings FATAL =&gt; 
    'all';</STRONG></DIV>
    <DIV><STRONG></STRONG>&nbsp;</DIV>
    <DIV><STRONG>use lib qw(<BR>&nbsp;&nbsp;&nbsp; 
    /usr/src/mod_perl-1.99_16/lib<BR>&nbsp;&nbsp;&nbsp; 
    /usr/src/mod_perl-1.99_16/Apache-Test/lib<BR>&nbsp;&nbsp;&nbsp; 
    /usr/src/mod_perl-1.99_16/t/lib<BR>);</STRONG></DIV></BLOCKQUOTE>
  <DIV dir=ltr><STRONG>"which perl"</STRONG> says</DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV dir=ltr>/usr/local/bin/perl</DIV></BLOCKQUOTE>
  <DIV dir=ltr>which is the version I built today</DIV>
  <DIV><FONT face=Arial size=2>I built Perl perl-5.8.5. <STRONG>"perl 
  -V"</STRONG> says</FONT></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial size=2><STRONG>Summary of my perl5 (revision 5 version 
    8 subversion 5) configuration:<BR>&nbsp; Platform:<BR>&nbsp;&nbsp;&nbsp; 
    osname=linux, osvers=2.4.21-102-default, 
    archname=x86_64-linux<BR>&nbsp;&nbsp;&nbsp; uname='linux http01 
    2.4.21-102-default #1 wed sep 24 13:57:05 utc 2003 x86_64 x86_64 x86_64 
    gnulinux '<BR>&nbsp;&nbsp;&nbsp; config_args='-ds -e -Duse64bitint 
    -Dusethreads -Duseshrplib'<BR>&nbsp;&nbsp;&nbsp; hint=previous, 
    useposix=true, d_sigaction=define<BR>&nbsp;&nbsp;&nbsp; usethreads=undef 
    use5005threads=undef useithreads=undef 
    usemultiplicity=undef<BR>&nbsp;&nbsp;&nbsp; useperlio=define d_sfio=undef 
    uselargefiles=define usesocks=undef<BR>&nbsp;&nbsp;&nbsp; use64bitint=define 
    use64bitall=define uselongdouble=undef<BR>&nbsp;&nbsp;&nbsp; usemymalloc=n, 
    bincompat5005=undef<BR>&nbsp; Compiler:<BR>&nbsp;&nbsp;&nbsp; cc='cc', 
    ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include 
    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',<BR>&nbsp;&nbsp;&nbsp; 
    optimize='-O2',<BR>&nbsp;&nbsp;&nbsp; cppflags='-fno-strict-aliasing -pipe 
    -I/usr/local/include -fno-strict-aliasing -pipe -I/usr/local/include 
    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'<BR>&nbsp;&nbsp;&nbsp; 
    ccversion='', gccversion='3.3.1 (SuSE Linux)', 
    gccosandvers=''<BR>&nbsp;&nbsp;&nbsp; intsize=4, longsize=8, ptrsize=8, 
    doublesize=8, byteorder=12345678<BR>&nbsp;&nbsp;&nbsp; d_longlong=define, 
    longlongsize=8, d_longdbl=define, longdblsize=16<BR>&nbsp;&nbsp;&nbsp; 
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
    lseeksize=8<BR>&nbsp;&nbsp;&nbsp; alignbytes=8, prototype=define<BR>&nbsp; 
    Linker and Libraries:<BR>&nbsp;&nbsp;&nbsp; ld='cc', ldflags =' 
    -L/usr/local/lib'<BR>&nbsp;&nbsp;&nbsp; libpth=/usr/local/lib /lib 
    /usr/lib<BR>&nbsp;&nbsp;&nbsp; libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil 
    -lc<BR>&nbsp;&nbsp;&nbsp; perllibs=-lnsl -ldl -lm -lcrypt -lutil 
    -lc<BR>&nbsp;&nbsp;&nbsp; libc=, so=so, useshrplib=false, 
    libperl=libperl.a<BR>&nbsp;&nbsp;&nbsp; gnulibc_version='2.3.2'<BR>&nbsp; 
    Dynamic Linking:<BR>&nbsp;&nbsp;&nbsp; dlsrc=dl_dlopen.xs, dlext=so, 
    d_dlsymun=undef, ccdlflags='-Wl,-E'<BR>&nbsp;&nbsp;&nbsp; 
    cccdlflags='-fpic', lddlflags='-shared 
    -L/usr/local/lib'</STRONG></FONT></DIV>
    <DIV><STRONG></STRONG>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><BR><STRONG>Characteristics of this binary 
    (from libperl):<BR>&nbsp; Compile-time options: USE_64_BIT_INT 
    USE_64_BIT_ALL USE_LARGE_FILES<BR>&nbsp; Built under linux<BR>&nbsp; 
    Compiled at Sep 25 2004 11:45:02<BR>&nbsp; @INC:<BR>&nbsp;&nbsp;&nbsp; 
    /usr/local/lib/perl5/5.8.5/x86_64-linux<BR>&nbsp;&nbsp;&nbsp; 
    /usr/local/lib/perl5/5.8.5<BR>&nbsp;&nbsp;&nbsp; 
    /usr/local/lib/perl5/site_perl/5.8.5/x86_64-linux<BR>&nbsp;&nbsp;&nbsp; 
    /usr/local/lib/perl5/site_perl/5.8.5<BR>&nbsp;&nbsp;&nbsp; 
    /usr/local/lib/perl5/site_perl</STRONG></FONT></DIV></BLOCKQUOTE>
  <DIV><FONT face=Arial size=2><STRONG>make test</STRONG> says</FONT></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial size=2><STRONG>&lt;snip&gt;</STRONG></FONT></DIV>
    <DIV><FONT face=Arial size=2><STRONG>All tests successful.<BR>u=1.65&nbsp; 
    s=0.32&nbsp; cu=133.99&nbsp; cs=10.52&nbsp; scripts=821&nbsp; 
    tests=84931<BR>make[2]: Leaving directory `/usr/src/perl-5.8.5'<BR>make[1]: 
    Leaving directory `/usr/src/perl-5.8.5'</STRONG></DIV></BLOCKQUOTE></FONT>
  <DIV><FONT face=Arial size=2>I configure mod_perl with</FONT></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial size=2><STRONG>perl Makefile.PL&nbsp; -Duse64bitint 
    -Dusethreads -Duseshrplib MP_APXS=/usr/local/apache2/bin/apxs 
    -MP_INST_APACHE2=1&nbsp; </STRONG></FONT></DIV></BLOCKQUOTE>
  <DIV><FONT face=Arial size=2>and when I do <STRONG>make</STRONG> </FONT></DIV>
  <DIV><FONT face=Arial size=2>I get</FONT></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial size=2><STRONG>&lt;snip&gt;</STRONG></FONT></DIV>
    <DIV><FONT face=Arial size=2><STRONG>DynaLoader.a 
    -L/usr/local/lib/perl5/5.8.5/x86_64-linux/CORE -lperl -lnsl -ldl -lm -lcrypt 
    -lutil -lc \<BR>-o 
    mod_perl.so<BR>/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.1/../../../../x86_64-suse-linux/bin/ld: \
  /usr/local/lib/perl5/5.8.5/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<BR>/usr/local/lib/perl5/5.8.5/x86_64-linux/auto/DynaLoader/DynaLoader.a: 
    could not read symbols: Bad value<BR>collect2: ld returned 1 exit 
    status<BR>make[1]: *** [mod_perl.so] Error 1<BR>make[1]: Leaving directory 
    `/usr/src/mod_perl-1.99_16/src/modules/perl'<BR>make: *** [modperl_lib] 
    Error 2<BR></STRONG></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></FONT></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic