Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

error compiling 2.0.7

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


jira at getnet

Jul 23, 2012, 9:59 AM

Post #1 of 6 (909 views)
Permalink
error compiling 2.0.7

Hello,

I'm trying (unsuccessfully) to compile 2.0.7 with perl-5.16 and
httpd-2.2.22. The error is below. I have a perl compiled with fPIC. I
put fPIC into LDFLAGS when compiling mod_perl.
Anyway to make this work?


/usr/bin/ld: /opt/perl/lib/5.16.0/x86_64-linux/CORE/libperl.a(op.o):
relocation R_X86_64_32S against `PL_sv_yes' can not be used when making
a shared object; recompile with -fPIC
/opt/perl/lib/5.16.0/x86_64-linux/CORE/libperl.a: could not read
symbols: Bad value

--
Jiří Pavlovský


fred at redhotpenguin

Jul 23, 2012, 10:59 AM

Post #2 of 6 (860 views)
Permalink
Re: error compiling 2.0.7 [In reply to]

On Mon, Jul 23, 2012 at 9:59 AM, Ji Pavlovsk <jira [at] getnet> wrote:
> I'm trying (unsuccessfully) to compile 2.0.7 with perl-5.16 and
> httpd-2.2.22. The error is below. I have a perl compiled with fPIC. I put
> fPIC into LDFLAGS when compiling mod_perl.
> Anyway to make this work?

Are you sure it is compiled with -fPIC? Can you post 'perl -V'?


>
>
> /usr/bin/ld: /opt/perl/lib/5.16.0/x86_64-linux/CORE/libperl.a(op.o):
> relocation R_X86_64_32S against `PL_sv_yes' can not be used when making a
> shared object; recompile with -fPIC
> /opt/perl/lib/5.16.0/x86_64-linux/CORE/libperl.a: could not read symbols:
> Bad value
>
> --
> Ji Pavlovsk
>


jira at getnet

Jul 23, 2012, 11:19 AM

Post #3 of 6 (869 views)
Permalink
Re: error compiling 2.0.7 [In reply to]

On 23.7.2012 19:59, Fred Moyer wrote:
> On Mon, Jul 23, 2012 at 9:59 AM, Jiří Pavlovský<jira [at] getnet> wrote:
>> I'm trying (unsuccessfully) to compile 2.0.7 with perl-5.16 and
>> httpd-2.2.22. The error is below. I have a perl compiled with fPIC. I put
>> fPIC into LDFLAGS when compiling mod_perl.
>> Anyway to make this work?
> Are you sure it is compiled with -fPIC? Can you post 'perl -V'?
>


Here it is

Summary of my perl5 (revision 5 version 16 subversion 0) configuration:

Platform:
osname=linux, osvers=3.2.21-1.32.6.amzn1.x86_64, archname=x86_64-linux
uname='linux ip-10-54-250-162 3.2.21-1.32.6.amzn1.x86_64 #1 smp sat
jun 23 02:32:15 utc 2012 x86_64 x86_64 x86_64 gnulinux '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
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 -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include'
ccversion='', gccversion='4.4.6 20110731 (Red Hat 4.4.6-3)',
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 =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /lib /usr/lib
/lib64 /usr/lib64 /usr/local/lib64
libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.12'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'


Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE
USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under linux
Compiled at Jul 22 2012 19:09:19
@INC:
/opt/perl/lib/site_perl/5.16.0/x86_64-linux
/opt/perl/lib/site_perl/5.16.0
/opt/perl/lib/5.16.0/x86_64-linux
/opt/perl/lib/5.16.0
.

--
Jiří Pavlovský


fred at redhotpenguin

Jul 23, 2012, 11:29 AM

Post #4 of 6 (863 views)
Permalink
Re: error compiling 2.0.7 [In reply to]

You might want to try what David Wheeler did on this thread. Getting
Perl built with -fPIC correctly can be tricky.

http://www.gossamer-threads.com/lists/modperl/modperl/101165

On Mon, Jul 23, 2012 at 11:19 AM, Jiří Pavlovský <jira [at] getnet> wrote:
> On 23.7.2012 19:59, Fred Moyer wrote:
>>
>> On Mon, Jul 23, 2012 at 9:59 AM, Jiří Pavlovský<jira [at] getnet> wrote:
>>>
>>> I'm trying (unsuccessfully) to compile 2.0.7 with perl-5.16 and
>>> httpd-2.2.22. The error is below. I have a perl compiled with fPIC. I put
>>> fPIC into LDFLAGS when compiling mod_perl.
>>> Anyway to make this work?
>>
>> Are you sure it is compiled with -fPIC? Can you post 'perl -V'?
>>
>
>
> Here it is
>
> Summary of my perl5 (revision 5 version 16 subversion 0) configuration:
>
> Platform:
> osname=linux, osvers=3.2.21-1.32.6.amzn1.x86_64, archname=x86_64-linux
> uname='linux ip-10-54-250-162 3.2.21-1.32.6.amzn1.x86_64 #1 smp sat jun
> 23 02:32:15 utc 2012 x86_64 x86_64 x86_64 gnulinux '
> config_args=''
> hint=recommended, useposix=true, d_sigaction=define
> 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 -fstack-protector
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
> optimize='-O2',
> cppflags='-fno-strict-aliasing -pipe -fstack-protector
> -I/usr/local/include'
> ccversion='', gccversion='4.4.6 20110731 (Red Hat 4.4.6-3)',
> 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 =' -fstack-protector -L/usr/local/lib'
> libpth=/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /lib /usr/lib
> /lib64 /usr/lib64 /usr/local/lib64
> libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc
> perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
> libc=/lib/libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a
> gnulibc_version='2.12'
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
> cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
> -fstack-protector'
>
>
> Characteristics of this binary (from libperl):
> Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
> PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL
> USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE
> USE_LOCALE_COLLATE USE_LOCALE_CTYPE
> USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
> Built under linux
> Compiled at Jul 22 2012 19:09:19
> @INC:
> /opt/perl/lib/site_perl/5.16.0/x86_64-linux
> /opt/perl/lib/site_perl/5.16.0
> /opt/perl/lib/5.16.0/x86_64-linux
> /opt/perl/lib/5.16.0
> .
>
> --
> Jiří Pavlovský
>


Alexander.Elgert at external

Jul 23, 2012, 12:24 PM

Post #5 of 6 (865 views)
Permalink
AW: error compiling 2.0.7 [In reply to]

Sorry, if my tips are wrong, but I had much of these problems with solaris.

Please make sure, you compiled all the programs using the same instruction word (32bit 64bit).
Maybe(!), you have a mixture of different libraries on your system, so please clean them up.

Maybe, you are unable to access an Oracle DB, because the client is 32 bit only and you have to install version 10 to use it in combination with mod_perl.
So perl has to be 32 bit too ...
I would be very pleased to hear, if this statement is false.

Greetings,
Alexander

--
Deutsche Telekom AG
Seamless ICT Security Infrastructure & Management
im Auftrag T-Systems International GmbH
Dipl. Inf Alexander Elgert
Langwadener Strasse 17
64625 Bensheim
+49 176 22 717 661 (Mobil)
+49 671 83419-12 (Tel)
+49 671 83419-30 (Fax)
E-Mail: alexander.elgert [at] gmx

________________________________________
Von: Ji Pavlovsk [jira [at] getnet]
Gesendet: Montag, 23. Juli 2012 18:59
An: modperl [at] perl
Betreff: error compiling 2.0.7

Hello,

I'm trying (unsuccessfully) to compile 2.0.7 with perl-5.16 and
httpd-2.2.22. The error is below. I have a perl compiled with fPIC. I
put fPIC into LDFLAGS when compiling mod_perl.
Anyway to make this work?


/usr/bin/ld: /opt/perl/lib/5.16.0/x86_64-linux/CORE/libperl.a(op.o):
relocation R_X86_64_32S against `PL_sv_yes' can not be used when making
a shared object; recompile with -fPIC
/opt/perl/lib/5.16.0/x86_64-linux/CORE/libperl.a: could not read
symbols: Bad value

--
Ji Pavlovsk


jira at getnet

Jul 23, 2012, 12:28 PM

Post #6 of 6 (867 views)
Permalink
Re: error compiling 2.0.7 [In reply to]

On 23.7.2012 20:29, Fred Moyer wrote:
> You might want to try what David Wheeler did on this thread. Getting
> Perl built with -fPIC correctly can be tricky.
>
> http://www.gossamer-threads.com/lists/modperl/modperl/101165
>

That worked. Now mod_perl compiles. Fingers crossed that it actually works

Thanks

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.