Thread: Errors compiling 7.0.3 on Solaris 7
Hi: I've been trying in vain for over 5 hours now to compile PostgreSQL 7.0.3 on Solaris 7 (2.7). I keep getting the following error: 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 make[2]: Leaving directory `/usr/share/src/postgresql-7.0.3/src/interfaces/libpq++' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/share/src/postgresql-7.0.3/src/interfaces' make: *** [all] Error 2 I have: gcc 2.95.2 gmake 3.78.1 readline 4.1 Flex 2.5.4 Bison 1.28 I have also set LD_RUN_PATH=/usr/local/pgsql/lib I have to have this running within 10 hours... Someone PLEASE, PLEASE HELP!!!! Regards Gareth Cantrell
On Wed, Jan 17, 2001 at 20:49:13 +0200, Gareth Cantrell wrote: > 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 > gcc 2.95.2 I'm not a Solaris expert, but this may indicate that the format of the object files that gcc produces is not understood by the Solaris linker. Perhaps gcc was compiled to expect GNU ld? You may want to try compiling with Solaris' cc or installing GNU binutils as well and linking with GNU ld. HTH, Ray -- "a infinite number of monkeys typing into GNU emacs would never make a good program" .../linux/Documentation/CodingStyle
Gareth Cantrell <gareth@citec.net> writes: > I've been trying in vain for over 5 hours now to compile > PostgreSQL 7.0.3 on Solaris 7 (2.7). > I keep getting the following error: > 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 Kinda looks like your linker does not like the output format of g++. Unless you're really intent on using libpq++, I'd suggest just dropping that library from the build, by configuring --without-CXX. regards, tom lane
El Mié 17 Ene 2001 15:49, Gareth Cantrell escribió: > Hi: > > I've been trying in vain for over 5 hours now to compile > PostgreSQL 7.0.3 on Solaris 7 (2.7). > > I keep getting the following error: > > 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 > make[2]: Leaving directory > `/usr/share/src/postgresql-7.0.3/src/interfaces/libpq++' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/usr/share/src/postgresql-7.0.3/src/interfaces' > make: *** [all] Error 2 > > I have: > gcc 2.95.2 > gmake 3.78.1 > readline 4.1 > Flex 2.5.4 > Bison 1.28 I'm not sure if this is the correct answer, but, at this moment I'm installing gcc (compiling with shared), postgres-7.1-beta1, apache, php, etc. and for what my last 2 days of experience say, use the Solaris make and binutils. They should be in /usr/ccs, if they are installed. If you have them, just change your environment variables PATH and LD_LIBRARY_PATH. > I have also set LD_RUN_PATH=/usr/local/pgsql/lib > > I have to have this running within 10 hours... > Someone PLEASE, PLEASE HELP!!!! Saludos... :-) -- System Administration: It's a dirty job, but someone told I had to do it. ----------------------------------------------------------------- Martín Marqués email: martin@math.unl.edu.ar Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------