Thread: Installing on SCO OpenServer 3.2v5.0.5

Installing on SCO OpenServer 3.2v5.0.5

From
Marco Otilio Peña Diaz
Date:
 Hi
 
 I'm trying to compile Postgresql 7.1 on my Unix box and i'm getting some errors
 
I have SCO Open Server Dev. System ver 5.1.1A, GNU Make ver 3.78.1 and GNU Gcc 2.95.2 pl1.
 
If i try to run configure i get this error:
 
configure: error: installation or configuration problem: C compiler cannot create executables.
 
(adjunted config1.log)
 
------------------ o ------------------
 
then if I change line CC="$CC -b elf" on file src/template/sco to CC="$CC" (i don't have cross-compilers) i get error:
 
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.
 
(adjunted config2.log)
 
--------------- o ----------------
 
i'm developing solutions accesing data in Unix from Win clients
and i'm interested in use postgresql (under SCO OpenServer and/or Linux - maybe RedHat) with ODBC (any help will be appreciated)
 
 Any suggestion?
 
   Thanks in advance...
 
Carpe Diem
   Marco Otilio Peña Diaz
 
Attachment

Re: Installing on SCO OpenServer 3.2v5.0.5

From
Peter Eisentraut
Date:
Marco Otilio Peña Diaz writes:

> configure: error: installation or configuration problem: C compiler cannot
> create executables.

This is because PostgreSQL is set up to use the SCO compiler suite, not
GCC.  Please try the attached patch; it will allow GCC and also give you
shared library support.  (Note that I'm completely making this up from the
SCO man pages.)  If you have the SCO compiler available, please also try
that, and while you're at it run the regression tests so we can mark your
platform as supported.

> 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.

Can't tell from the config.log.  Please try this by hand:

echo "int main() { return 0; }" > conftest.c
gcc -o conftest      conftest.c -lPW -lgen -lld -lnsl -lsocket -ldl -lm
./conftest

If there are problems, try removing some of the libraries (-lxxx) from the
compilation command.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

Attachment