Skip to content

Help compiling duckdb and error loading postgres: undefined symbol: _ZTIN6duckdb7CatalogE #371

@MarceloZabini

Description

@MarceloZabini

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 c3024b5, 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions