8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio 11

From: Andreas Lange <anlan(at)ida(dot)liu(dot)se>
To: pgsql-bugs(at)postgresql(dot)org
Subject: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio 11
Date: 2006-11-03 13:36:26
Message-ID: 454B45DA.7020404@ida.liu.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

I have problems building 8.2beta2 on a Solaris 10 x86-64 machine:

gmake[4]: Entering directory
`/files/dsk1/lsw/src/postgresql/postgresql-8.2beta2/src/backend/utils/adt'
/sw/sun-studio-11/SUNWspro/bin/cc -Xa -fast -fns=no -fsimple=1
-xtarget=opteron -xarch=amd64a -I../../../../src/include -c -o float.o
float.c
"float.c", line 113: identifier redeclared: cbrt
current : static function(double) returning double
previous: function(double) returning double :
"/usr/include/iso/math_c99.h", line 126
cc: acomp failed for float.c
gmake[4]: *** [float.o] Error 2

This is the code in question:

#ifndef HAVE_CBRT
static double cbrt(double x);
#endif /* HAVE_CBRT */

And here is from configure:

checking whether gettimeofday takes only one argument... no
checking for cbrt... no
checking for dlopen... yes

8.1.5 configured and built (with slock backported) on the same machine
finds cbrt and passes the 'gmake check' just fine.

Is this a known error or due to some intentional change that I've missed?

Regards,
Andreas

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2006-11-03 14:06:54 Re: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio 11
Previous Message Jorge Godoy 2006-11-03 13:29:05 Re: Sugestion for PostgreSQL Developer´s