[Bro] Strange Bro build problem with yacc/bison

Christian Kreibich christian at whoop.org
Sat Dec 2 12:33:17 PST 2006


On Fri, 2006-12-01 at 18:39 -0800, Vern Paxson wrote:
> Yeah, we ran into this on a FreeBSD 6.1 machine too.  It wasn't clear
> at the time whether it was a general 6.1 problem or unique to our build;
> I guess now we know :-).
> 
> I'm not sure what's the right autoconf goop to solve this - certainly
> the current build failure isn't pretty.

Such files should go into MOSTLYCLEANFILES. Try this:

Index: Makefile.am
===================================================================
--- Makefile.am (revision 3857)
+++ Makefile.am (working copy)
@@ -54,6 +54,10 @@
        portmap-protocol.pac portmap-analyzer.pac \
        rpc-protocol.pac rpc-analyzer.pac

+YACC_OUTPUT = \
+       bif_parse.h bif_parse.cc broparse.h parse.cc \
+       re-parse.h re-parse.cc rule-parse.h rule-parse.cc
+
 # this is better
 if USE_NBDNS
 dns_srcs = nb_dns.c
@@ -161,8 +165,7 @@
 # Files created in the src dir.
 MOSTLYCLEANFILES = $(BIF_FUNC_H) $(BIF_FUNC_DEF) $(BIF_FUNC_INIT) \
                   $(BIF_NETVAR_H) $(BIF_NETVAR_DEF) $(BIF_NETVAR_INIT) \
-                  $(BRO_BIF) \
-                  $(BINPAC_H) $(BINPAC_CC) \
+                  $(BRO_BIF) $(BINPAC_H) $(BINPAC_CC) $(YACC_OUTPUT) \
                   $(DISTCLEANFILES)

Cheers,
Christian.
-- 
________________________________________________________________________
                                          http://www.cl.cam.ac.uk/~cpk25
                                                    http://www.whoop.org




More information about the Bro mailing list