Skip to contentSkip to conversation

nftables: build issues

DISCUSSION Patrick McHardy 2 participants 3 messages Mar 24, 2009 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

I've CCed netfilter-devel since I assume more people will hit this.

Quoted 13 lines · Bart Trojanowski

the project sounds very interesting. I wanted to give it a try -- at least look at the user space for now -- but I ran into some build issues.

Here is what I ran:

...
Up to here everything works nicely, but then...

% cd ../nftables
% LIBS=-L${HOME}/usr/lib CFLAGS=-I${HOME}/usr/include ./configure --prefix=${HOME}/usr % make install

Quoted 5 lines

SUBDIR src/
LEX src/scanner.l
DEP src/scanner.c
YACC src/parser.y
src/parser.y: fatal error: invalid @ in skeleton: @output

I assume you're using a recent version of Debian unstable?

The nftables tree includes a copy of the bison template for debugging purposes because there's no other way to increase the amount of expected tokens reported during an syntax error. The current bison version used in Debian unstable is incompatible with the old templates. I've tried updating the template, but the bison version appears to be broken itself and incorrectly jumps into the lexer after an EOF again, causing a crash. For now I'd recommend to get an older version of bison to compile nftables. 1.2.3.dfsg-4 from etch works fine for me.

#2 lore raw
Quoted 3 lines · Patrick McHardy
Quoted 1 line

src/parser.y: fatal error: invalid @ in skeleton: @output

I assume you're using a recent version of Debian unstable?

Impressive! I am running Debian/testing.

Quoted 2 lines

For now I'd recommend to get an older version of bison to compile nftables. 1.2.3.dfsg-4 from etch works fine for me.

Thanks, will try.

-Bart

Signature · 1 line
				WebSig: http://www.jukie.net/~bart/sig/
#3 lore raw
In reply to Patrick McHardy

Just wanted to follow up...

Quoted 2 lines · Patrick McHardy

a crash. For now I'd recommend to get an older version of bison to compile nftables. 1.2.3.dfsg-4 from etch works fine for me.

This did the trick. I downgraded to bison 1:2.3.dfsg-5 (from Lenny) and I can now run 'nft --help' ... yey!

Thanks.

-Bart

Signature · 1 line
				WebSig: http://www.jukie.net/~bart/sig/