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

static build doesn't work #112

Open
ygrek opened this issue Aug 27, 2024 · 0 comments
Open

static build doesn't work #112

ygrek opened this issue Aug 27, 2024 · 0 comments

Comments

@ygrek
Copy link
Owner

ygrek commented Aug 27, 2024

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libmagic.a(compress.o): in function `uncompressxzlib':
(.text+0x3fb): undefined reference to `lzma_auto_decoder'
/usr/bin/ld: (.text+0x46d): undefined reference to `lzma_code'
/usr/bin/ld: (.text+0x483): undefined reference to `lzma_end'
/usr/bin/ld: (.text+0x49e): undefined reference to `lzma_end'

that's because

$ pkg-config --static --libs libmagic
-lmagic -llzma -lbz2 -lz 

but we are linking against -lmagic only (and -lbz2 -lz for other reasons), but not -llzma

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