Cannot build client on gentoo linux

Hello,
I tried to compile the source of the client on gentoo linux.
Here are the package versions I use:

  • sys-devel/gcc-9.2.0-r2
  • sys-libs/zlib-1.2.11-r2
  • x11-libs/wxGTK-3.0.4-r302
  • dev-libs/crypto+±8.2.0

I get the following error when compiling.

urbackupcommon/CompressedPipeZstd.cpp:62:50: error: ‘ZSTD_c_compressionLevel’ was not declared in this scope; did you mean ‘ZSTD_p_compressionLevel’? 62 | size_t err = ZSTD_CCtx_setParameter(def_stream, ZSTD_c_compressionLevel, compression_level); | ^~~~~~~~~~~~~~~~~~~~~~~ | ZSTD_p_compressionLevel urbackupcommon/CompressedPipeZstd.cpp: In member function ‘virtual bool CompressedPipeZstd::Write(const char*, size_t, int, bool)’: urbackupcommon/CompressedPipeZstd.cpp:316:9: error: ‘ZSTD_compressStream2’ was not declared in this scope; did you mean ‘ZSTD_compressStream’? 316 | rc = ZSTD_compressStream2(def_stream, &outbuf, &inbuf, curr_flush ? ZSTD_e_flush : ZSTD_e_continue); | ^~~~~~~~~~~~~~~~~~~~ | ZSTD_compressStream

You can find the complete log here:
build.log (191.5 KB)

I hope someone can help me.

dsiggi

What’s your zstd version? Workaround: ./configure --enable-embedded-zstd

Hi,
thanks for your fast answer.

I’m using app-arch/zstd-1.3.7-r1.

When I’m using the configure option “–enable-embedded-zstd” the compile is working.

Thanks.