Actions
Bug #4852
closeddump: build fails on CentOS 7
Start date:
Due date:
% Done:
100%
Estimated time:
Description
ndndump
fails to compile on CentOS 7 due to very old glibc headers <netinet/tcp.h>
and <netinet/udp.h>
that by default use different definitions of tcphdr
and udphdr
.
../tools/dump/ndndump.cpp: In member function ‘bool ndn::dump::NdnDump::printTcp(ndn::dump::OutputFormatter&, const uint8_t*, std::size_t) const’:
../tools/dump/ndndump.cpp:457:26: error: ‘const struct tcphdr’ has no member named ‘th_off’; did you mean ‘doff’?
size_t tcpHdrLen = th->th_off * 4;
^~~~~~
doff
../tools/dump/ndndump.cpp: In member function ‘bool ndn::dump::NdnDump::printUdp(ndn::dump::OutputFormatter&, const uint8_t*, std::size_t) const’:
../tools/dump/ndndump.cpp:486:45: error: ‘const struct udphdr’ has no member named ‘uh_ulen’
size_t udpLen = endian::big_to_native(uh->uh_ulen);
^~~~~~~
Updated by Davide Pesavento almost 6 years ago
- Blocks Task #4610: Make CentOS 7 an official (CI-tested) platform added
Updated by Davide Pesavento almost 6 years ago
- Status changed from In Progress to Code review
- % Done changed from 0 to 100
Updated by Davide Pesavento almost 6 years ago
- Status changed from Code review to Closed
Actions