[MacPorts] #45159: daq 2.0.2: error: tokdefs.h: No such file or directory
#45159: daq 2.0.2: error: tokdefs.h: No such file or directory --------------------------+-------------------- Reporter: ryandesign@… | Owner: jann@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: daq --------------------------+-------------------- daq 2.0.2 failed to build on the Snow Leopard build server only: https://build.macports.org/builders/buildports-snowleopard- x86_64/builds/29811/steps/compile/logs/stdio But I don't know that it's a Snow Leopard-specific problem. The error that caused the build to fail was: {{{ ./scanner.l:70:21: error: tokdefs.h: No such file or directory }}} But later in the log we see: {{{ make[2]: *** [libsfbpf_la-sf_scanner.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... mv y.tab.c sf_grammar.c mv y.tab.h tokdefs.h }}} So tokdefs.h got created, but after it was already expected to exist. This makes me think it's a parallel build failure brought on by incomplete target dependencies in the Makefile. -- Ticket URL: <https://trac.macports.org/ticket/45159> MacPorts <http://www.macports.org/> Ports system for OS X
#45159: daq 2.0.2: error: tokdefs.h: No such file or directory ---------------------------+-------------------- Reporter: ryandesign@… | Owner: jann@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: daq | ---------------------------+-------------------- Comment (by jann@…): Hm, I don't have snow leoopard - so can't really reproduce it. All I can do is roll it back to the preious version. -- Ticket URL: <https://trac.macports.org/ticket/45159#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#45159: daq 2.0.2: error: tokdefs.h: No such file or directory ---------------------------+-------------------- Reporter: ryandesign@… | Owner: jann@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: daq | ---------------------------+-------------------- Comment (by ryandesign@…): I don't think you need to roll back, and as I said it doesn't sound like a Snow Leopard-specific problem. It sounds like an intermittent parallel build problem, which just happened to trigger on one of the four build servers. Perhaps you can reproduce it on other OS versions, if you try a few times. Perhaps you can fix it by editing the Makefile, or if not, by disabling parallel building ("`use_parallel -Lbuild no`"). -- Ticket URL: <https://trac.macports.org/ticket/45159#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#45159: daq 2.0.2: error: tokdefs.h: No such file or directory ---------------------------+-------------------- Reporter: ryandesign@… | Owner: jann@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: daq | ---------------------------+-------------------- Comment (by jann@…): Ok I'll check the build server tomorrow to see if it fixed itself in a subsequent build. If not I'll try disabling parallel builds. -- Ticket URL: <https://trac.macports.org/ticket/45159#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#45159: daq 2.0.2: error: tokdefs.h: No such file or directory ---------------------------+-------------------- Reporter: ryandesign@… | Owner: jann@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: daq | ---------------------------+-------------------- Comment (by ryandesign@…): I tested on my own Snow Leopard system and it built fine. I had the buildbot re-run the Snow Leopard build and it built fine: https://build.macports.org/builders/buildports-snowleopard- x86_64/builds/29830 -- Ticket URL: <https://trac.macports.org/ticket/45159#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#45159: daq 2.0.2: error: tokdefs.h: No such file or directory ---------------------------+-------------------- Reporter: ryandesign@… | Owner: jann@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: daq | ---------------------------+-------------------- Comment (by ryandesign@…): 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/45159#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#45159: daq 2.0.2: error: tokdefs.h: No such file or directory ---------------------------+-------------------- Reporter: ryandesign@… | Owner: jann@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: fixed | Keywords: Port: daq | ---------------------------+-------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Should be fixed in r125778. This patch should be sent to the developer for inclusion in the next version. -- Ticket URL: <https://trac.macports.org/ticket/45159#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#45159: daq 2.0.2: error: tokdefs.h: No such file or directory ---------------------------+-------------------- Reporter: ryandesign@… | Owner: jann@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: fixed | Keywords: Port: daq | ---------------------------+-------------------- Comment (by jann@…): Replying to [comment:6 ryandesign@…]:
Should be fixed in r125778. This patch should be sent to the developer for inclusion in the next version.
I sent the patch to the snort developers. Thanks Ryan for fixing this. -- Ticket URL: <https://trac.macports.org/ticket/45159#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts