Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Help compiling duckdb and error loading postgres: `undefined symbol: _ZTIN6duckdb7CatalogE`

Open
#371 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cmake, cpp, postgresql

Research direction

Start with the duckdb-postgres build instructions and the extension_config.cmake entry for postgres_scanner, then reproduce the issue using GEN=ninja EXTENSION_CONFIGS="extension_config.cmake" make. Compare the v1.3.2 DuckDB checkout and the referenced duckdb-postgres revision to determine what configuration or revision is required. Done means loading postgres_scanner without the undefined Catalog symbol.

Written by the indexing model from the issue text.

Description

Apologies if this is not the right place to ask for help.

When LOADing the postgres extension that I compiled myself, I am running into

Extension "/home/mzabani/duckdb/build/release/extension/postgres_scanner/postgres_scanner.duckdb_extension" could not be loaded: /home/mzabani/duckdb/build/release/extension/postgres_scanner/postgres_scanner.duckdb_extension: undefined symbol: _ZTIN6duckdb7CatalogE

I have duckdb cloned and checked out at the v1.3.2 tag, and duckdb-postgres cloned and checked out at c3024b5c8570695dc73422066fcd221ed64761de, which seemed like the best match since the duckdb git submodule is also at v1.3.2.

I then have the following extension_config.cmake file in the duckdb repo (last line might be the actual relevant one):

duckdb_extension_load(autocomplete)
duckdb_extension_load(core_functions)
duckdb_extension_load(httpfs SOURCE_DIR /home/mzabani/duck-read-cache-fs/duckdb-httpfs INCLUDE_DIR /home/mzabani/duck-read-cache-fs/duckdb-httpfs/extension/httpfs/include)
duckdb_extension_load(cache_httpfs SOURCE_DIR /home/mzabani/duck-read-cache-fs)
duckdb_extension_load(ducklake SOURCE_DIR /home/mzabani/ducklake)
duckdb_extension_load(icu)
duckdb_extension_load(json)
duckdb_extension_load(parquet)
duckdb_extension_load(postgres_scanner DONT_LINK SOURCE_DIR /home/mzabani/duckdb-postgres)

After that I ran GEN=ninja EXTENSION_CONFIGS="extension_config.cmake" make to compile.
Is this something obvious I'm missing from the build instructions?

Thanks in advance.

Dominant language
C++
Stars
372
Forks
107
Avg merge
13h 55m
Merged PRs (30d)
13

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from duckdb/duckdb-postgres

All issues in duckdb/duckdb-postgres

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.