tds-fdw / tds_fdw

A PostgreSQL foreign data wrapper to connect to TDS databases (Sybase and Microsoft SQL Server)
Other
378 stars 101 forks source link

ERROR: could not load library "/usr/lib64/pgsql/tds_fdw.so": /usr/lib64/pgsql/tds_fdw.so: undefined symbol: bms_is_empty #370

Open GeraldScott opened 3 hours ago

GeraldScott commented 3 hours ago

Issue report

Operating system

On recent GNU/Linux distributions, you can provide the content of the file /etc/os-release

Fedora Linux 40 (Workstation Edition)

Version of tds_fdw

From a psql session, paste the outputs of running \dx

If you built the package from Git sources, also paste the output of running git log --source -n 1 on your git clone from a console

CREATE EXTENSION tds_fdw;
ERROR:  could not load library "/usr/lib64/pgsql/tds_fdw.so": /usr/lib64/pgsql/tds_fdw.so: undefined symbol: bms_is_empty
moodle=# \dx
                               List of installed extensions
     Name     | Version |   Schema   |                    Description                     
--------------+---------+------------+----------------------------------------------------
 plpgsql      | 1.0     | pg_catalog | PL/pgSQL procedural language
 postgres_fdw | 1.1     | public     | foreign-data wrapper for remote PostgreSQL servers

Version of PostgreSQL

From a psql session, paste the output of running SELECT version();

SELECT version();
 PostgreSQL 16.3 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 14.1.1 20240522 (Red Hat 14.1.1-4), 64-bit

Version of FreeTDS

How to get it will depend on your Operating System and how you installes FreeTDS

From a console:

rpm -qa|grep freetds                                                                                                                                                                                         freetds-1.4.16-1.fc40.x86_64
freetds-libs-1.4.16-1.fc40.x86_64
freetds-devel-1.4.16-1.fc40.x86_64

rpm -qa|grep tds_fdw
tds_fdw_16-2.0.4-1PGDG.f40.x86_64

Logs

Please capture the logs when the error you are reporting is happening, as well as commands with their outputs if you are reporting a problem build or installing

_For problems using tdsfdw on PostgreSQL how to do it will depend on your system, but if your PostgreSQL is installed on GNU/Linux, you will want to use tail -f with the log of the PostgreSQL cluster

For MSSQL you will need to use the SQL Server Audit Log

ERROR:  could not load library "/usr/lib64/pgsql/tds_fdw.so": /usr/lib64/pgsql/tds_fdw.so: undefined symbol: bms_is_empty

Sentences, data structures, data

This will depend on the exact problem you are having and data privacy restrictions

However the more data you provide, the more likely we will be able to help

As a bare minimum, you should provide

N/A
GeraldScott commented 2 hours ago

Further to the above, the library is installed correctly:

ls /usr/lib64/pgsql/tds_fdw.so
/usr/lib64/pgsql/tds_fdw.so