Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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


  • From: Andreas Lange <anlan(at)ida(dot)liu(dot)se>
  • To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org
  • Subject: Re: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio
  • Date: Fri, 03 Nov 2006 17:00:23 +0100
  • Message-id: <454B6797(dot)5030900(at)ida(dot)liu(dot)se>

Tom Lane wrote:
configure:13462: checking for cbrt
configure:13519: /sw/sun-studio-11/SUNWspro/bin/cc -Xa -o conftest -fast
-fns=no -fsimple=1 -xtarget=opteron -xarch=amd64a     conftest.c -lz
-lrt -lsocket  >&5
"conftest.c", line 104: warning: statement not reached
Undefined                       first referenced
 symbol                             in file
cbrt                                conftest.o
ld: fatal: Symbol referencing errors. No output written to conftest
    

Presumably the problem is that the cc call lacks "-lm".
  
Indeed. Just took me a bit longer to get that. :-)
Checking back against 8.1, I see that 8.1's configure has

	AC_CHECK_LIB(m, main)

where 8.2 tries to do

	AC_SEARCH_LIBS(pow, m)

I suppose there is something funny about pow() on your platform
causing that probe to fail.  What does config.log have at the
"checking for library containing pow" step?
  
configure:5168: checking for library containing pow
configure:5198: /sw/sun-studio-11/SUNWspro/bin/cc -Xa -o conftest -fast -fns=no -fsimple=1 -xtarget=opteron -xarch=amd64a     conftest.c  >&5
configure:5204: $? = 0
configure:5208: test -z
             || test ! -s conftest.err
configure:5211: $? = 0
configure:5214: test -s conftest
configure:5217: $? = 0
configure:5287: result: none required


  regards,
     Andreas Lange


Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group