Thread: Compilation --with-python fails on Solaris 8

Compilation --with-python fails on Solaris 8

From
Arcady Genkin
Date:
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:


Many thanks,
--
Arcady Genkin

Attachment

Re: Compilation --with-python fails on Solaris 8

From
Peter Eisentraut
Date:
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

Re: Compilation --with-python fails on Solaris 8

From
Arcady Genkin
Date:
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