Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2003 15:23:42 -0400
From:      "Robin P. Blanchard" <Robin.Blanchard@gactr.uga.edu>
To:        "Crist J. Clark" <cjc@freebsd.org>
Cc:        adrian@freebsd.org
Subject:   RE: Ipf headers not installed per default ?
Message-ID:  <EE3D3FBAFFCAED448C21C398FDAD91AC0107F1@EBE1.gc.nat>

next in thread | raw e-mail | index | archive | help
> > The configure script does not locate IPF's header files. I had to=20
> > manually copy them over: # cp -p=20
> > /usr/src/sys/contrib/ipfilter/netinet/*.h /usr/include/netinet/
> >=20
> > Squid then built fine. Should these header files be=20
> installed with the=20
> > world? Or should squid's port be modified to include=20
> > /usr/src/sys/include/ipfilter ?
>=20
> It shouldn't look in /usr/src. Ports should (a) not expect=20
> the user to have a FreeBSD source tree or (b) demand that it=20
> be in /usr/src (although you could add a make variable that=20
> is the base of the source tree that defaults to /usr/src, if=20
> there isn't one already).
>=20
> The IPFilter .h-files should be installed with world. Whether=20
> they belong in /usr/include/netinet or somewhere else is a=20
> different matter. Without digging into the CVS repo, I'd=20
> venture to guess that this happened when IPFitler files got=20
> separated out of the src/sys tree into src/sys/contrib/ipfilter.
>=20
> Why don't you send in a PR on this?

Thanks for jogging my mind on this...Now that you've brought that up, I =
can
see that on a -STABLE ipf box that's been around for quite some time =
(and on
which the squid port worked without 'hacking'):

# [/usr/src/sys/contrib/ipfilter/netinet]# for i in *.h ; do find
/usr/include/netinet/$i -exec ls -ald {} \;; done                      =20
-r--r--r--  1 root  wheel  1564 May 10  2002 =
/usr/include/netinet/ip_auth.h
-r--r--r--  1 root  wheel  34148 May 10  2002
/usr/include/netinet/ip_compat.h
-r--r--r--  1 root  wheel  21840 May 10  2002 =
/usr/include/netinet/ip_fil.h
-r--r--r--  1 root  wheel  1905 May 10  2002 =
/usr/include/netinet/ip_frag.h
-r--r--r--  1 root  wheel  8826 May 10  2002 =
/usr/include/netinet/ip_nat.h
-r--r--r--  1 root  wheel  4559 May 10  2002 =
/usr/include/netinet/ip_proxy.h
-r--r--r--  1 root  wheel  5621 May 10  2002 =
/usr/include/netinet/ip_state.h
-r--r--r--  1 root  wheel  324 May 10  2002 /usr/include/netinet/ipl.h

Whereas on a newer -STABLE box:

# [/usr/src/sys/contrib/ipfilter/netinet]# for i in *.h ; do find
/usr/include/netinet/$i -exec ls -ald {} \;; done=20
find: /usr/include/netinet/ip_auth.h: No such file or directory
find: /usr/include/netinet/ip_compat.h: No such file or directory
find: /usr/include/netinet/ip_fil.h: No such file or directory
find: /usr/include/netinet/ip_frag.h: No such file or directory
find: /usr/include/netinet/ip_nat.h: No such file or directory
find: /usr/include/netinet/ip_proxy.h: No such file or directory
find: /usr/include/netinet/ip_state.h: No such file or directory
find: /usr/include/netinet/ipl.h: No such file or directory



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EE3D3FBAFFCAED448C21C398FDAD91AC0107F1>