Re: [7.99.20] Build error
Martin Husemann <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.sparc64 |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Aug 03, 2015 at 02:48:56PM +0200, BERTRAND Joël wrote: > If I understand, flex.skl waits for FLEX_MAJOR_VERSION, > FLEX_MINOR_VERSION and FLEX_SUBMINOR_VERSION to set its own defines. > VERSION is defined in /usr/src/external/bsd/flex/dist/Makefile but not > in /usr/src/external/bsd/flex/bin/Makefile. I just did rebuild my tools/lex again (native, on sparc64-current as of this morning), and the resulting skel.c file is fine. The command building it is: /usr/tools/bin/nbsed -e 's/m4_/m4postproc_/g' -e 's/m4preproc_/m4_/g' /usr/src/external/bsd/flex/dist/flex.skl | /usr/tools/bin/nbm4 -I/usr/src/external/bsd/flex/dist -P -DFLEX_MAJOR_VERSION=`echo 2.5.35 | cut -f 1 -d .` -DFLEX_MINOR_VERSION=`echo 2.5.35 | cut -f 2 -d .` -DFLEX_SUBMINOR_VERSION=`echo 2.5.35 | cut -f 3 -d .` | /usr/tools/bin/nbsed -e 's/m4postproc_/m4_/g' | /bin/sh /usr/src/external/bsd/flex/dist/mkskel.sh > skel.c so it defines FLEX_MAJOR_VERSION, FLEX_MINOR_VERSION and FLEX_SUBMINOR_VERSION on the command line via echo 2.5.35 | cut -f 1 -d . (or -f 2/-f 3). Does that work for you manually? Maybe your shell or cut(1) are somehow broken (or strange versions found via $PATH) ? How does your command building skel.c look? Martin