Received: from localhost (IDENT:root@hectic-2.jpl.nasa.gov [128.149.68.204]) by hub.org (8.9.3/8.9.3) with ESMTP id KAA61122 for ; Thu, 2 Sep 1999 10:23:35 -0400 (EDT) (envelope-from lockhart@alumni.caltech.edu) Received: from alumni.caltech.edu (lockhart@localhost [127.0.0.1]) by localhost (8.8.7/8.8.7) with ESMTP id OAA09420; Thu, 2 Sep 1999 14:22:00 GMT Sender: lockhart@hub.org Message-ID: <37CE8807.6A21E6B9@alumni.caltech.edu> Date: Thu, 02 Sep 1999 14:21:59 +0000 From: Thomas Lockhart X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.36 i686) X-Accept-Language: en MIME-Version: 1.0 To: Claudio Cicognani , Lamar Owen CC: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 References: <37CE5D26.462CABA1@btstore.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > 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