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 part of the "rpm -ba" result file.
Some helps ?
Thanks in advance.
Claudio Cicognani
braintech@btstore.com