On Monday 28 February 2005 15:25, Ionut Spirlea wrote: > salut, > > e problema cu headerele de kernel. > n-are flexu treaba
Ba are. Sunt doua probleme distincte: 1. Calea catre headere si definirea lui inet_make_mask si inet_mask_len care se rezolva prin aplicarea patch-ului: http://rpms.xcyb.org/other/htb_tools-0.2.6test2-FC2.patch (initial a fost facut pentru FC2 dar merge si pe restul distributiilor) 2. Trebuie folosit flex 2.5.4a nu altul mai nou. Citez din descrierea pachetului "flex" de pe debian: <--- cut here ---> The behaviour of Flex has undergone a major change since version 2.5.4a; Flex scanners are now reenterant, you may have multiple scanners in the same program with differing sets of defaults, and they play nicer with modern C and C++ compilers. The Flip side is that Flex no longer conforms to the POSIX lex behaviour, and the scanners require conforming implementations when flex is used in ANSI C mode. The package flex-old provides the older behaviour. </--- cut here ---> Cu alte cuvinte pe Debian trebuie instalat pachetul flex-old ca sa se compileze htb_tools (+patch-ul de mai sus). > arny wrote: > > Incearca cu alte versiuni de flex. > > Pe slackware merge fara nici o problema. > > Din pacate nu am debian unde sa testez. > > > >>ai idee de ce nu se compileaza pe debian ? > >> > >> > >>/usr/src/htb_tools-0.2.6-test2# make > >>flex -i parse_cfg.l > >>gcc -O2 -Wall -g -I./include -I./include-glibc -include > >>./include-glibc/glibc-bugs.h -c lex.yy.c > >>lex.yy.c: In function `yylex': > >>lex.yy.c:1032: warning: label `find_rule' defined but not used > >>parse_cfg.l: At top level: > >>lex.yy.c:2432: warning: `yy_flex_realloc' defined but not used > >>lex.yy.c:1911: warning: `yyunput' defined but not used > >>gcc -O2 -Wall -g -I./include -I./include-glibc -include > >>./include-glibc/glibc-bugs.h -c -o lib/ll_map.o lib/ll_map.c > >>In file included from include-glibc/netinet/in.h:7, > >> from lib/ll_map.c:19: > >>/usr/include/linux/in.h:144: field `gr_group' has incomplete type > >>/usr/include/linux/in.h:150: field `gsr_group' has incomplete type > >>/usr/include/linux/in.h:151: field `gsr_source' has incomplete type > >>/usr/include/linux/in.h:157: field `gf_group' has incomplete type > >>/usr/include/linux/in.h:160: field `gf_slist' has incomplete type > >>make: *** [lib/ll_map.o] Error 1 Mihai -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://linux.bitdefender.com/ --- Detalii despre listele noastre de mail: http://www.lug.ro/
