SIDN / spin

SPIN Core Software
https://spin.sidnlabs.nl
GNU General Public License v2.0
77 stars 9 forks source link

Build error spin-pcap-reader #86

Closed frankvandenhurk closed 2 years ago

frankvandenhurk commented 2 years ago

When I try to build on Debian 11, I get:

make[3]: Entering directory '/home/pi/spin/src/build/tools/spin-pcap-reader'
  CC       spin_pcap_reader-arpupdate.o
  CC       spin_pcap_reader-ipt.o
  CC       spin_pcap_reader-macstr.o
  CC       spin_pcap_reader-pcap.o
../../../tools/spin-pcap-reader/pcap.c: In function ‘send_flows’:
../../../tools/spin-pcap-reader/pcap.c:171:25: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
  171 |  flow_list_clear(flows, time(NULL));
      |                         ^~~~
  CC       spin_pcap_reader-sleep.o
  CC       spin_pcap_reader-socket.o
  CC       spin_pcap_reader-spinhook.o
  CCLD     spin-pcap-reader
cschutijser commented 2 years ago

Thanks for the report! Should be fixed with commit 2b1b3c26029cc62bc77f876797556693a7cb2b15.