LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Error compiling daq from Slackbuild (https://www.linuxquestions.org/questions/slackware-arm-108/error-compiling-daq-from-slackbuild-4175575370/)

enine 03-19-2016 01:16 PM

Error compiling daq from Slackbuild
 
I'm attempting to build daq from the Slackbuild
https://slackbuilds.org/repository/14.1/libraries/daq/

I realize the slackbuilds are not generally for ARM/pi but so far everything I've built works.

In this case I'm getting the following:
Code:

bison -y -p sfbpf_ -d ./grammar.y
Makefile:787: recipe for target 'sf_grammar.c' failed
make: *** [sf_grammar.c] Broken pipe

I did try and download daq from the snort site and manually configure and make with the same error.

My searching is not finding much so I thought I'd try here and then register on their forum and ask.

Anyone seen this before?

louigi600 03-21-2016 04:54 AM

Not in that particular situation but I've had builds brake dew to broken pipes. I run most of my ARM devices swapless (conservative choice for preserving flash device life) and I've had broken pipe happen dew to not having enough ram to compile stuff (but that does not mean you're on the same issue).

Pipes generally brake when the reader part suddenly stops reading unexpectedly... not just pausing because that would fill the buffer and the writer would then pause too until the reader starts reading again.
Try to find out who was supposed to be reading ... it will help you debug why it died.

enine 03-21-2016 01:02 PM

From what I found the broken pipe is just the symptom of something else, in this case its line prior recipe for target 'sf_grammar.c' failed

I started thinking it was due to the minirootfs not having all the Slackware packages so I started installing packages. emacs was the one that fixed it. It must be calling something in that package to process that file.

louigi600 03-22-2016 02:36 AM

In that case the pipe probably broke because reader failed to start ... still fits pretty well in
Quote:

Try to find out who was supposed to be reading ... it will help you debug why it died.
I chose that sentence carefully because I had someone get offended wen told that he might be missing build dependencies ... glad you were able to solve your issue regardless of whether my post was of any help.

sparkytheslacker 10-23-2016 04:28 PM

m4-1.4.17-arm-3
 
I had the same issue compiling DAQ while working on building Snort.

Some kinda flex / bison issue, failed while doing something with an sf_grammar.c file.

After trying multiple things, including installing emacs based on the posts above (and then removing it, hoping my little raspberry pi wouldn't feel too violated over having emacs installed, if only temporarily), I realized it was missing m4.


All times are GMT -5. The time now is 02:15 AM.