Issues here as well compiling source on TrueNAS 12.0-U7 (FreeBSD 12.2). I configure with embedded cryptopp and zstd: ./configure --enable-embedded-cryptopp --enable-embedded-zstd
Compile eventually errors with:
fileservplugin/PipeFileTar.cpp:405:2: error: no matching function for call to āserialize_stat_bufā
serialize_stat_buf(tar_file.buf, tar_file.symlink_target, data);
^~~~~~~~~~~~~~~~~~
fileservplugin/FileMetadataPipe.h:140:6: note: candidate function not viable: no known conversion from āstruct statā to āconst struct stat64ā
for 1st argument
void serialize_stat_buf(const struct stat64& buf, const std::string& symlink_target, CWData& data);
^
7 warnings and 1 error generated.
I did some more testing and confirm this issue on a fresh install of FreeBSD 12.2, so the scope of the issue seems to be all of FreeBSD rather than limited to TrueNAS. The proposed fix above also works on FreeBSD.
I further confirm that the compiled version can be installed and properly shows as version 2.4.14 in the web interface. So @adumas problem is possibly a user error.
@uroni I would really appreciate a response before I take this version into production. Thank you.
FYI, the same bug exists when compiling server beta v2.5.22 on FreeBSD 12.2. I am not sure what else to do to get a devs attention. Somewhat frustrating.
A new server version 2.4.15 has been released and this error still persists on FreeBSD. I am not sure why this post continues to be ignored. It seems like a simple fix.
I did your mod as detailed above and compiled 2.4.15 with :
./configure --enable-embedded-cryptopp
and it seems to be running fine so far, but it would be great to get this resolved.