Wintereise/ddosmon-mod

compilation under FreeBSD OS

markomar opened this issue · 3 comments

uname -a
FreeBSD mm 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64

./configure without any errors, but make:

make: "/root/ddosmon/buildsys.mk" line 379: Need an operator make: "/root/ddosmon/buildsys.mk" line 381: Need an operator make: "/root/ddosmon/buildsys.mk" line 723: Need an operator make: "/root/ddosmon/buildsys.mk" line 735: Need an operator make: "/root/ddosmon/buildsys.mk" line 747: Need an operator make: Fatal errors encountered -- cannot continue make: stopped in /root/ddosmon

Is that with gmake, or vanilla bsd make?

If latter, can you try with gmake?

Vanilia bsd make.
When trying to compile using gmake, i got:

root@xxx:~/ddosmon # gmake
CompileModule: netflow.so
In file included from netflow.c:26:
../../protocols.h:57:9: warning: 'IPPROTO_MAX' macro redefined
#define IPPROTO_MAX (255)
^
/usr/include/netinet/in.h:254:9: note: previous definition is here
#define IPPROTO_MAX 256
^
1 warning generated.
/usr/bin/ld: cannot find -lnetfilter_queue
cc: error: linker command failed with exit code 1 (use -v to see invocation)
../../../buildsys.module.mk:15: recipe for target 'netflow.so' failed
gmake[3]: *** [netflow.so] Error 1
../../buildsys.mk:119: recipe for target 'source' failed
gmake[2]: *** [source] Error 2
../buildsys.mk:119: recipe for target 'modules' failed
gmake[1]: *** [modules] Error 2
buildsys.mk:119: recipe for target 'src' failed
gmake: *** [src] Error 2

On 07 Jan 2015, at 11:47, Paul S. notifications@github.com wrote:

Is that with gmake, or vanilla bsd make?

If latter, can you try with gmake?


Reply to this email directly or view it on GitHub #2 (comment).

The solution is to probably remove the nfq module, it doesn't work right anyway.