error compiling 7.3.2 on solaris 8- library conflict

From: "Richard Sand" <rsand(at)vgalleries(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: error compiling 7.3.2 on solaris 8- library conflict
Date: 2003-02-25 11:18:20
Message-ID: 02c301c2dcbf$9d80bf80$4101a8c0@tripodtechnologygroup.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I have a newly installed Solaris 8 Sparc. To install Postgresql 7.3.2, I
installed a variety of gnu tools, including gcc 3.2.2, make 3.8, and
readline 4.2. I installed the last after my first attempt at "configure"
said that it couldn't find it. Then, when I installed it and made certain
that the include and libpaths were part of the configure, it still refused
to find readline. In the configure.log file, it appears as if it does in
fact find readline but there is some sort of conflict:

configure:5837: gcc -o
conftest -I/usr/local/include -I/usr/local/include -L/usr/local/lib -L/us
r/local/lib
conftest.c -lreadline -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm >&5
ld: fatal: symbol `__dso_handle' is multiply-defined:
(file /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/crtbegin.o
and file /usr/local/lib/libreadline.so);
ld: fatal: symbol `_init' is multiply-defined:
(file /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/crti.o and
file /usr/local/lib/libreadline.so);
ld: fatal: symbol `_start' is multiply-defined:
(file /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/crt1.o and
file /usr/local/lib/libreadline.so);
ld: fatal: symbol `_fini' is multiply-defined:
(file /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/crti.o and
file /usr/local/lib/libreadline.so);
ld: fatal: symbol `_lib_version' is multiply-defined:
(file /usr/ccs/lib/values-Xa.o and file
/usr/local/lib/libreadline.so);
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status

Can someone explain what has happened here? Is it a problem with the gcc
3.2.2 compiler? Should I be using the older 2.95 version (the other gcc
option I found on the gnu-sun freeware archive).

Thanks for any help!

Best regards,

Richard

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Cave-Ayland 2003-02-25 11:22:36 Join query crashes 7.3.1 backend...
Previous Message Peter Gibbs 2003-02-25 10:15:03 Re: how to detect psql's errors?