Skip to main content
Topic: Cannot Build Snort (Read 118 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Cannot Build Snort

Hey, I'm trying to build Snort3 following the guidelines on github, I have all the dependencies but I keep getting this error at the last step (make -j $(nproc) install)

Code: [Select]
/usr/bin/ld: packet_io/CMakeFiles/packet_io.dir/sfdaq.cc.o:/home/salamimommy/Documents/Snort/snort3-master/build/src/packet_io/sfdaq_static_modules.h:15:(.data.rel+0x0): undefined reference to `afpacket_daq_module_data'
/usr/bin/ld: packet_io/CMakeFiles/packet_io.dir/sfdaq.cc.o:(.data.rel+0x8): undefined reference to `bpf_daq_module_data'
/usr/bin/ld: packet_io/CMakeFiles/packet_io.dir/sfdaq.cc.o:(.data.rel+0x10): undefined reference to `dump_daq_module_data'
/usr/bin/ld: packet_io/CMakeFiles/packet_io.dir/sfdaq.cc.o:(.data.rel+0x18): undefined reference to `fst_daq_module_data'
/usr/bin/ld: packet_io/CMakeFiles/packet_io.dir/sfdaq.cc.o:(.data.rel+0x20): undefined reference to `gwlb_daq_module_data'
/usr/bin/ld: packet_io/CMakeFiles/packet_io.dir/sfdaq.cc.o:(.data.rel+0x28): undefined reference to `nfq_daq_module_data'
/usr/bin/ld: packet_io/CMakeFiles/packet_io.dir/sfdaq.cc.o:(.data.rel+0x30): undefined reference to `pcap_daq_module_data'
/usr/bin/ld: packet_io/CMakeFiles/packet_io.dir/sfdaq.cc.o:(.data.rel+0x38): undefined reference to `savefile_daq_module_data'
/usr/bin/ld: packet_io/CMakeFiles/packet_io.dir/sfdaq.cc.o:(.data.rel+0x40): undefined reference to `trace_daq_module_data'
/usr/bin/ld: cannot open dependency file CMakeFiles/snort.dir/link.d: Permission denied
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/snort.dir/build.make:1833: src/snort] Error 1
make[1]: *** [CMakeFiles/Makefile2:3630: src/CMakeFiles/snort.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

It looks like there's a problem with libdaq, but I'm not sure how to resolve it.

Thanks for your time!