Re: 7.1.3 configure failure on Solaris 2.6

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: 7.1.3 configure failure on Solaris 2.6
Дата
Msg-id
15753.1006814907@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Re: 7.1.3 configure failure on Solaris 2.6 "David De Graff" <postgresql@awarehouse.com>
Re: 7.1.3 configure failure on Solaris 2.6 Tom Lane <tgl@sss.pgh.pa.us>
"David De Graff"  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 по дате отправления
От: Roberto Fichera
Дата:
От: Tom Lane
Дата:
FAQ