Re: 7.1.3 configure failure on Solaris 2.6 - Mailing list pgsql-ports

From Tom Lane
Subject Re: 7.1.3 configure failure on Solaris 2.6
Date
Msg-id 15753.1006814907@sss.pgh.pa.us
Whole thread Raw
In response to 7.1.3 configure failure on Solaris 2.6  ("David De Graff" <postgresql@awarehouse.com>)
List pgsql-ports
"David De Graff" <postgresql@awarehouse.com> writes:
> I'm trying to build 7.1.3 on Solaris 2.6 with gcc 2.95.3. The process is fa=
> iling when configure tries to run a test program.

configure:6797: checking test program
configure:6806: gcc -o conftest      conftest.c -lz -lresolv -lgen -lnsl -lsocket -ldl -lm -lreadline -ltermcap  1>&5
configure: failed program was:
#line 6802 "configure"
#include "confdefs.h"
int main() { return 0; }

Hmm, that's not very helpful.  On some systems it seems that configure's
habit of redirecting stdout and stderr with wild abandon causes useful
error messages to end up in the bit bucket.  Try doing it by hand to see
what error you get, ie,

$ cat conftest.c
int main() { return 0; }
$  gcc -o conftest      conftest.c -lz -lresolv -lgen -lnsl -lsocket -ldl -lm -lreadline -ltermcap

If that seems to work try
$ ./conftest
$ echo $?

            regards, tom lane

pgsql-ports by date:

Previous
From: Roberto Fichera
Date:
Subject: Re: [HACKERS] PostGreSQL 7.1.3 & SCO OpenServer 5.0.6 problems
Next
From: Tom Lane
Date:
Subject: Re: 7.1.3 configure failure on Solaris 2.6