Обсуждение: Error building on SCO

Поиск
Список
Период
Сортировка

Error building on SCO

От
Sergio Pili
Дата:
Hi!

I nedd to compile it in SCO but the configure program abort.

Can you help me please?

Thank you!

Regards,

Sergio

------------------------------

OS version (from 'uname')
-------------------------
SCO Open Server 5.0.4
System = SCO_SV
Release = 3.2v5.0.4
KernelID = 97/05/07
Machine = Pentium Pro

gmake version
-------------
3.78.1

gcc version
-----------
2.95 19990728

Postgres version to install
---------------------------
7.2.1


---------------------


The output of configure is:

checking for sigsetjmp... yes
checking for optreset... no
checking test program... failed
configure: error:
*** Could not execute a simple test program.  This may be a problem
*** related to locating shared libraries.  Check the file 'config.log'
*** for the exact reason.

Last lines of configure log are:

configure:7358: checking for finite
configure:7367: gcc -o conftest -O2     conftest.c -lPW -lgen -lld -lnsl -lsocket -ldl -lm -lreadline -ltermcap  1>&5
configure:7382: checking for sigsetjmp
configure:7391: gcc -o conftest -O2     conftest.c -lPW -lgen -lld -lnsl -lsocket -ldl -lm -lreadline -ltermcap  1>&5
configure:7478: checking for optreset
configure:7490: gcc -o conftest -O2     conftest.c -lPW -lgen -lld -lnsl -lsocket -ldl -lm -lreadline -ltermcap  1>&5
Undefined            first referenced
 symbol                  in file
optreset                            /usr/tmp/ccf1KTPQ.o
conftest: fatal error: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 7483 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
extern int optreset; optreset = 1;
; return 0; }
configure:7516: checking test program
configure:7525: gcc -o conftest -O2     conftest.c -lPW -lgen -lld -lnsl -lsocket -ldl -lm -lreadline -ltermcap  1>&5
configure: failed program was:
#line 7521 "configure"
#include "confdefs.h"
int main() { return 0; }


Re: Error building on SCO

От
Peter Eisentraut
Дата:
Sergio Pili writes:

> I nedd to compile it in SCO but the configure program abort.

Since your system didn't produce any output for the failed test, I can
only guess.  Maybe you need to export LD_LIBRARY_PATH=/usr/local/lib to
allow it to find the readline libraries.  Otherwise, try to compile the
test program yourself (including all the libraries) and see what it does.

--
Peter Eisentraut   peter_e@gmx.net