Hi,
i'm still having problems about getting tc to compile, it seams to be
a glibc, or yacc or bison problem and i'm totally stranger to that, i
can only understand that it quits after a double free !!!
Can anyone translate this log in a solution ?
Thank you.
Vincent.
Le 23 mars 07 à 00:24, Andy Furniss a écrit :
Looks like iproute 2.6.19/20 won't work - as Stephen said use the
git tree - it just compiled OK for me.
I don't know if your distro already has git installed if it does
just do -
git clone git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/
iproute2.git
(as one line) and it will get the latest iproute2 for you.
Andy.
-----here is my bash output----
vdautrem@paranux2:~/Desktop/git$ git clone git://git.kernel.org/pub/
scm/linux/kernel/git/shemminger/iproute2.git
Generating pack...
Done counting 3328 objects.
Deltifying 3328 objects.
100% (3328/3328) done
Total 3328 (delta 2120), reused 3141 (delta 1939)
vdautrem@paranux2:~/Desktop/git$ ls
iproute2
vdautrem@paranux2:~/Desktop/git$ make
make: *** Pas de cibles spécifiées et aucun makefile n'a été
trouvé. Arrêt.
vdautrem@paranux2:~/Desktop/git$ cd iproute2/
vdautrem@paranux2:~/Desktop/git/iproute2$ make
sh configure
TC schedulers
ATM no
make[1]: entrant dans le répertoire « /home/vdautrem/Desktop/git/
iproute2/lib »
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ll_map.o ll_map.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o libnetlink.o libnetlink.c
ar rcs libnetlink.a ll_map.o libnetlink.o
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o utils.o utils.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o rt_names.o rt_names.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ll_types.o ll_types.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ll_proto.o ll_proto.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ll_addr.o ll_addr.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o inet_proto.o inet_proto.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o dnet_ntop.o dnet_ntop.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o dnet_pton.o dnet_pton.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ipx_ntop.o ipx_ntop.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ipx_pton.o ipx_pton.c
ar rcs libutil.a utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o
inet_proto.o dnet_ntop.o dnet_pton.o ipx_ntop.o ipx_pton.o
make[1]: quittant le répertoire « /home/vdautrem/Desktop/git/
iproute2/lib »
make[1]: entrant dans le répertoire « /home/vdautrem/Desktop/git/
iproute2/ip »
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ip.o ip.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ipaddress.o ipaddress.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o iproute.o iproute.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o iprule.o iprule.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o rtm_map.o rtm_map.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o iptunnel.o iptunnel.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ip6tunnel.o ip6tunnel.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o tunnel.o tunnel.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ipneigh.o ipneigh.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ipntable.o ipntable.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o iplink.o iplink.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ipmaddr.o ipmaddr.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ipmonitor.o ipmonitor.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ipmroute.o ipmroute.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ipprefix.o ipprefix.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o ipxfrm.o ipxfrm.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o xfrm_state.o xfrm_state.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o xfrm_policy.o xfrm_policy.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o xfrm_monitor.o xfrm_monitor.c
gcc ip.o ipaddress.o iproute.o iprule.o rtm_map.o iptunnel.o
ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o ipmaddr.o
ipmonitor.o ipmroute.o ipprefix.o ipxfrm.o xfrm_state.o xfrm_policy.o
xfrm_monitor.o ../lib/libnetlink.a ../lib/libutil.a -lresolv -L../
lib -lnetlink -lutil -o ip
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -c -o rtmon.o rtmon.c
gcc rtmon.o ../lib/libnetlink.a ../lib/libutil.a -lresolv -L../lib
-lnetlink -lutil -o rtmon
make[1]: quittant le répertoire « /home/vdautrem/Desktop/git/
iproute2/ip »
make[1]: entrant dans le répertoire « /home/vdautrem/Desktop/git/
iproute2/tc »
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o tc_core.o
tc_core.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o tc_red.o
tc_red.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o tc_cbq.o
tc_cbq.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o
tc_estimator.o tc_estimator.c
ar rcs libtc.a tc_core.o tc_red.o tc_cbq.o tc_estimator.o
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o tc.o tc.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o
tc_qdisc.o tc_qdisc.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o
tc_class.o tc_class.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o
tc_filter.o tc_filter.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o tc_util.o
tc_util.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o
tc_monitor.o tc_monitor.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o
m_police.o m_police.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o
m_estimator.o m_estimator.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o
m_action.o m_action.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -
DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o
m_ematch.o m_ematch.c
bison -d -t -v -o emp_ematch.yacc.c emp_ematch.y
"emp_ematch.y", line 9: junk after `%%' in definition section
"emp_ematch.y", line 9: no input grammar
*** glibc detected *** bison: double free or corruption (!prev):
0x0805b638 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0x401a08bd]
/lib/tls/i686/cmov/libc.so.6(__libc_free+0x84)[0x401a0a44]
/lib/tls/i686/cmov/libc.so.6(fclose+0x14d)[0x4018fdbd]
bison[0x804eb1f]
bison[0x805586b]
bison[0x805596b]
bison[0x8050047]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0x4014f8cc]
bison(__gxx_personality_v0+0x59)[0x8048db1]
======= Memory map: ========
08048000-0805a000 r-xp 00000000 03:01 475370 /usr/bin/bison
0805a000-0805b000 rw-p 00011000 03:01 475370 /usr/bin/bison
0805b000-0807c000 rw-p 0805b000 00:00 0 [heap]
40000000-40019000 r-xp 00000000 03:01 781846 /lib/ld-2.4.so
40019000-4001b000 rw-p 00018000 03:01 781846 /lib/ld-2.4.so
4001b000-40022000 rw-p 4001b000 00:00 0
40023000-40024000 rw-p 40023000 00:00 0
4002a000-400fe000 r-xp 00000000 03:01 474750 /usr/lib/libstdc+
+.so.6.0.8
400fe000-40101000 r--p 000d4000 03:01 474750 /usr/lib/libstdc+
+.so.6.0.8
40101000-40103000 rw-p 000d7000 03:01 474750 /usr/lib/libstdc+
+.so.6.0.8
40103000-40109000 rw-p 40103000 00:00 0
40109000-4012d000 r-xp 00000000 03:01 814789 /lib/tls/i686/cmov/
libm-2.4.so
4012d000-4012f000 rw-p 00023000 03:01 814789 /lib/tls/i686/cmov/
libm-2.4.so
4012f000-40139000 r-xp 00000000 03:01 781891 /lib/libgcc_s.so.1
40139000-4013a000 rw-p 00009000 03:01 781891 /lib/libgcc_s.so.1
4013a000-40267000 r-xp 00000000 03:01 814781 /lib/tls/i686/cmov/
libc-2.4.so
40267000-40269000 r--p 0012c000 03:01 814781 /lib/tls/i686/cmov/
libc-2.4.so
40269000-4026b000 rw-p 0012e000 03:01 814781 /lib/tls/i686/cmov/
libc-2.4.so
4026b000-40270000 rw-p 4026b000 00:00 0
40300000-40321000 rw-p 40300000 00:00 0
40321000-40400000 ---p 40321000 00:00 0
bf87a000-bf88f000 rw-p bf87a000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
make[1]: *** [emp_ematch.yacc.c] Abandon
make[1]: quittant le répertoire « /home/vdautrem/Desktop/git/
iproute2/tc »
make: *** [all] Erreur 2
vdautrem@paranux2:~/Desktop/git/iproute2$
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc