Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libduckdb.so name is different for compilation and runtime #64

Open
AmebaBrain opened this issue Dec 22, 2024 · 2 comments
Open

libduckdb.so name is different for compilation and runtime #64

AmebaBrain opened this issue Dec 22, 2024 · 2 comments

Comments

@AmebaBrain
Copy link

With a new 1.1.3 release it's required to rename libduckdb.so library to libduckdb.1.1.3.so to have compilation succeeded.

# Rename library file with version number
mv "libduckdb.${LIB_EXT}" "libduckdb.${DUCKDB_VERSION}.${LIB_EXT}"

But in the same time, during runtime the compiled duckdb_fdw.so still expects the duckdb library to be named as libduckdb.so and not libduckdb.1.1.3.so. Otherwise, it fails with

psql:/docker-entrypoint-initdb.d/fdw_setup.sql:1: ERROR:  could not load library "/usr/lib/postgresql/17/lib/duckdb_fdw.so": libduckdb.so: cannot open shared object file: No such file or directory

Is it expected behavior? Use libduckdb.1.1.3.so for the compilation but libduckdb.so during runtime?

@AmebaBrain AmebaBrain changed the title liduckdb.so name is different for compilation and runtime libduckdb.so name is different for compilation and runtime Dec 22, 2024
@alitrack
Copy link
Owner

compiled in this way

export DUCKDB_VERSION=1.1.3
make USE_PGXS=1 
make USE_PGXS=1 install 

@AmebaBrain
Copy link
Author

AmebaBrain commented Dec 23, 2024

but for this to work you also have to have physically file libduckdb.1.3.3.so. otherwise you will get compilation error. and once compilation is done, you will have to have original libduckdb.so file back again. otherwise, compiled duckdb_fdw.so won't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants