Thread

  1. Compilation --with-python fails on Solaris 8

    Arcady Genkin <a.genkin@utoronto.ca> — 2001-05-25T20:54:11Z

    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:
    
    
  2. Re: Compilation --with-python fails on Solaris 8

    Peter Eisentraut <peter_e@gmx.net> — 2001-05-28T14:48:35Z

    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
    
    
    
  3. Re: Compilation --with-python fails on Solaris 8

    Arcady Genkin <a.genkin@utoronto.ca> — 2001-05-31T01:10:42Z

    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