make[1]: stopped in /urbackup-server-2.2.11
— libfastcgi/urbackupsrv-fastcgi.o —
mv -f libfastcgi/.deps/urbackupsrv-fastcgi.Tpo libfastcgi/.deps/urbackupsrv-fast
cgi.Po
— urbackupsrv-md5.o —
In file included from md5.cpp:49:
./md5.h:149:2: error: unknown type name ‘byte’; did you mean ‘CryptoPP::byte’?
byte digest[CryptoPP::Weak::MD5::DIGESTSIZE];
^~~~
CryptoPP::byte
/usr/local/include/cryptopp/config.h:237:23: note: ‘CryptoPP::byte’ declared her
e
typedef unsigned char byte;
^
md5.cpp:582:13: warning: using the result of an assignment as a condition withou
t parentheses [-Wparentheses]
while (len = (int)fread(buffer, 1, 1024, file)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
md5.cpp:582:13: note: place parentheses around the assignment to silence this wa
rning
while (len = (int)fread(buffer, 1, 1024, file))
^
( )
md5.cpp:582:13: note: use ‘==’ to turn this assignment into an equality comparis
on
while (len = (int)fread(buffer, 1, 1024, file))
^
==
1 warning and 1 error generated.
*** [urbackupsrv-md5.o] Error code 1
The pre-configured Urbackup Server package has disappeared on my test FreeNAS system, the jail system in freenas is under major flux atm. I’m letting it settle down before re-investigating.
I filled a bug report to FreeBSD Bugzilla about the update to cryptopp to 7.0.0.
Here is one of there comments :
This is more a problem for Urbackup upstream. I patched the version in the ports tree and they still need to fix their software to work with the new CryptoPP API. From what I can tell, they mostly fixed it. But <source_root>/md5.h still needs patched. Easy hack: change line 149, byte digest[CryptoPP::Weak::MD5::DIGESTSIZE]; to CryptoPP::byte digest[CryptoPP::Weak::MD5::DIGESTSIZE]; You also need to make sure the output of pkgconf --cflags-only-other libcryptopp is appended to your CXXFLAGS (which the port does).
Just tried an install of 2.3.7 in a fake jail with cryptopp 7.0.0. Here is what I get :
/urbackup-server-2.3.7/luaplugin/src/loslib.c:169: warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
cryptoplugin/urbackupsrv-AESDecryption.o: In function CryptoPP::CFB_ModePolicy::~CFB_ModePolicy()': AESDecryption.cpp:(.text._ZN8CryptoPP14CFB_ModePolicyD2Ev[_ZN8CryptoPP14CFB_ModePolicyD2Ev]+0xa3): undefined reference to CryptoPP::AlignedDeallocate(void*)’
cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::DL_PrivateKeyImpl<CryptoPP::DL_GroupParameters_DSA>::Validate(CryptoPP::RandomNumberGenerator&, unsigned int) const': CryptoFactory.cpp:(.text._ZNK8CryptoPP17DL_PrivateKeyImplINS_22DL_GroupParameters_DSAEE8ValidateERNS_21RandomNumberGeneratorEj[_ZNK8CryptoPP17DL_PrivateKeyImplINS_22DL_GroupParameters_DSAEE8ValidateERNS_21RandomNumberGeneratorEj]+0x11e): undefined reference to CryptoPP::AlignedDeallocate(void*)’
CryptoFactory.cpp:(.text._ZNK8CryptoPP17DL_PrivateKeyImplINS_22DL_GroupParameters_DSAEE8ValidateERNS_21RandomNumberGeneratorEj[_ZNK8CryptoPP17DL_PrivateKeyImplINS_22DL_GroupParameters_DSAEE8ValidateERNS_21RandomNumberGeneratorEj]+0x184): undefined reference to CryptoPP::AlignedDeallocate(void*)' cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::DL_GroupParametersImpl<CryptoPP::ModExpPrecomputation, CryptoPP::DL_FixedBasePrecomputationImplCryptoPP::Integer, CryptoPP::DL_GroupParameters_IntegerBased>::DL_GroupParametersImpl()’:
CryptoFactory.cpp:(.text._ZN8CryptoPP22DL_GroupParametersImplINS_20ModExpPrecomputationENS_30DL_FixedBasePrecomputationImplINS_7IntegerEEENS_31DL_GroupParameters_IntegerBasedEEC2Ev[_ZN8CryptoPP22DL_GroupParametersImplINS_20ModExpPrecomputationENS_30DL_FixedBasePrecomputationImplINS_7IntegerEEENS_31DL_GroupParameters_IntegerBasedEEC2Ev]+0x150): undefined reference to CryptoPP::AlignedDeallocate(void*)' cryptoplugin/urbackupsrv-CryptoFactory.o: In function CryptoPP::DL_SignerBaseCryptoPP::EC2NPoint::SignAndRestart(CryptoPP::RandomNumberGenerator&, CryptoPP::PK_MessageAccumulator&, unsigned char*, bool) const’:
CryptoFactory.cpp:(.text._ZNK8CryptoPP13DL_SignerBaseINS_9EC2NPointEE14SignAndRestartERNS_21RandomNumberGeneratorERNS_21PK_MessageAccumulatorEPhb[_ZNK8CryptoPP13DL_SignerBaseINS_9EC2NPointEE14SignAndRestartERNS_21RandomNumberGeneratorERNS_21PK_MessageAccumulatorEPhb]+0x2ec): undefined reference to CryptoPP::AlignedDeallocate(void*)' cryptoplugin/urbackupsrv-CryptoFactory.o:CryptoFactory.cpp:(.text._ZNK8CryptoPP13DL_SignerBaseINS_9EC2NPointEE14SignAndRestartERNS_21RandomNumberGeneratorERNS_21PK_MessageAccumulatorEPhb[_ZNK8CryptoPP13DL_SignerBaseINS_9EC2NPointEE14SignAndRestartERNS_21RandomNumberGeneratorERNS_21PK_MessageAccumulatorEPhb]+0x39f): more undefined references to CryptoPP::AlignedDeallocate(void*)’ follow
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [urbackupsrv] Error code 1
make[1]: stopped in /urbackup-server-2.3.7
1 error
make[1]: stopped in /urbackup-server-2.3.7
*** [install-recursive] Error code 1