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

No static binary for 0.8.6 #130

Open
mtniehaus opened this issue Dec 20, 2022 · 5 comments
Open

No static binary for 0.8.6 #130

mtniehaus opened this issue Dec 20, 2022 · 5 comments

Comments

@mtniehaus
Copy link

Since 0.8.6 isn't included in Fedora (https://bugzilla.redhat.com/show_bug.cgi?id=1965840), I was reading the docs at https://www.fsarchiver.org/installation/ to try to get this version myself. The docs say there will be a static binary, but that doesn't appear to be present for version 0.8.6. (Not having much luck building it myself either, but I think that's a personal problem.)

@mtniehaus
Copy link
Author

(I figured out my build issue: The instructions at https://www.fsarchiver.org/installation/ are missing one dependency, libuuid-devel.)

@wdlkmpx
Copy link

wdlkmpx commented Dec 24, 2022

I can compile a static binary of fsarchiver with the latest version of all the dependencies if anybody is interesed...

@e2robot
Copy link

e2robot commented Mar 22, 2023

I found the following are needed to build non static (on Ubuntu with 0.8.7). Anyone help me with how to build a static binary.
Added option to build as static but fails with libgcrypt error.

apt install build-essential
apt install zlib1g zlib1g-dev
apt install libbz2-dev liblzma-dev
apt install pkg-config
apt install liblzo2-dev
apt install liblz4-dev
apt install libzstd-dev
apt install libgcrypt-dev
apt install e2fslibs-dev
apt install libblkid-dev

@wdlkmpx
Copy link

wdlkmpx commented Mar 22, 2023

I add --disable-shared --enable-static to ./configure (before ./configure you must export PKG_CONFIG='pkg-config --static and export LDFLAGS=--static )

All the -dev packages you installed must include .a lib(s) for this to work

I don't install anything, I compile everything from scratch, I only compile static libs.. it's a complex process... in the end the completely static binary awaits...

@e2robot
Copy link

e2robot commented Mar 23, 2023

Thanks wdlkmpx. Haven't managed to get it to compile a static yet, but useful info.
Still libgcrypt error.

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

3 participants