Skip to contentSkip to conversation

compile error while patching iproute2 with esfq

LARTC Janis Bistevins 4 participants 4 messages May 26, 2005 – May 27, 2005

lore
Share & tools
lore
#0 lore raw

Hi!
I'm getting this error while I try to compile iproute2-2.6.11-050330:

gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o q_esfq.o q_esfq.c q_esfq.c: In function `esfq_parse_opt':
q_esfq.c:45: error: structure has no member named hash_kind' q_esfq.c:45: error: TCA_SFQ_HASH_CLASSIC' undeclared (first use in this function)
q_esfq.c:45: error: (Each undeclared identifier is reported only once q_esfq.c:45: error: for each function it appears in.) q_esfq.c:91: error: structure has no member named hash_kind' q_esfq.c:94: error: structure has no member named hash_kind' q_esfq.c:94: error: `TCA_SFQ_HASH_DST' undeclared (first use in this function)
q_esfq.c:97: error: structure has no member named hash_kind' q_esfq.c:97: error: TCA_SFQ_HASH_SRC' undeclared (first use in this function)
q_esfq.c: In function `esfq_print_opt':
q_esfq.c:140: error: structure has no member named hash_kind' q_esfq.c:142: error: TCA_SFQ_HASH_CLASSIC' undeclared (first use in this function)
q_esfq.c:145: error: `TCA_SFQ_HASH_DST' undeclared (first use in this function)
q_esfq.c:148: error: `TCA_SFQ_HASH_SRC' undeclared (first use in this function)
make[1]: *** [q_esfq.o] Error 1

Does anybody know what this mean?

Regards

Signature · 5 lines
---------------------
(o- Janis 
// \ Daniel 
V_/_ Bistevins 
----------------------

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 29 lines · Janis Bistevins

Hi!
I'm getting this error while I try to compile iproute2-2.6.11-050330:

gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include
-DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o q_esfq.o
q_esfq.c
q_esfq.c: In function `esfq_parse_opt':
q_esfq.c:45: error: structure has no member named hash_kind' q_esfq.c:45: error: TCA_SFQ_HASH_CLASSIC' undeclared (first use in this function)
q_esfq.c:45: error: (Each undeclared identifier is reported only once q_esfq.c:45: error: for each function it appears in.) q_esfq.c:91: error: structure has no member named hash_kind' q_esfq.c:94: error: structure has no member named hash_kind' q_esfq.c:94: error: `TCA_SFQ_HASH_DST' undeclared (first use in this function)
q_esfq.c:97: error: structure has no member named hash_kind' q_esfq.c:97: error: TCA_SFQ_HASH_SRC' undeclared (first use in this function)
q_esfq.c: In function `esfq_print_opt':
q_esfq.c:140: error: structure has no member named hash_kind' q_esfq.c:142: error: TCA_SFQ_HASH_CLASSIC' undeclared (first use in this function)
q_esfq.c:145: error: `TCA_SFQ_HASH_DST' undeclared (first use in this function)
q_esfq.c:148: error: `TCA_SFQ_HASH_SRC' undeclared (first use in this function)
make[1]: *** [q_esfq.o] Error 1

Quoted 2 lines

Does anybody know what this mean?

It looks to me like the ESFQ patch wasn't completely applied and/or an earlier-version ESFQ patch wasn't completely reverted and/or another patch is interfering. Try this:

1. Start out with a clean, freshly-unpacked iproute2 directory.

2. Grab the latest ESFQ patch from http://fatooh.org/esfq-2.6/. Right now it is:
http://fatooh.org/esfq-2.6/esfq-2.6.12-rc1.tar.gz

3. Patch iproute2 (and make sure patch doesn't complain; it shouldn't).

4. Do you still have the problem?

-Corey
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to Janis Bistevins
Quoted 30 lines · Janis Bistevins

Hi!
I'm getting this error while I try to compile iproute2-2.6.11-050330:

gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include
-DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o q_esfq.o
q_esfq.c
q_esfq.c: In function `esfq_parse_opt':
q_esfq.c:45: error: structure has no member named hash_kind' q_esfq.c:45: error: TCA_SFQ_HASH_CLASSIC' undeclared (first use in this function)
q_esfq.c:45: error: (Each undeclared identifier is reported only once q_esfq.c:45: error: for each function it appears in.) q_esfq.c:91: error: structure has no member named hash_kind' q_esfq.c:94: error: structure has no member named hash_kind' q_esfq.c:94: error: `TCA_SFQ_HASH_DST' undeclared (first use in this function)
q_esfq.c:97: error: structure has no member named hash_kind' q_esfq.c:97: error: TCA_SFQ_HASH_SRC' undeclared (first use in this function)
q_esfq.c: In function `esfq_print_opt':
q_esfq.c:140: error: structure has no member named hash_kind' q_esfq.c:142: error: TCA_SFQ_HASH_CLASSIC' undeclared (first use in this function)
q_esfq.c:145: error: `TCA_SFQ_HASH_DST' undeclared (first use in this function)
q_esfq.c:148: error: `TCA_SFQ_HASH_SRC' undeclared (first use in this function)
make[1]: *** [q_esfq.o] Error 1

Quoted 3 lines

Does anybody know what this mean?

Regards

Yeah, I know what it means.

Where did you get your esfq patch from?

What kernel version? If your kernel is 2.6 then get this patch:
http://kem.p.lodz.pl/~peter/qnet/

For a 2.4 kernel, go here:
ftp://andthatsjazz.org/pub/lartc/esfq-0.3.tar.gz
--
gypsy
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc