problem with postgresql-6.5.1-[1|2].i386.rpm

Поиск
Список
Период
Сортировка
Искать

problem with postgresql-6.5.1-[1|2].i386.rpm

От:
Piotr Klaban <makler@man.torun.pl>
Дата:
Hi, I see that there is postgres-6.5.2 available since Sep 15,
but there is not postgresql-6.5.2-1.i386.rpm ;-(

I have downloaded postgresql-6.5.1-[1|2]*, installed it, and
now I have a problem with compilation of my C++ file.
(by the way there is file called /usr/include/libpq.H
in a postgresql-devel - should not it be libpq.h?).

The problem is:
g++ -I/usr/local/include -I/usr/local/pgsql/include -I/usr/include/pgsql -g -Wall -DHAVE_CONFIG_H -o pg2xbase pg2xbase.cpp -lpq -lpq++ -lxbase -lcrypt
(...)
/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

I have the following packages installed on my redhat linux system:
egcs-g77-1.1.2-12
egcs-objc-1.1.2-12
egcs-1.1.2-12
egcs-c++-1.1.2-12
libstdc++-2.9.0-12

Redhat does not offer the new gcc-2.95.1 yet. :(
libstdc++/egcs-c++ include the library /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
that have the similar "clone..." defined, but this is not the same.
stdc++  has: T clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0_3Rep
while
libpq++ has: U clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep

What a configuration you are using to compile postgresql?

Best regards,

Piotr Klaban

Re: problem with postgresql-6.5.1-[1|2].i386.rpm

От:
Piotr Klaban <makler@man.torun.pl>
Дата:
On Tue, Sep 21, 1999 at 10:44:20AM +0200, Piotr Klaban wrote:
> Hi, I see that there is postgres-6.5.2 available since Sep 15,
> but there is not postgresql-6.5.2-1.i386.rpm ;-(
I have just installed postgresql-6.5.2-0.2lo for RedHat 6.0,
and there is no more problems like this:
> /usr/lib/libpq++.so: undefined reference to `clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep'
during the compilation of C++ programs.

Regards,

Piotr Klaban

FAQ