Bug 18007 - undefined symbol: PQconnectionNeedsPassword
Summary: undefined symbol: PQconnectionNeedsPassword
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: postgresql-8.3eter (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 14:16 MSK by enp
Modified: 2008-12-26 13:31 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description enp 2008-11-26 14:16:00 MSK
# apt-get install postgresql-8.3eter-server postgresql-8.3eter postgresql-8.3eter-contrib

# service postgresql start
Starting postgresql service: Initializing database: [ DONE ]

[ DONE ]

# psql -U postgres
psql: symbol lookup error: psql: undefined symbol: PQconnectionNeedsPassword
Comment 1 Boris Savelev 2008-11-26 15:54:49 MSK
$ findsym PQconnectionNeedsPassword
/usr/lib/libpq.so: 00006030 T PQconnectionNeedsPassword
/usr/lib/libpq.so.5: 00006030 T PQconnectionNeedsPassword
$ rpm -qf /usr/lib/libpq.so.5
libpq5.1-8.3.5-alt1

а у Вас как?
Comment 2 enp 2008-11-26 19:38:12 MSK
(In reply to comment #1)
> $ findsym PQconnectionNeedsPassword
> /usr/lib/libpq.so: 00006030 T PQconnectionNeedsPassword
> /usr/lib/libpq.so.5: 00006030 T PQconnectionNeedsPassword
> $ rpm -qf /usr/lib/libpq.so.5
> libpq5.1-8.3.5-alt1
> 
> а у Вас как?

$ findsym PQconnectionNeedsPassword
$ rpm -qf /usr/lib/libpq.so.5
libpq5.2-8.2.6-alt1.2

Comment 3 enp 2008-11-26 19:41:29 MSK
# apt-get install libpq5.1
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libldap2.3 libsasl2
The following packages will be REMOVED:
  libpq5.2
The following NEW packages will be installed:
  libldap2.3 libpq5.1 libsasl2
0 upgraded, 3 newly installed, 1 removed and 0 not upgraded.
Need to get 421kB of archives.
After unpacking 1083kB of additional disk space will be used.
Do you want to continue? [Y/n] y
...
Done.
# findsym PQconnectionNeedsPassword
# rpm -qf /usr/lib/libpq.so.5
libpq5.1-8.3.5-alt1
Comment 4 Boris Savelev 2008-11-28 14:22:06 MSK
у меня ни на одной машине не воспроизводится-(
везде символ присутствует. 
какой вывод
readelf -s /usr/lib/libpq.so.5.1 | grep connection
?
Comment 5 enp 2008-11-28 17:40:55 MSK
(In reply to comment #4)
> у меня ни на одной машине не воспроизводится-(
> везде символ присутствует. 
> какой вывод
> readelf -s /usr/lib/libpq.so.5.1 | grep connection
> ?

[root@sisyphus ~]# findsym PQconnectionNeedsPassword
[root@sisyphus ~]# readelf -s /usr/lib/libpq.so.5.1 | grep connection
   217: 00006070    36 FUNC    GLOBAL DEFAULT   11 PQconnectionUsedPassword
   268: 00006030    52 FUNC    GLOBAL DEFAULT   11 PQconnectionNeedsPassword

Вообще VE, в котором это воспроизводилось, уже убит (наверное я поторопился). Создал новый с сизифом, там postgresql-8.3eter и psql не ругается, вывод как раз с этого VE.

Так что можно закрывать как переставший воспроизводиться у репортера ;)
Comment 6 Boris Savelev 2008-12-26 13:31:53 MSK
пожалуй тут все-таки бага. надо требовать libpq версии не меньше чем версия сервера postgres