Compilation --with-python fails on Solaris 8

Started by Arcady Genkinalmost 25 years ago3 messagesbugs
Jump to latest
#1Arcady Genkin
a.genkin@utoronto.ca

Trying to compile 7.1.1 on the system:

g9genarc@eddie:~$ uname -a
SunOS eddie 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-Enterprise
g9genarc@eddie:~$ gcc -v
Reading specs from /local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs
gcc version 2.95.2 19991024 (release)
g9genarc@eddie:~$ python -V
Python 2.1

with the following options to ./configure:

env CFLAGS='-O2 -pipe' ./configure --prefix=/opt/pgsql \
--with-perl --with-python --with-CXX

the compilation fails while compiling the Python interface with the
following (very long) error message:

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Arcady Genkin (#1)
Re: Compilation --with-python fails on Solaris 8

Arcady Genkin writes:

Trying to compile 7.1.1 on the system:

the compilation fails while compiling the Python interface with the
following (very long) error message:

Edit src/Makefile.global and remove -lbind from the LIBS variable. If
this works, please try to rebuild everything with this new configuration
so we can be sure it doesn't break anything else.

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

#3Arcady Genkin
a.genkin@utoronto.ca
In reply to: Peter Eisentraut (#2)
Re: Compilation --with-python fails on Solaris 8

Peter Eisentraut <peter_e@gmx.net> writes:

Arcady Genkin writes:

Trying to compile 7.1.1 on the system:

the compilation fails while compiling the Python interface with the
following (very long) error message:

Edit src/Makefile.global and remove -lbind from the LIBS variable. If
this works, please try to rebuild everything with this new configuration
so we can be sure it doesn't break anything else.

Thanks, that did it. I thought that the problem was with trying to
link to both bind and resolv libraries.

I confirm that with -lbind removed from LIBS (as above) postgres
compiles successfully with the following configuration:

env CFLAGS='-O2 -pipe' ./configure --prefix=/opt/pgsql \
--with-perl --with-python --with-CXX

Thanks again,
--
Arcady Genkin
i=1; while 1, hilb(i); i=i+1; end