Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default configuration on x86_64-linux-gnu cannot build binary extension modules #15629

Closed
p5pRT opened this issue Sep 25, 2016 · 5 comments
Closed

Comments

@p5pRT
Copy link

p5pRT commented Sep 25, 2016

Migrated from rt.perl.org#129354 (status was 'resolved')

Searchable as RT129354$

@p5pRT
Copy link
Author

p5pRT commented Sep 25, 2016

From dschepler@gmail.com

Created by dschepler@gmail.com

For example, when subsequently configuring texinfo, I got these errors
under tp/Texinfo/Convert/XSParagraph​:

/bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
"-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE" -MT TestXS_la-TestXS.lo
-MD -MP -MF .deps/TestXS_la-TestXS.Tpo -c -o TestXS_la-TestXS.lo `test
-f 'TestXS.c' || echo
'../../../../../tp/Texinfo/Convert/XSParagraph/'`TestXS.c
libtool​: compile​: cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE -MT TestXS_la-TestXS.lo -MD
-MP -MF .deps/TestXS_la-TestXS.Tpo -c
../../../../../tp/Texinfo/Convert/XSParagraph/TestXS.c -fPIC -DPIC -o
.libs/TestXS_la-TestXS.o
libtool​: compile​: cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE -MT TestXS_la-TestXS.lo -MD
-MP -MF .deps/TestXS_la-TestXS.Tpo -c
../../../../../tp/Texinfo/Convert/XSParagraph/TestXS.c -o
TestXS_la-TestXS.o >/dev/null 2>&1
mv -f .deps/TestXS_la-TestXS.Tpo .deps/TestXS_la-TestXS.Plo
/bin/sh ./libtool --tag=CC --mode=link cc -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
"-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE" -no-undefined
-L/usr/lib/perl5/5.24.0/x86_64-linux/CORE -lperl -avoid-version
-module -Wl,-E -o TestXS.la -rpath /usr/lib/texinfo
TestXS_la-TestXS.lo
libtool​: link​: cc -shared -fPIC -DPIC .libs/TestXS_la-TestXS.o
-L/usr/lib/perl5/5.24.0/x86_64-linux/CORE -lperl
-fstack-protector-strong -Wl,-E -Wl,-soname -Wl,TestXS.so -o
.libs/TestXS.so
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(op.o)​: relocation
R_X86_64_32S against symbol `PL_opargs' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perl.o)​: relocation
R_X86_64_32 against `.text' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(gv.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(toke.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perly.o)​: relocation
R_X86_64_32S against `.rodata' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pad.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(regcomp.o)​:
relocation R_X86_64_32S against symbol `PL_utf8skip' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(dump.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(util.o)​: relocation
R_X86_64_32S against symbol `PL_fold' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mg.o)​: relocation
R_X86_64_32 against `.text' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mro_core.o)​:
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(keywords.o)​:
relocation R_X86_64_32S against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(hv.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(av.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_hot.o)​:
relocation R_X86_64_32 against undefined symbol `PL_sv_undef' can not
be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(sv.o)​: relocation
R_X86_64_32S against undefined symbol `PL_sv_undef' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(scope.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_ctl.o)​:
relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_sys.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(doop.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(doio.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(regexec.o)​:
relocation R_X86_64_32S against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(utf8.o)​: relocation
R_X86_64_32S against symbol `PL_charclass' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(taint.o)​: relocation
R_X86_64_32 against symbol `PL_no_security' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(deb.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(universal.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perlio.o)​:
relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(numeric.o)​:
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mathoms.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(locale.o)​:
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_pack.o)​:
relocation R_X86_64_32S against symbol `PL_uuemap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_sort.o)​:
relocation R_X86_64_32 against `.text' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(caretx.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(dquote.o)​:
relocation R_X86_64_32S against symbol `PL_charclass' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(time64.o)​:
relocation R_X86_64_32S against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld​:
final link failed​: Nonrepresentable section on output
collect2​: error​: ld returned 1 exit status
make​: *** [Makefile​:916​: TestXS.la] Error 1
checking whether we can build Perl extension (XS) modules... no
checking for prove... prove
checking parser tests requirements... no

Perl Info

Flags:
    category=core
    severity=medium

Site configuration information for perl 5.24.0:

Configured by daniel at Sat Sep 24 12:22:49 PDT 2016.

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

  Platform:
    osname=linux, osvers=4.5.2, archname=x86_64-linux
    uname='linux frobnitz 4.5.2 #1 smp fri apr 29 08:43:46 pdt 2016
x86_64 gnulinux '
    config_args='-de -Dprefix=/usr -Dsiteprefix=/usr/local
-Dvendorprefix=/usr -Dinc_version_list=none -Dmksymlinks'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include'
    ccversion='', gccversion='6.2.0', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8,
byteorder=12345678, doublekind=3
    d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=16, longdblkind=3
    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-strong -L/usr/local/lib'
    libpth=/usr/local/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/include-fixed /usr/lib
/lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64
/usr/local/lib64
    libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.24.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.24'
  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-strong'



@INC for perl 5.24.0:
    /usr/local/lib/perl5/site_perl/5.24.0/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.24.0
    /usr/lib/perl5/vendor_perl/5.24.0/x86_64-linux
    /usr/lib/perl5/vendor_perl/5.24.0
    /usr/lib/perl5/5.24.0/x86_64-linux
    /usr/lib/perl5/5.24.0
    .


Environment for perl 5.24.0:
    HOME=/home/daniel
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/bin:/usr/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Dec 31, 2016

From @jkeenan

On Sun, 25 Sep 2016 20​:47​:45 GMT, dschepler@​gmail.com wrote​:

This is a bug report for perl from dschepler@​gmail.com,
generated with the help of perlbug 1.40 running under perl 5.24.0.

-----------------------------------------------------------------
[Please describe your issue here]

For example, when subsequently configuring texinfo, I got these errors
under tp/Texinfo/Convert/XSParagraph​:

/bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
"-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE" -MT TestXS_la-TestXS.lo
-MD -MP -MF .deps/TestXS_la-TestXS.Tpo -c -o TestXS_la-TestXS.lo `test
-f 'TestXS.c' || echo
'../../../../../tp/Texinfo/Convert/XSParagraph/'`TestXS.c
libtool​: compile​: cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE -MT TestXS_la-TestXS.lo -MD
-MP -MF .deps/TestXS_la-TestXS.Tpo -c
../../../../../tp/Texinfo/Convert/XSParagraph/TestXS.c -fPIC -DPIC -o
.libs/TestXS_la-TestXS.o
libtool​: compile​: cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE -MT TestXS_la-TestXS.lo -MD
-MP -MF .deps/TestXS_la-TestXS.Tpo -c
../../../../../tp/Texinfo/Convert/XSParagraph/TestXS.c -o
TestXS_la-TestXS.o >/dev/null 2>&1
mv -f .deps/TestXS_la-TestXS.Tpo .deps/TestXS_la-TestXS.Plo
/bin/sh ./libtool --tag=CC --mode=link cc -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
"-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE" -no-undefined
-L/usr/lib/perl5/5.24.0/x86_64-linux/CORE -lperl -avoid-version
-module -Wl,-E -o TestXS.la -rpath /usr/lib/texinfo
TestXS_la-TestXS.lo
libtool​: link​: cc -shared -fPIC -DPIC .libs/TestXS_la-TestXS.o
-L/usr/lib/perl5/5.24.0/x86_64-linux/CORE -lperl
-fstack-protector-strong -Wl,-E -Wl,-soname -Wl,TestXS.so -o
.libs/TestXS.so
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(op.o)​: relocation
R_X86_64_32S against symbol `PL_opargs' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perl.o)​: relocation
R_X86_64_32 against `.text' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(gv.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(toke.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perly.o)​: relocation
R_X86_64_32S against `.rodata' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pad.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(regcomp.o)​:
relocation R_X86_64_32S against symbol `PL_utf8skip' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(dump.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(util.o)​: relocation
R_X86_64_32S against symbol `PL_fold' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mg.o)​: relocation
R_X86_64_32 against `.text' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mro_core.o)​:
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(keywords.o)​:
relocation R_X86_64_32S against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(hv.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(av.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_hot.o)​:
relocation R_X86_64_32 against undefined symbol `PL_sv_undef' can not
be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(sv.o)​: relocation
R_X86_64_32S against undefined symbol `PL_sv_undef' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(scope.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_ctl.o)​:
relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_sys.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(doop.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(doio.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(regexec.o)​:
relocation R_X86_64_32S against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(utf8.o)​: relocation
R_X86_64_32S against symbol `PL_charclass' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(taint.o)​: relocation
R_X86_64_32 against symbol `PL_no_security' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(deb.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(universal.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perlio.o)​:
relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(numeric.o)​:
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mathoms.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(locale.o)​:
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_pack.o)​:
relocation R_X86_64_32S against symbol `PL_uuemap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_sort.o)​:
relocation R_X86_64_32 against `.text' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(caretx.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(dquote.o)​:
relocation R_X86_64_32S against symbol `PL_charclass' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(time64.o)​:
relocation R_X86_64_32S against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-
gnu/bin/ld​:
final link failed​: Nonrepresentable section on output
collect2​: error​: ld returned 1 exit status
make​: *** [Makefile​:916​: TestXS.la] Error 1
checking whether we can build Perl extension (XS) modules... no
checking for prove... prove
checking parser tests requirements... no

I don't see much evidence of a bug in perl here. You are experiencing some kind of failure when using 'libtool'. That tool is not part of the Perl 5 core distribution and so is outside our scope. Can you provide an example of this problem outside of 'libtool'?

I would recommend first trying to understand all the output like this​:

#####
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
#####

Whatever that is, it's not perl.

Thank you very much.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Dec 31, 2016

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Dec 31, 2016

From @Leont

On Sun, Sep 25, 2016 at 10​:47 PM, Daniel Schepler <perlbug-followup@​perl.org

wrote​:

For example, when subsequently configuring texinfo, I got these errors
under tp/Texinfo/Convert/XSParagraph​:

/bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
"-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE" -MT TestXS_la-TestXS.lo
-MD -MP -MF .deps/TestXS_la-TestXS.Tpo -c -o TestXS_la-TestXS.lo `test
-f 'TestXS.c' || echo
'../../../../../tp/Texinfo/Convert/XSParagraph/'`TestXS.c
libtool​: compile​: cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE -MT TestXS_la-TestXS.lo -MD
-MP -MF .deps/TestXS_la-TestXS.Tpo -c
../../../../../tp/Texinfo/Convert/XSParagraph/TestXS.c -fPIC -DPIC -o
.libs/TestXS_la-TestXS.o
libtool​: compile​: cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE -MT TestXS_la-TestXS.lo -MD
-MP -MF .deps/TestXS_la-TestXS.Tpo -c
../../../../../tp/Texinfo/Convert/XSParagraph/TestXS.c -o
TestXS_la-TestXS.o >/dev/null 2>&1
mv -f .deps/TestXS_la-TestXS.Tpo .deps/TestXS_la-TestXS.Plo
/bin/sh ./libtool --tag=CC --mode=link cc -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
"-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE" -no-undefined
-L/usr/lib/perl5/5.24.0/x86_64-linux/CORE -lperl -avoid-version
-module -Wl,-E -o TestXS.la -rpath /usr/lib/texinfo
TestXS_la-TestXS.lo
libtool​: link​: cc -shared -fPIC -DPIC .libs/TestXS_la-TestXS.o
-L/usr/lib/perl5/5.24.0/x86_64-linux/CORE -lperl
-fstack-protector-strong -Wl,-E -Wl,-soname -Wl,TestXS.so -o
.libs/TestXS.so
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(op.o)​: relocation
R_X86_64_32S against symbol `PL_opargs' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perl.o)​: relocation
R_X86_64_32 against `.text' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(gv.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(toke.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perly.o)​: relocation
R_X86_64_32S against `.rodata' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pad.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(regcomp.o)​:
relocation R_X86_64_32S against symbol `PL_utf8skip' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(dump.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(util.o)​: relocation
R_X86_64_32S against symbol `PL_fold' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mg.o)​: relocation
R_X86_64_32 against `.text' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mro_core.o)​:
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(keywords.o)​:
relocation R_X86_64_32S against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(hv.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(av.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_hot.o)​:
relocation R_X86_64_32 against undefined symbol `PL_sv_undef' can not
be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(sv.o)​: relocation
R_X86_64_32S against undefined symbol `PL_sv_undef' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(scope.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_ctl.o)​:
relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_sys.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(doop.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(doio.o)​: relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(regexec.o)​:
relocation R_X86_64_32S against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(utf8.o)​: relocation
R_X86_64_32S against symbol `PL_charclass' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(taint.o)​: relocation
R_X86_64_32 against symbol `PL_no_security' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(deb.o)​: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(universal.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perlio.o)​:
relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(numeric.o)​:
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mathoms.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(locale.o)​:
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_pack.o)​:
relocation R_X86_64_32S against symbol `PL_uuemap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_sort.o)​:
relocation R_X86_64_32 against `.text' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(caretx.o)​:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(dquote.o)​:
relocation R_X86_64_32S against symbol `PL_charclass' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(time64.o)​:
relocation R_X86_64_32S against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-
pc-linux-gnu/bin/ld​:
final link failed​: Nonrepresentable section on output
collect2​: error​: ld returned 1 exit status
make​: *** [Makefile​:916​: TestXS.la] Error 1
checking whether we can build Perl extension (XS) modules... no
checking for prove... prove
checking parser tests requirements... no

If you want to use libperl in a shared library, you need to compile your
libperl as a shared library, this can be done by adding -Duseshrplib to
your Configure arguments.

Leon

@p5pRT
Copy link
Author

p5pRT commented Dec 31, 2016

@Leont - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant