Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Claudio Cicognani <braintech(at)btstore(dot)com>
Cc: PostgreSQL Interfaces <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
Date: 1999-09-08 15:31:27
Message-ID: 37D6814F.253A9E36@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> I received the following error when compiling C++ code (using -lpq++
> -lpq -lcrypt) with Postgres
> 6.5.1 (last RPM files) on Red Hat 6.0 (glibc 2) :
> /usr/lib/libpq++.so: undefined reference to
> ...
> /usr/lib/libpq++.so: undefined reference to `__eh_pc' collect2: ld
> returned 1 exit status
> As suggested by Thomas Lockhart, I have downloaded the last RPM
> source format from ftp.postgresql.org
> and try to rebuild the package (from root user) with:
> rpm --rebuild postgresql.6.5.1-2.src.rpm
> or with:
> rpm -ivv postgresql.6.5.1-2.src.rpm
> cd /usr/src/redhat/SPECS
> rpm -ba postgresql.6.5.1.spec
> The build process completed well, but where is the new binary RPM
> package ?
> (The default location is /usr/src/redhat/RPMS/i386, but is empty !!)
> PS. Attachment are the postgres "spec" file and part of the "rpm
> -ba" result file.

I did not find the result file in your attachments. Attached is a
snippet from the end of my "rpm --rebuild", and it shows things being
written to where you expect. Things do *not* get written if there were
errors in the build, and you might be running into that. Sometimes
those errors are hard to see, since rpm continues through that phase
of the build. Look for things like "File missing"...

You might try instead using the RedHat beta rpms from

ftp://rawhide.redhat.com/rawhide/i386/RedHat/RPMS

which are based on Lamar Owen's recent spec files.

Good luck.

- Thomas

Finding provides...
Finding requires...
ldd: warning: you do not have execution permission for
`/var/tmp/pgsql-root/usr/lib/libpgtcl.so.2.0'
Provides: libpgtcl.so.2.0
Prereqs: /sbin/ldconfig
Requires: tcl tk ld-linux.so.2 libX11.so.6 libc.so.6 libcrypt.so.1
libdl.so.2 libhistory.so.3 libm.so.6 libncurses.so.4 libnsl.so.1
libpgtcl.so.2.0 libpq.so.2.0 libreadline.so.3 libtcl8.0.so
libtermcap.so.2 libtk8.0.so /bin/sh
Wrote: /usr/src/redhat/RPMS/i386/postgresql-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-server-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-devel-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-jdbc-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-odbc-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-perl-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-python-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-tcl-6.5.1-2.i386.rpm
Executing: %clean
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd postgresql-6.5.1
+ rm -rf /var/tmp/pgsql-root
+ rm -f perlfiles.list
+ rm -rf howto
+ exit 0
Executing: --clean
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf postgresql-6.5.1
+ exit 0

--
Thomas Lockhart lockhart(at)alumni(dot)caltech(dot)edu
South Pasadena, California

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Claudio Cicognani 1999-09-08 16:06:17 Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
Previous Message Ross J. Reedstrom 1999-09-08 15:26:30 Re: [INTERFACES] PGACCESS formdemo.sql