Project

General

Profile

Actions

Bug #4852

closed

dump: build fails on CentOS 7

Added by Davide Pesavento about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
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);
                                             ^~~~~~~

Related issues 1 (0 open1 closed)

Blocks NFD - Task #4610: Make CentOS 7 an official (CI-tested) platformClosedMd Ashiqur Rahman

Actions
Actions #1

Updated by Davide Pesavento about 5 years ago

  • Blocks Task #4610: Make CentOS 7 an official (CI-tested) platform added
Actions #2

Updated by Davide Pesavento about 5 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
Actions #3

Updated by Davide Pesavento about 5 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF