Alvaro Herrera wrote:
Andreas Lange 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
configure:13525: $? = 1
configure: failed program was:
    

Huh, long shot: maybe cbrt is a macro on that platform?

Can you find where and how is cbrt declared and defined on your system
headers?

  
I don't think that is the issue since 8.1.5 works with the same env/configure arguments. I began to suspect that I was chasing the symptoms and not the cause, making me diff the conftest from 8.1.5 and 8.2b2:

--- conftest.cbrt_8_1.c fre nov  3 16:14:40 2006
+++ conftest.cbrt_8_2.c fre nov  3 16:12:05 2006
@@ -2,20 +2,15 @@

 #define PACKAGE_NAME "PostgreSQL"
 #define PACKAGE_TARNAME "postgresql"
-#define PACKAGE_VERSION "8.1.5"
-#define PACKAGE_STRING "PostgreSQL 8.1.5"
+#define PACKAGE_VERSION "8.2beta2"
+#define PACKAGE_STRING "PostgreSQL 8.2beta2"
 #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
-#define PG_VERSION "8.1.5"
+#define PG_VERSION "8.2beta2"
 #define DEF_PGPORT 5432
 #define DEF_PGPORT_STR "5432"
-#define PG_VERSION_STR "PostgreSQL 8.1.5 on i386-pc-solaris2.10, compiled by /sw/sun-studio-11/SUNWspro/bin/cc -Xa"
+#define PG_VERSION_STR "PostgreSQL 8.2beta2 on i386-pc-solaris2.10, compiled by /sw/sun-studio-11/SUNWspro/bin/cc -Xa"
 #define PG_KRB_SRVNAM "postgres"
-#define HAVE_LIBM 1
-#define HAVE_LIBDL 1
-#define HAVE_LIBNSL 1
-#define HAVE_LIBSOCKET 1
-#define HAVE_LIBGEN 1
-#define HAVE_LIBRESOLV 1
+#define PG_VERSION_NUM 80200
 #define HAVE_LIBZ 1
 #define HAVE_SPINLOCKS 1
 #define STDC_HEADERS 1
@@ -36,6 +31,7 @@
 #define HAVE_PWD_H 1
 #define HAVE_SYS_IPC_H 1
 #define HAVE_SYS_POLL_H 1
+#define HAVE_SYS_RESOURCE_H 1
 #define HAVE_SYS_SELECT_H 1
 #define HAVE_SYS_SEM_H 1
 #define HAVE_SYS_SOCKET_H 1
@@ -57,7 +53,6 @@
 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
 #define HAVE_STRUCT_ADDRINFO 1
 #define HAVE_STRUCT_OPTION 1
-#define HAVE_DECL_F_FULLFSYNC 0
 #define HAVE_INT_TIMEZONE
 #define ACCEPT_TYPE_RETURN int
 #define ACCEPT_TYPE_ARG1 int

Huh? No LIBM?

> cc conftest.cbrt_8_2.c
"conftest.cbrt_8_2.c", line 104: warning: statement not reached
Undefined                       first referenced
 symbol                             in file
cbrt                                conftest.cbrt_8_2.o
ld: fatal: Symbol referencing errors. No output written to a.out
> cc -lm conftest.cbrt_8_2.c
"conftest.cbrt_8_2.c", line 104: warning: statement not reached
>

So, it seems I need '-lm', but that is no longer tested in configure.


   //Andreas


Reply via email to