I'm getting a build error from the user tree of the SVN pull.
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT -DDEFAULT_CONFIG_FILE="\"/usr/local/etc/gpib.conf\"" -g -O2 -MT libgpib_la-ibConfLex.lo -MD -MP -MF .deps/libgpib_la-ibConfLex.Tpo -c -o libgpib_la-ibConfLex.lo test -f 'ibConfLex.c' || echo './'
ibConfLex.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/gpib.conf\" -g -O2 -MT libgpib_la-ibConfLex.lo -MD -MP -MF .deps/libgpib_la-ibConfLex.Tpo -c ./ibConfLex.c -fPIC -DPIC -o .libs/libgpib_la-ibConfLex.o
cc1: fatal error: ./ibConfLex.c: No such file or directory
ibConfLex.c is a generated file. Make sure you have the "flex"
program installed and it is found by the configure script. You will
also need "bison" installed for similar reasons.
Yes, I installed bison/byacc/flex after previous build errors. It still wouldn't compile (even after make clean). I wiped the tree and pulled it from the repo again. This time it compiled.
Shouldn't "configure" complain if the required tools are not present?
If I remove flex, ibConfLex.c and ibConfLex.h then do configure and make I get:
$ make
/bin/bash /home/fluke/svn/linux-gpib/linux-gpib-user/missing flex ibConfLex.l
/home/fluke/svn/linux-gpib/linux-gpib-user/missing: line 81: flex:
command not found
WARNING: 'flex' is missing on your system.
You should only need it if you modified a '.l' file.
You may want to install the Fast Lexical Analyzer package:
https://github.com/westes/flex
make: *** [Makefile:1344: ibConfLex.c] Error 127
On Mon, Aug 16, 2021 at 1:25 PM Michael Katzmann
michaelgk@users.sourceforge.net wrote:
--
Frank
Related
Bugs: #76
Rather odd... configure doesn't complain om my Linux system. ... just notes that they are not there
checking for flex... no
checking for lex... no
checking for bison... no
checking for byacc... no
configure doesn't complain, it just sets the "missing" script for use
if flex is actually attempted to be used during make. If you were
using a release,
ibConfLex.c would be in the tarball and you would never need flex.
On Mon, Aug 16, 2021 at 5:22 PM Michael Katzmann
michaelgk@users.sourceforge.net wrote:
OK