Closed pierg75 closed 3 years ago
The same issue’s on Debian with GCC-8: https://bugs.debian.org/897819
Thanks, adding -Wno-class-memaccess -Wno-ignored-qualifiers
indeed helps to move forward but then I get:
[ 46%] Linking CXX executable nfstrace
/usr/bin/ld: CMakeFiles/nfstrace.dir/src/analysis/nfs_parser.cpp.o: in function `NST::analysis::analyze_nfsv3_procedure(unsigned int, NST::protocols::xdr::XDRDecoder&&, NST::protocols::xdr::XDRDecoder&&, NST::analysis::Session const*, NST:
:analysis::Analyzers&)':
nfs_parser.cpp:(.text+0x2a13): undefined reference to `xdr_free'
/usr/bin/ld: nfs_parser.cpp:(.text+0x2a1a): undefined reference to `xdr_replymsg'
/usr/bin/ld: nfs_parser.cpp:(.text+0x2a23): undefined reference to `xdr_free'
/usr/bin/ld: nfs_parser.cpp:(.text+0x2a36): undefined reference to `xdr_free'
/usr/bin/ld: nfs_parser.cpp:(.text+0x2a3d): undefined reference to `xdr_callmsg'
/usr/bin/ld: nfs_parser.cpp:(.text+0x2a45): undefined reference to `xdr_free'
/usr/bin/ld: nfs_parser.cpp:(.text+0x2ab3): undefined reference to `xdr_free'
Because I added the dir to the libtirpc
headers for rpc.h
, I then wonder which rpc headers is using on debian.
Glibc removed RPC headers, you need to use libtirpc.
Please remove the RedHat/Fedora conditional, since this applies to all systems shipping glibc 2.32 or later.
I'm trying to compile it on F29 but I get some issues:
Adding the header dir for libtirpc I then get:
c++:
clang: