Solaris compile problem

Karl DeBisschop <kdebisschop@h00a0cc3b7988.ne.mediaone.net>

From: Karl DeBisschop <kdebisschop@h00a0cc3b7988.ne.mediaone.net>
To: pgsql-bugs@postgresql.org
Date: 2000-06-06T01:09:07Z
Lists: pgsql-bugs
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name		:	Karl DeBisschop
Your email address	:	kdebisschop@alert.infoplease.com


System Configuration
---------------------
  Architecture (example: Intel Pentium)  	:	Sun E-450

  Operating System (example: Linux 2.0.26 ELF) 	:	Solaris 7

  PostgreSQL version (example: PostgreSQL-6.5.1):	postgresql-7.0.1

  Compiler used (example:  gcc 2.8.0)		:	gcc version egcs-2.91.66
							19990314 (egcs-1.1.2 release)



Please enter a FULL description of your problem:
------------------------------------------------

after `./configure --prefix-/opt/postgresql-7.0.1`
make bailed on libpq++

make[2]: Entering directory `/u/kdebisschop/postgresql-7.0.1/src/interfaces/libpq++'
ld -G -o libpq++.so.3.1 pgconnection.o pgdatabase.o pgtransdb.o pgcursordb.o pglobject.o  -L../../interfaces/libpq -lpq -ldl -lsocket -lresolv -lnsl -lm -lc
pgconnection.o: could not read symbols: Bad value
make[2]: *** [libpq++.so.3.1] Error 1

I don't use libpq++.so.3.1 so I just did:

cd /u/kdebisschop/postgresql-7.0.1/src/interfaces/libpq++
gcc -shared -G -o libpq++.so.3.1 pgconnection.o pgdatabase.o pgtransdb.o pgcursordb.o pglobject.o  -L../../interfaces/libpq -lpq -ldl -lsocket -lresolv -lnsl -lm -lc
cd ~/postgresql-7.0.1/src
make

and everything picked up fine (I have not yet run regression tests)

Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible: 
----------------------------------------------------------------------





If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------