I’m trying to compile a program called ngrep, and when I ran configure, things seemed to go well, but when I run make, I get:
ngrep.c: In function ‘process’: ngrep.c:544: error: ‘struct udphdr’ has no member named ‘source’ ngrep.c:545: error: ‘struct udphdr’ has no member named ‘dest’ make: *** [ngrep.o] Error 1
What does that mean, and how do I fix it? There are no earlier warnings or errors that suggest the root of the problem.
Found the problem:
Apparently, configure has a bug in this test, and it thinks my system has the ‘dumb’ udphdr, even though it doesn’t. Changing the first line to ‘#if 0’ fixes the problem.