[Snort-devel] DAQ: parallel build problem

Jann Röder mail at ...3516...
Sun Sep 28 17:07:38 EDT 2014


Hi,
when building the daq package for macports we came across a problem
related to parallel build where tokdefs.h doesn't exist. It can be fixed
using the following patch (courtesy of Ryan Schmidt):


--- sfbpf/Makefile.in.orig	2013-11-05 09:10:24.000000000 -0600
+++ sfbpf/Makefile.in	2014-09-25 19:52:37.000000000 -0500
@@ -653,7 +653,7 @@


 # use of $@ and $< here is a GNU idiom that borks BSD
-${builddir}/sf_scanner.c: ${srcdir}/scanner.l
+${builddir}/sf_scanner.c: ${srcdir}/scanner.l ${builddir}/tokdefs.h
 	@rm -f ${builddir}/sf_scanner.c
 	${srcdir}/runlex.sh $(V_LEX) -osf_scanner.c ${srcdir}/scanner.l


Ryan says:
"The issue is easy to reproduce if the following patch is applied and
 `autoreconf` is run:

 {{{
 --- sfbpf/Makefile.am.orig      2011-08-01 08:25:41.000000000 -0500
 +++ sfbpf/Makefile.am   2014-09-25 19:44:05.000000000 -0500
 @@ -48,6 +48,7 @@
         ${srcdir}/runlex.sh $(V_LEX) -osf_scanner.c ${srcdir}/scanner.l

  ${builddir}/tokdefs.h ${builddir}/sf_grammar.c: ${srcdir}/grammar.y
 +       sleep 5
         @rm -f ${builddir}/sf_grammar.c ${builddir}/tokdefs.h
         $(V_YACC) -d ${srcdir}/grammar.y
         mv y.tab.c sf_grammar.c
 }}}"

If you could include the above patch to Makefile.in in the next release
we can remove the patch from the macports package.

Thanks,
Jann





More information about the Snort-devel mailing list