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

Bundling third_party and other dependencies needed in libduckdb_static.a #9475

Closed
1 task done
edyu opened this issue Oct 25, 2023 · 2 comments
Closed
1 task done

Bundling third_party and other dependencies needed in libduckdb_static.a #9475

edyu opened this issue Oct 25, 2023 · 2 comments

Comments

@edyu
Copy link

edyu commented Oct 25, 2023

What happens?

libduckdb_static.a is not part of the release but it's not usable because it doesn't include the various dependencies needed (for example the ones in the third_party folder).
For anyone writing a program to access duckdb programmatically, currently they cannot statically link to the provided libduckdb_static.a because of those missing references.

I first opened a discussion #9451 and was told to file this issue.

To Reproduce

Write a program using the C api such as db_connect, db_disconnect, and etc and try to link the program using the provided libduckdb_static.a.

#9451

OS:

Ubuntu 22.04 LTS

DuckDB Version:

0.9.1

DuckDB Client:

C

Full Name:

Ed Yu

Affiliation:

Beachglass Labs

Have you tried this on the latest main branch?

I have tested with a main build

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

  • Yes, I have
Copy link

github-actions bot commented Feb 3, 2024

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale label Feb 3, 2024
carlopi added a commit to carlopi/duckdb that referenced this issue Feb 7, 2024
make bundle-library can be used by third party developers that want to
statically link against duckdb library to generate a single static library
comprised of all statically built extensions and all necessary third party
libraries

Solves (to some degree) duckdb#9475 and issue
encountered in the go-duckdb API while bundling extensions
@carlopi
Copy link
Contributor

carlopi commented Feb 7, 2024

#10507 partially address this problem, idea is allowing developers to run make bundle library to have a static library bundle all third party AND all build extensions in a single bundle.

Currently this is not going to be packaged as part of releases on GitHub.

@carlopi carlopi closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants