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

Using the extension fails with "undefined symbol: _ZTIN6duckdb7CatalogE" #124

Open
2 tasks done
ciupicri opened this issue Nov 14, 2024 · 0 comments
Open
2 tasks done

Comments

@ciupicri
Copy link

ciupicri commented Nov 14, 2024

What happens?

I've build DuckDB along with the sqlite extension, but I can't use it. Maybe the issue is with the core or the way I compile it, not this extension itself.

Running .../build/release/duckdb -unsigned -readonly g.sqlite gives me:

Error: unable to open database "g.sqlite": IO Error: Extension "/home/ciupicri/.duckdb/extensions/043a0d75d6/linux_amd64/sqlite_scanner.duckdb_extension" could not be loaded: /home/ciupicri/.duckdb/extensions/043a0d75d6/linux_amd64/sqlite_scanner.duckdb_extension: undefined symbol: _ZTIN6duckdb7CatalogE

or

Error: unable to open database "g.sqlite": IO Error: Extension "/home/ciupicri/.duckdb/extensions/v1.1.3/linux_amd64/sqlite_scanner.duckdb_extension" could not be loaded: /home/ciupicri/.duckdb/extensions/v1.1.3/linux_amd64/sqlite_scanner.duckdb_extension: undefined symbol: _ZTIN6duckdb7CatalogE

depending on the version used.

To Reproduce

  1. Clone the duckdb repository
  2. Clone the sqlite_scanner repository
  3. Build DuckDB and the sqlite extension at the same time:
cd duckdb
cat > extension/extension_config_local.cmake << EOF
duckdb_extension_load(sqlite_scanner
	DONT_LINK
	SOURCE_DIR $(realpath ../sqlite_scanner)
)
EOF

GEN=ninja DUCKDB_EXTENSIONS='autocomplete;icu;fts;httpfs;json' BUILD_PYTHON=1 BUILD_JEMALLOC=1 make
  1. Install the extensions:
for i in build/release/extension/*/*.duckdb_extension; do ./build/release/duckdb -c "INSTALL '"${i}"';"; done

OS:

Fedora Linux 41 x64
cmake-3.30.5-1.fc41.x86_64
ninja-build-1.12.1-3.fc41.x86_64
gcc-14.2.1-3.fc41.x86_64

SQLite Version:

3.46.1-1.fc41.x86_64

DuckDB Version:

v1.1.3 or v1.1.4-dev1845 043a0d75d6

DuckDB Client:

CLI

Full Name:

Cristian Ciupitu

Affiliation:

none

Have you tried this on the latest main branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree
@ciupicri ciupicri changed the title undefined symbol: _ZTIN6duckdb7CatalogE Using the extension fails with "undefined symbol: _ZTIN6duckdb7CatalogE" Nov 14, 2024
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

1 participant