Subject: | Install error on x86-64 linux |
Date: | Mon, 19 Feb 2007 15:45:13 -0700 |
To: | bug-PGPLOT [...] rt.cpan.org |
From: | "Adam Ginsburg" <keflavich [...] gmail.com> |
CPAN installer gives this error message:
Writing Makefile for PGPLOT
cp PGPLOT.pm blib/lib/PGPLOT.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap
/usr/share/perl/5.8/ExtUtils/typemap -typemap typemap PGPLOT.xs >
PGPLOT.xsc && mv PGPLOT.xsc PGPLOT.c
Please specify prototyping behavior for PGPLOT.xs (see perlxs manual)
cc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.19\"
-DXS_VERSION=\"2.19\" -fPIC "-I/usr/lib/perl/5.8/CORE" PGPLOT.c
Running Mkbootstrap for PGPLOT ()
chmod 644 PGPLOT.bs
rm -f blib/arch/auto/PGPLOT/PGPLOT.so
cc -shared -L/usr/local/lib PGPLOT.o -o
blib/arch/auto/PGPLOT/PGPLOT.so \
-L/usr/X11R6/lib -L/usr/lib -lpgplot -lcpgplot -lX11
-L/usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../../../lib -L/usr/lib -lg2c
-lm -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3 -lgcc \
/usr/bin/ld: /usr/lib/libcpgplot.a(cpgarro.o): relocation
R_X86_64_PC32 against `pgarro_' can not be used when making a shared
object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/PGPLOT/PGPLOT.so] Error 1
so I tried manually installing, and got the same error even with cc -fPIC:
sudo cc -fPIC -shared -L/usr/local/lib PGPLOT.o -o
blib/arch/auto/PGPLOT/PGPLOT.so -L/usr/X11R6/lib
-L/usr/lib -lpgplot -lcpgplot -lX11
-L/usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../../../lib -L/usr/lib -lg2c
-lm -L/usr/lib/gcc/x86_64-linux-gnu/4.0.3 -lgcc
/usr/bin/ld: /usr/lib/libcpgplot.a(cpgarro.o): relocation
R_X86_64_PC32 against `pgarro_' can not be used when making a shared
object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
My details:
using PGPLOT-2.19
This is perl, v5.8.8 built for x86_64-linux-gnu-thread-multi
Linux 2.6.15-28-amd64-generic #1 SMP PREEMPT Thu Feb 1 15:53:41 UTC
2007 x86_64 GNU/Linux