R-beta: compiling R under HP-UX

Friedrich Leisch Friedrich.Leisch at ci.tuwien.ac.at
Mon Jun 9 17:19:43 CEST 1997


Changing -Ae to -D_HPUX_SOURCE and compiling with c89 did the trick
... thanks!

Best,
Fritz


>>>>> On Mon, 9 Jun 1997 10:05:01 -0500 (CDT),
>>>>> Luke Tierney wrote:

> Friedrich Leisch wrote:
>> 
>> 
>> Hi,
>> 
>> I've trouble compiling R-0.49 (with both patches applied) on a
>> HP-UX sim B.10.20 A 9000/819 machine:
>> 
>> ranlib ../lib/libappl.a
>> cd regex; make
>> c89 -Ae -g -I../include -DPOSIX_MISTAKE -c regcomp.c
>> cc: warning 422: Unknown option "-Ae" ignored.
>> cc: "../include/regex.h", line 50: error 1000: Unexpected symbol: "regoff=
>> _t".
>> cc: "../include/regex.h", line 60: error 1000: Unexpected symbol: "regoff=
>> _t".
>> cc: "../include/regex.h", line 61: error 1000: Unexpected symbol: "rm_eo".
>> cc: "../include/regex.h", line 62: error 1000: Unexpected symbol: "}".
>> cc: "../include/regex.h", line 105: error 1000: Unexpected symbol: "regma=
>> tch_t".
>> cc: "../include/regex.h", line 61: warning 557: Missing declaration speci=
>> fiers, "int" assumed.
>> cc: "../include/regex.h", line 62: error 1573: Type of "regmatch_t" is un=
>> defined due to an illegal declaration.
>> *** Error exit code 1
>> 
>> Stop.
>> *** Error exit code 1
>> 
>> Stop.
>> *** Error exit code 1
>> 
>> Stop.
>> 
>> 
>> The PLATFORMS file names hpux with c89 as supported ... has anybopdy
>> successfully compiled R on a HP 9000?
>> 
>> Best,
>> Fritz
>> 
>> --=20
>> -------------------------------------------------------------------
>> Friedrich  Leisch                            =20
>> Institut f=FCr Statistik                      Tel: (+43 1) 58801 4541
>> Technische Universit=E4t Wien                 Fax: (+43 1)  504 14 98
>> Wiedner Hauptstra=DFe 8-10/1071      Friedrich.Leisch at ci.tuwien.ac.at
>> A-1040 Wien, Austria             http://www.ci.tuwien.ac.at/~leisch
>> PGP public key http://www.ci.tuwien.ac.at/~leisch/pgp.key
>> -------------------------------------------------------------------
>> 
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> 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
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> 

> I've compiled the original 0.49 without patches successfully under
> 9.05. We're in the process of moving to 10.20 and have one machine
> sort of working but I'm not sure how clean it is as a 10.2
> installation at this point, so a test run there may not be of use. The
> man page for cc on our 10.20 seems to suggest that -Ae works with both
> cc and c89 but empirically it seems to work only with cc.  You could try
> to change CC from c89 to cc, or change -Ae to -D_HPUX_SOURCE -- either
> makes the version of that file I have compile without errors. I'm not
> sure if there is a reason to prefer one over the other or if there is
> a better option still.


> -- 
> Luke Tierney
> University of Minnesota                      Phone:           612-625-7843
> School of Statistics                         Fax:             612-624-8868
> 206 Church Street                            email:      luke at stat.umn.edu
> Minneapolis, MN 55455 USA                    WWW:  http://www.stat.umn.edu
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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