Build problems with options BRIDGE

Gary Alan dragonfly at gallan.plus.com
Sun May 9 04:03:56 PDT 2004


When compiling the kernel with "options BRIDGE" without also defining 
"options IPFILTER" I get the following errors:

linking kernel
bridge.o: In function `bdg_forward':
bridge.o(.text+0xaf8): undefined reference to `fr_checkp'
bridge.o(.text+0xb7e): undefined reference to `fr_checkp'
bridge.o(.text+0xbcf): undefined reference to `fr_checkp'
*** Error code 1
The bridge.c code contains;

/*
 * For IPFilter, declared in ip_input.c
 */
extern int (*fr_checkp)(struct ip *, int, struct ifnet *, int, struct 
mbuf **);

I've searched for the definition of fr_checkp and it is found in 
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c and not ip_input.c

#if defined(__NetBSD__) || defined(__OpenBSD__)  || \
    (_BSDI_VERSION >= 199701) || (defined(__DragonFly_version) && \
    (__DragonFly_version >= 100000))
# include <sys/conf.h>
# if defined(NETBSD_PF)
#  include <net/pfil.h>
/*
 * We provide the int (*fr_checkp) (ip_t *ip, int hlen, void *ifp, int 
out, mb_t **mp);
int (*fr_checkp) (ip_t *ip, int hlen, void *ifp, int out, mb_t **mp);
fr_checkp name just to minimize changes later.
 */
int (*fr_checkp) (ip_t *ip, int hlen, void *ifp, int out, mb_t **mp);
# endif /* NETBSD_PF */
#endif /* __NetBSD__ */

I believe this is why the kernel will not build unless IPFILTER is also 
defined. Sorry for not being clear in my previous post.



This HTML extract is from http://www.dragonflybsd.org/main/bugs.cgi

<a href="nntp://news.dragonflybsd.org/dragonfly.bugs">
         nntp://nntp.dragonflybsd.org/dragonfly.bugs</a>
The displayed text and hyperlink do not match.

Regards





More information about the Bugs mailing list