Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1

From: Claudio Cicognani <braintech(at)btstore(dot)com>
To: PostgreSQL Interfaces <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
Date: 1999-09-08 11:44:55
Message-ID: 37D64C37.E2CC8A59@btstore.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hallo,

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
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep'

/usr/lib/libpq++.so: undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03RepPv'

/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 the "rpm -ba" result
file.

Some helps ?
Thanks in advance.

Claudio Cicognani
braintech(at)btstore(dot)com

Attachment Content-Type Size
postgresql-6.5.1.spec text/plain 14.5 KB
build_result.gz application/x-gzip 18.9 KB
braintech.vcf text/x-vcard 206 bytes

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jeff MacDonald 1999-09-08 13:19:03 Re: [INTERFACES] Message-id: <37d5c912.1673.0@chariot.net.au>
Previous Message Peter Mount 1999-09-08 07:27:36 RE: [INTERFACES] Jbuilder JDBC Explorer and Postgres