Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Build failure in sbin/ifconfig [was: tcpdump/print-pfsync.c on amd64]



There's also an error when compiling sbin/ifconfig:

--- pfsync.d ---
/usr/src/distrib/utils/x_ifconfig/../../../sbin/ifconfig/pfsync.c:41:27: error: 
net/if_pfsync.h: No such file or directory
nbmkdep: compile failed.
*** [pfsync.d] Error code 1
1 error
nbmake: stopped in 
/usr/obj/amd64/usr/src/distrib/amd64/ramdisks/ramdisk/ifconfig

This is because the if_pfsync.h header file does not get installed. I
used the following patch to fix this:

Index: Makefile
===================================================================
RCS file: /pub/NetBSD-CVS/src/sys/net/Makefile,v
retrieving revision 1.27
diff -p -U8 -r1.27 Makefile
--- Makefile    30 May 2009 09:04:35 -0000      1.27
+++ Makefile    14 Sep 2009 13:37:53 -0000
@@ -1,16 +1,16 @@
 #      $NetBSD: Makefile,v 1.27 2009/05/30 09:04:35 hannken Exp $
 
 INCSDIR= /usr/include/net
 
 INCS=  bpf.h bpfdesc.h dlt.h ethertypes.h if.h if_arc.h if_arp.h \
        if_atm.h if_bridgevar.h if_dl.h if_ether.h if_etherip.h if_fddi.h 
if_gif.h \
        if_gre.h if_hippi.h if_ieee1394.h if_llc.h if_media.h \
-       if_pflog.h if_ppp.h if_pppoe.h if_sppp.h if_srt.h if_stf.h \
+       if_pflog.h if_pfsync.h if_ppp.h if_pppoe.h if_sppp.h if_srt.h if_stf.h \
        if_tap.h if_token.h if_tun.h if_types.h if_vlanvar.h net_stats.h \
        netisr.h pfil.h pfkeyv2.h pfvar.h ppp-comp.h ppp_defs.h radix.h \
        raw_cb.h route.h slcompress.h slip.h zlib.h
 
 SUBDIR=        agr
 
 .include <bsd.kinc.mk>
 Index: mi
===================================================================
RCS file: /pub/NetBSD-CVS/src/distrib/sets/lists/comp/mi,v
retrieving revision 1.1308
diff -p -U8 -r1.1308 mi
--- mi  12 Sep 2009 10:33:44 -0000      1.1308
+++ mi  14 Sep 2009 13:40:34 -0000
@@ -1430,16 +1430,17 @@
 ./usr/include/net/if_gif.h                     comp-c-include
 ./usr/include/net/if_gre.h                     comp-c-include
 ./usr/include/net/if_hippi.h                   comp-c-include
 ./usr/include/net/if_ieee1394.h                        comp-c-include
 ./usr/include/net/if_ieee80211.h               comp-obsolete           obsolete
 ./usr/include/net/if_llc.h                     comp-c-include
 ./usr/include/net/if_media.h                   comp-c-include
 ./usr/include/net/if_pflog.h                   comp-c-include
+./usr/include/net/if_pfsync.h                  comp-c-include
 ./usr/include/net/if_ppp.h                     comp-c-include
 ./usr/include/net/if_pppoe.h                   comp-c-include
 ./usr/include/net/if_pppvar.h                  comp-c-include          obsolete
 ./usr/include/net/if_slvar.h                   comp-c-include          obsolete
 ./usr/include/net/if_sppp.h                    comp-c-include
 ./usr/include/net/if_srt.h                     comp-c-include
 ./usr/include/net/if_stf.h                     comp-c-include
 ./usr/include/net/if_stripvar.h                        comp-c-include          
obsolete





Home | Main Index | Thread Index | Old Index