Hi all.

I've been having issues compiling on FreeBSD 2.2.8-STABLE.
I am building IP Filter as a LKM.

Beginning with IP Filter Version 3.4.26, the file osreldate.h is
expected to be in /usr/include/sys rather than the standard
location /usr/include.

Has anyone seen this?  I could symlink, or link the file, but it
would be removed each time I cvsup the kernel source, and
changing it in the IP Filter source tree is OK too - but needs
to be done each time I refresh the source.

Is there a reason for this change?  There seems to be some
variance as to which file includes which copy of osreldate.h
too, I've included some output from a quick grep below.

I've done some searching through the mailing list and Google,
but the only references I can find to "osreldate" date back a
few years.

Thanks.

Richard.

- - - -8<- - - -
# make freebsd22 IPFILKERN=TRANAT

[ snip a bunch of stuff ]

cc -Wall -Wstrict-prototypes -Wuninitialized -O -static -g -I../..    -DIPFILTER_LOG 
ipnat.o kmem.o natparse.o common.o printnat.o -o ipnat  -lkvm
cc -Wall -Wstrict-prototypes -Wuninitialized -O -g -I../..    -DIPFILTER_LOG 
-DIPFILTER_LKM -Di386 -D__i386__ -DINET -DKERNEL -D_KERNEL -I/usr/include -I/sys 
-I/sys/sys -I/sys/arch   -c ../../ip_fil.c -o ip_fil.o
cc -Wall -Wstrict-prototypes -Wuninitialized -O -g -I../..    -DIPFILTER_LOG 
-DIPF_DEFAULT_PASS=FR_PASS -DIPFILTER_LKM -Di386 -D__i386__ -DINET -DKERNEL -D_KERNEL 
-I/usr/include -I/sys -I/sys/sys -I/sys/arch   -c ../../fil.c -o fil_k.o
In file included from ../../fil.c:73:
../../netinet/ip_compat.h:216: sys/osreldate.h: No such file or directory
*** Error code 1

Stop.

- - - -8<- - - -
# cd ../../src
# grep osreldate `find ip_fil3.4.26 -name '*.c' -o -name '*.h'`
ip_fil3.4.26/fils.c:#  include <osreldate.h>
ip_fil3.4.26/fils.c:#   include <osreldate.h>
ip_fil3.4.26/ip_compat.h:#  include <sys/osreldate.h>
ip_fil3.4.26/ip_fil.c:#  include <osreldate.h>
ip_fil3.4.26/ipf.c:#  include <osreldate.h>
ip_fil3.4.26/ipf.c:#   include <osreldate.h>
ip_fil3.4.26/ip_log.c:#    include <osreldate.h>
ip_fil3.4.26/ip_log.c:#     include <osreldate.h>
ip_fil3.4.26/ipfs.c:#  include <osreldate.h>
ip_fil3.4.26/ipfs.c:#   include <osreldate.h>
ip_fil3.4.26/ipt.c:#  include <osreldate.h>
ip_fil3.4.26/ipt.c:#   include <osreldate.h>
ip_fil3.4.26/mlf_ipl.c:#  include <sys/osreldate.h>
ip_fil3.4.26/netinet/ip_compat.h:#  include <sys/osreldate.h>

# grep osreldate `find ip_fil3.4.27 -name '*.c' -o -name '*.h'`
ip_fil3.4.27/fils.c:#  include <osreldate.h>
ip_fil3.4.27/fils.c:#   include <osreldate.h>
ip_fil3.4.27/ip_compat.h:#  include <sys/osreldate.h>
ip_fil3.4.27/ip_fil.c:#  include <osreldate.h>
ip_fil3.4.27/ipf.c:#  include <osreldate.h>
ip_fil3.4.27/ipf.c:#   include <osreldate.h>
ip_fil3.4.27/ip_log.c:#    include <osreldate.h>
ip_fil3.4.27/ip_log.c:#     include <osreldate.h>
ip_fil3.4.27/ipfs.c:#  include <osreldate.h>
ip_fil3.4.27/ipfs.c:#   include <osreldate.h>
ip_fil3.4.27/ipt.c:#  include <osreldate.h>
ip_fil3.4.27/ipt.c:#   include <osreldate.h>
ip_fil3.4.27/mlf_ipl.c:#  include <sys/osreldate.h>
ip_fil3.4.27/netinet/ip_compat.h:#  include <sys/osreldate.h>



Reply via email to