Re: 0.65/AIX

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: 0.65/AIX
From: Thomas Vogels (tov@infiniti.ece.cmu.edu)
Date: Tue 13 Jul 1999 - 23:07:51 EST


Message-Id: <199907131307.JAA29236@infiniti.ece.cmu.edu>

"Martin" == Martin Maechler <maechler@stat.math.ethz.ch> writes:

KH> Martin: With the recent change of adding -D_XOPEN_SOURCE_EXTENDED I
KH> cannot get artihmetic.c to compile---it dies because of undefined
KH> acosh etc.

Martin> Compilation dies ??

../../../src/main/arithmetic.c: In function `do_math1':
../../../src/main/arithmetic.c:868: `acosh' undeclared (first use in this function)

KH> Is this specific of the system that I have access to?

Martin> The AIX system I have acess to {uname -a ==> AIX percol 2 4 000333104600}
Martin> is fine here..

Uh, I'm afraid it's not the AIX version, it may be gcc vs. cc
Simply try (I compile in a separate build directory)
cc -E -I. -I../include -I../../../src/include -DHAVE_CONFIG_H -g -O2 \
-D_XOPEN_SOURCE_EXTENDED=1 ../../../src/main/arithmetic.c | grep \
acosh
which should return "extern double acosh(double);"

Three cases, two compilers on an AIX 4.2 box:

-U_XOPEN_SOURCE_EXTENDED - gcc (2.8.1) and cc ok
-D_XOPEN_SOURCE_EXTENDED=1 - gcc fails (no declaration of acosh), cc ok
-D_XOPEN_SOURCE_EXTENDED=2 - gcc and cc ok, both with warnings about
                                         redefining _XOPEN_SOURCE_EXTENDED

Sorry, but why do you need _XOPEN_SOURCE_EXTENDED to be defined? And
why does -D_XOPEN_SOURCE_EXTENDED=2 work, albeit noisely?

Thanks,
  -tom

--
mailto:tov@ece.cmu.edu (Tom Vogels)   Tel: (412) 268-6638   FAX: -3204

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:05 EST