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

Cannot build on FreeBSD #1

Open
probonopd opened this issue Jan 10, 2021 · 3 comments
Open

Cannot build on FreeBSD #1

probonopd opened this issue Jan 10, 2021 · 3 comments

Comments

@probonopd
Copy link
Member

Is zsync3 already in a working state` For helloSystem we need a zsync client, the one in FreeBSD is based on the original zsync and hence cannot download from e.g., GitHub Releases.

Hence I was trying to compile this, but am getting a (Boost related?) error.

% uname -v
FreeBSD 12.1-RELEASE r354233 GENERIC 

% sudo pkg install boost-libs

% make -j4                  
[ 16%] Building CXX object src/CMakeFiles/zsync3.dir/rollingchecksum.cpp.o
[ 33%] Building CXX object src/CMakeFiles/zsync3.dir/client_p.cpp.o
[ 50%] Building CXX object src/CMakeFiles/zsync3.dir/client.cpp.o
/tmp/zsync3/src/rollingchecksum.cpp:1:10: fatal error: 'boost/endian/conversion.hpp' file not found
#include <boost/endian/conversion.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/zsync3/src/client_p.cpp:4:10: fatal error: 'boost/algorithm/string.hpp' file not found
#include <boost/algorithm/string.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/zsync3/src/client.cpp:2:
/tmp/zsync3/src/../include/client_p.hpp:6:10: fatal error: 'boost/filesystem.hpp' file not found
#include <boost/filesystem.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
--- src/CMakeFiles/zsync3.dir/client_p.cpp.o ---
*** [src/CMakeFiles/zsync3.dir/client_p.cpp.o] Error code 1

make[2]: stopped in /tmp/zsync3/build
--- src/CMakeFiles/zsync3.dir/rollingchecksum.cpp.o ---
*** [src/CMakeFiles/zsync3.dir/rollingchecksum.cpp.o] Error code 1

make[2]: stopped in /tmp/zsync3/build
1 error generated.
--- src/CMakeFiles/zsync3.dir/client.cpp.o ---
*** [src/CMakeFiles/zsync3.dir/client.cpp.o] Error code 1

make[2]: stopped in /tmp/zsync3/build
3 errors

make[2]: stopped in /tmp/zsync3/build
--- src/CMakeFiles/zsync3.dir/all ---
*** [src/CMakeFiles/zsync3.dir/all] Error code 2

make[1]: stopped in /tmp/zsync3/build
1 error

make[1]: stopped in /tmp/zsync3/build
*** [all] Error code 2

make: stopped in /tmp/zsync3/build
1 error

make: stopped in /tmp/zsync3/build

@antony-jr
Copy link
Collaborator

antony-jr commented Jan 11, 2021

What version of boost did you install?

@antony-jr
Copy link
Collaborator

Also have you tried zsync2 to build in FreeBSD?

@probonopd
Copy link
Member Author

probonopd commented Jan 11, 2021

1.72.0. zsync2 also does not compile but TheAssassin said he has no interest in supporting FreeBSD.

probonopd/zsync-curl#38 does compile with a small workaround that should be easy to fix, but its performance is not great (uses only 1 core).

This issue is low priority, so no hurries.

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

2 participants