Re: 7.1.3 configure failure on Solaris 2.6

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David De Graff" <postgresql(at)awarehouse(dot)com>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: 7.1.3 configure failure on Solaris 2.6
Date: 2001-11-26 22:48:27
Message-ID: 15753.1006814907@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

"David De Graff" <postgresql(at)awarehouse(dot)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

In response to

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message David De Graff 2001-11-26 23:25:18 Re: 7.1.3 configure failure on Solaris 2.6
Previous Message David De Graff 2001-11-26 07:12:26 7.1.3 configure failure on Solaris 2.6