| 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: | 2006-11-03 16:00:23 |
| Message-ID: | 454B6797.5030900@ida.liu.se |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-11-03 16:12:15 | Re: 8.2bet2 failed build on Solaris 10 / x86-64 / SUN Studio |
| Previous Message | Wagner Cipriano | 2006-11-03 15:38:25 | BUG #2734: Primary Key field duplicate value |