pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: Claudio Cicognani <braintech@btstore.com>
To: Lamar Owen <lamar.owen@wgcr.org>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
Date: Thu, 02 Sep 1999 14:21:59 +0000
Message-ID: <37CE8807.6A21E6B9@alumni.caltech.edu> (raw)
References: <37CE5D26.462CABA1@btstore.com>

> 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_string3ZcZt18...'
>  /usr/lib/libpq++.so: undefined reference to `__eh_pc' collect2: ld
>  returned 1 exit status
> Some helps ?

Ah, this looks familiar! I built the rpms using the RH5.2 gcc/g++
compiler. RH6.0 has the egcs compiler set; you are seeing the
"mangled" name of a routine required by the older library I built
which is not present in the newer support libraries.

I believe that the only fix is to rebuild the rpms from source on your
machine, so that libpq++ is constructed using your newer compiler. It
is pretty easy; just get the src rpm from postgresql.org and then use
either

  rpm --rebuild postgresql-6.5.1-2.src.rpm

or

  rpm -ivv postgresql-6.5.1-2.src.rpm
  cd /usr/src/redhat/SPECS
  rpm -ba postgresql-6.5.1.spec

Another possibility is to pick up Lamar Owen's binary rpms (look at
the hackers or ports archive for details); I think he had a RH6.0
machine to build with.

btw, I'm just now transferring new rpms to postgresql.org which fix
some reported problems for missing files in the libpq++ interface
(Lamar, we will need to sync our spec files again). The new files are
labeled postgresql*-6.5.1-2.*.rpm.

Good luck.

                         - Thomas

-- 
Thomas Lockhart				lockhart@alumni.caltech.edu
South Pasadena, California



view thread (7+ messages)  latest in thread

Message-ID: <37CE8807.6A21E6B9@alumni.caltech.edu>
Permalink:  ../37CE8807.6A21E6B9@alumni.caltech.edu/
Also on:    postgresql.org/message-id/37CE8807.6A21E6B9@alumni.caltech.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: lockhart@alumni.caltech.edu, braintech@btstore.com, lamar.owen@wgcr.org
  Subject: Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
  In-Reply-To: <37CE8807.6A21E6B9@alumni.caltech.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox