[R] Compiling R on HP-UX: "DP relative code"

Thomas Hoffmann hoffmann at ehmgs2.et.tu-dresden.de
Wed Sep 13 10:19:59 CEST 2000


I tried to build R-1.1.1 on my HP-UX 10.20 box. For this I installed
gcc 2.95.2 and built g77 (version 2.95.2 19991024 (release)).

Making R runs to the point, where shared libs are linked. There it reports:

make[4]: Entering directory `/disk4/hoffmann/Work/rwork/src/library/ctest/src'
gcc -I../../../../include  -I/usr/local/include   -fPIC  -g -O2 -c 
../../../../../R-1.1.1/src/library/ctest/src/ansari.c -o ansari.o
gcc -I../../../../include  -I/usr/local/include   -fPIC  -g -O2 -c 
../../../../../R-1.1.1/src/library/ctest/src/fexact.c -o fexact.o
gcc -I../../../../include  -I/usr/local/include   -fPIC  -g -O2 -c 
../../../../../R-1.1.1/src/library/ctest/src/kendall.c -o kendall.o
gcc -I../../../../include  -I/usr/local/include   -fPIC  -g -O2 -c 
../../../../../R-1.1.1/src/library/ctest/src/ks.c -o ks.o
gcc -I../../../../include  -I/usr/local/include   -fPIC  -g -O2 -c 
../../../../../R-1.1.1/src/library/ctest/src/prho.c -o prho.o
gcc -I../../../../include  -I/usr/local/include   -fPIC  -g -O2 -c 
../../../../../R-1.1.1/src/library/ctest/src/swilk.c -o swilk.o
gcc -shared -fPIC  -o ctest.sl ansari.o fexact.o kendall.o ks.o prho.o swilk.o -L/usr/local/lib  -lg2c 
-lm -L/lib/pa1.1 -L/usr/lib/pa1.1 -u main -L/usr/local/qt/lib 
-L/opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2 -L/usr/ccs/bin -L/usr/ccs/lib -L/opt/gcc/lib -lm
/usr/ccs/bin/ld: DP relative code in file 
/opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/libg2c.a(close.o) - shared library must be position
    independent.  Use +z or +Z to recompile.
collect2: ld returned 1 exit status
make[4]: *** [ctest.sl] Error 1

The question seems to be: How can I build a position independent libg2c.a under HPUX?


=============================================================================
Thomas Hoffmann, Institut fuer Halbleiter- und Mikrosystemtechnik, TU Dresden 
E-mail: hoffmann at ehmgs2.et.tu-dresden.de
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list