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

Поиск
Список
Период
Сортировка
От Piotr Klaban
Тема problem with postgresql-6.5.1-[1|2].i386.rpm
Дата
Msg-id 19990921104420.F24626@man.torun.pl
обсуждение исходный текст
Ответы Re: problem with postgresql-6.5.1-[1|2].i386.rpm  (Piotr Klaban <makler@man.torun.pl>)
Список pgsql-ports
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


В списке pgsql-ports по дате отправления:

Предыдущее
От: Ryan Kirkpatrick
Дата:
Сообщение: Re: [PORTS] Linux/Alpha patches for Postgresql 6.5.2
Следующее
От: "Imreet Singh, Gurgaon"
Дата:
Сообщение: Help Required