[flow-tools] Problems compiling flow-tools
Mark Fullmer
maf@eng.oar.net
Fri, 3 May 2002 10:27:18 -0400
Make sure that flex and bison are installed properly. Autoconf is
probably not detecting that you need to link with ylib.
Also remove src/acllex.c and src/aclyacc.c. I forgot to pull these from the
distribution, they may need to be generated locally.
On Thu, May 02, 2002 at 11:31:57AM -0400, Kevin Welch wrote:
> I get the follow errors when compiling flow-tools on Mandrake 8.2. Any
> ideas?
>
> gcc -I../lib -L../lib -g -Wall -c aclyacc.c
> y.tab.c: In function `yyparse':
> y.tab.c:417: warning: implicit declaration of function `yylex'
> y.tab.c:458: warning: implicit declaration of function `yyerror'
> gcc -I../lib -L../lib -g -Wall -c acllex.c
> lex.yy.c:1225: warning: `yyunput' defined but not used
> gcc -I../lib -L../lib -g -Wall -c acl2.c
> gcc -g -Wall -o flow-filter -L../lib flow-filter.o aclyacc.o acllex.o
> acl2.o -lft -lnsl -lz
> acllex.o: In function `yylex':
> /home/cflow/flow-tools-0.57/src/lex.yy.c:958: undefined reference to
> `yywrap'
> acllex.o: In function `input':
> /home/cflow/flow-tools-0.57/src/lex.yy.c:1307: undefined reference to
> `yywrap'
> collect2: ld returned 1 exit status
> make[1]: *** [flow-filter] Error 1
> make[1]: Leaving directory `/home/cflow/flow-tools-0.57/src'
> make: *** [all-recursive] Error 1