Re: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio - Mailing list pgsql-bugs

From Andreas Lange
Subject Re: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio
Date
Msg-id 454B6797.5030900@ida.liu.se
Whole thread Raw
In response to Re: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Andreas Lange
Date:
Subject: Re: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio
Next
From: Tom Lane
Date:
Subject: Re: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio