Bug 27975

Summary: make buildworld fails when updating from 4.2-release to 4.3-stable. stops at ipmon.
Product: Base System Reporter: tubbs <tubbs>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description tubbs 2001-06-08 23:50:00 UTC
installed 4.2-release, cvsuped source to 4.3-stable and started make buildworld. make buildworld stops with following error:
===> sbin/ipmon
cc -O -pipe  -DIPL_NAME=\"/dev/ipl\" -I- -I/usr/src/sbin/ipmon/../../sys -I/usr/src/sbin/ipmon/../../contrib/ipfilter   -I/usr/obj/usr/src/i386/usr/include -c /usr/src/sbin/ipmon/../../contrib/ipfilter/ipmon.c
/usr/src/sbin/ipmon/../../contrib/ipfilter/ipmon.c:95: `TH_ECN' undeclared here (not in a function)
/usr/src/sbin/ipmon/../../contrib/ipfilter/ipmon.c:95: initializer element is not constant
/usr/src/sbin/ipmon/../../contrib/ipfilter/ipmon.c:95: (near initialization for `tcpfl[6].value')
/usr/src/sbin/ipmon/../../contrib/ipfilter/ipmon.c: In function `print_natlog':
/usr/src/sbin/ipmon/../../contrib/ipfilter/ipmon.c:408: `NL_FLUSH' undeclared (first use in this function)
/usr/src/sbin/ipmon/../../contrib/ipfilter/ipmon.c:408: (Each undeclared identifier is reported only once
/usr/src/sbin/ipmon/../../contrib/ipfilter/ipmon.c:408: for each function it appears in.)
*** Error code 1

Stop in /usr/src/sbin/ipmon.
*** Error code 1

Stop in /usr/src/sbin.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
su-2.04# 

I´ve tried to cvsup from 5 different servers with same results. Ive tried this on two different boxes.

How-To-Repeat: see above
Comment 1 rjackson 2001-06-10 19:24:08 UTC
Modify the following lines in ipmon.c

/* Edited from "netinit/ip_compat.h" - Russell Jackson 6/10/2001 */
#include "ip_compat.h"

/* Edited from "netinit/ip_nat.h" Russell Jackson 6/10/2001 */
#include "ip_nat.h"

Fixes the undefined symbol errors

Please reply if find any problems
Comment 2 rjackson 2001-06-11 02:13:19 UTC
Previous fix submitted is incomplete. I tried recompiling the source 
tree to find the source still broken.

Almost all source files in /usr/src/contrib/ipfilter have incorrect 
#include directives for various headers that are local to the program 
itself, but call them as if they are system headers with the prefix 
netinet/ (but in quotation marks rather than angle brackets). These need 
to be found in all .c files under /usr/src/contrib/ipfilter and have the 
'netinet/' removed. I believe this should fix the build.

I have not yet had a chance to test building the world again. I will 
post update of progress at first chance.
Comment 3 ru freebsd_committer freebsd_triage 2001-06-11 10:01:08 UTC
State Changed
From-To: open->closed

Superseded by PR 28002.