From Kurt.Hornik@ci.tuwien.ac.at  Mon Jul  9 21:23:57 2001
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Mon, 9 Jul 2001 22:23:57 +0200
Subject: [Rd] Re: Re: [R] How to build R-1.3.0 under HP-UX  11.00
In-Reply-To: <OF8EAB7863.D7FAD9F7-ONC1256A84.004CD7EE@netia.pl>
References: <OF8EAB7863.D7FAD9F7-ONC1256A84.004CD7EE@netia.pl>
Message-ID: <15178.4829.208468.904765@mithrandir.hornik.net>

>>>>> Krzysztof Kopera writes:

> Sorry, but my mail program add "ODP" instead "Re" to subject of my
> previous letter.  My last problem is solved but I have new, serious
> problem with making internet module (under src/modules/internet),
> below is output after "make":

>         gcc -shared -fPIC  -o internet.sl  Rsock.o internet.o nanoftp.o
> nanohttp.o sock.o sockconn.o
> /usr/bin/ld: DP relative code in file Rsock.o - shared library must be
> position
>     independent.  Use +z or +Z to recompile.
> collect2: ld returned 1 exit status

> Can you help me? Maybe anyone have experience in building R under
> HP-UX 11.00 or other HP-UX.

Maybe I am getting paranoid or it is too late at night but something
looks awfully wrong ... all modules should compile using PIC.  

This should really be done using .lo in the OBJECTS.  However, for
reasons I cannot remember the GUI modules which have been around for
some time use .o instead.  They get PIC, though, by

  ALL_CFLAGS = $(R_XTRA_CFLAGS) $(CPICFLAGS) $(SHLIB_CFLAGS) $(CFLAGS)

The modules added in 1.3.0 do not do this, which I think is wrong.

I'll be gone for a workshop for the next two days, and will look into
this on Thu.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Re: Re: [R] How to build R-1.3.0 under HP-UX 11.00
Kurt Hornik