dbTalk Databases Forums  

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

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio 11 in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andreas Lange
 
Posts: n/a

Default [BUGS] 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio 11 - 11-03-2006 , 08:02 AM






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





---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Reply With Quote
  #2  
Old   
Alvaro Herrera
 
Posts: n/a

Default Re: [BUGS] 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio 11 - 11-03-2006 , 08:08 AM






Andreas Lange wrote:

Quote:
And here is from configure:

checking whether gettimeofday takes only one argument... no
checking for cbrt... no
Undoubtely this is the problem. Can you show the relevant config.log
extract?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.