# 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
$ 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 а у Вас как?
(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
# 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
у меня ни на одной машине не воспроизводится-( везде символ присутствует. какой вывод readelf -s /usr/lib/libpq.so.5.1 | grep connection ?
(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. Так что можно закрывать как переставший воспроизводиться у репортера ;)
пожалуй тут все-таки бага. надо требовать libpq версии не меньше чем версия сервера postgres