Bug 1949 - iproute build failed
iproute build failed
Status: CLOSED FIXED
Product: dce
Classification: Unclassified
Component: other
unspecified
PC Windows
: P5 enhancement
Assigned To: Hajime Tazaki
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-11 09:38 EDT by natale.patriciello
Modified: 2015-05-26 06:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description natale.patriciello 2014-07-11 09:38:44 EDT
>> Building iproute-2.6.38 - 
    > /home/nat/Work/ns3/dce/source/iproute-2.6.38/configure
 mkdir /home/nat/Work/ns3/dce/source/iproute-2.6.38/objdir dir=/home/nat/Work/ns3/dce/source/iproute-2.6.38
mkdir: cannot create directory ‘/home/nat/Work/ns3/dce/source/iproute-2.6.38/objdir’: File exists
 make CCOPTS+=-fpic CCOPTS+=-D_GNU_SOURCE CCOPTS+=-O0 CCOPTS+=-U_FORTIFY_SOURCE CCOPTS+=-g LDFLAGS=-pie LDFLAGS+=-rdynamic dir=/home/nat/Work/ns3/dce/source/iproute-2.6.38
sh configure 
TC schedulers
 ATM	no
 IPT	using xtables
iptables modules directory: not found!
make[1]: Entering directory '/home/nat/Work/ns3/dce/source/iproute-2.6.38/lib'
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o ll_map.o ll_map.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o libnetlink.o libnetlink.c
ar rcs libnetlink.a ll_map.o libnetlink.o
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o utils.o utils.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o rt_names.o rt_names.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o ll_types.o ll_types.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o ll_proto.o ll_proto.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o ll_addr.o ll_addr.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o inet_proto.o inet_proto.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o dnet_ntop.o dnet_ntop.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o dnet_pton.o dnet_pton.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o ipx_ntop.o ipx_ntop.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -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]: Leaving directory '/home/nat/Work/ns3/dce/source/iproute-2.6.38/lib'
make[1]: Entering directory '/home/nat/Work/ns3/dce/source/iproute-2.6.38/ip'
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ip.o ip.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ipaddress.o ipaddress.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ipaddrlabel.o ipaddrlabel.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o iproute.o iproute.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o iprule.o iprule.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o rtm_map.o rtm_map.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o iptunnel.o iptunnel.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ip6tunnel.o ip6tunnel.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o tunnel.o tunnel.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ipneigh.o ipneigh.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ipntable.o ipntable.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o iplink.o iplink.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ipmaddr.o ipmaddr.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ipmonitor.o ipmonitor.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ipmroute.o ipmroute.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ipprefix.o ipprefix.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o iptuntap.o iptuntap.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ipxfrm.o ipxfrm.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o xfrm_state.o xfrm_state.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o xfrm_policy.o xfrm_policy.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o xfrm_monitor.o xfrm_monitor.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o iplink_vlan.o iplink_vlan.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o link_veth.o link_veth.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o link_gre.o link_gre.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o iplink_can.o iplink_can.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o iplink_macvlan.o iplink_macvlan.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o iplink_macvtap.o iplink_macvtap.c
gcc -pie -rdynamic  ip.o ipaddress.o ipaddrlabel.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 iptuntap.o ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o iplink_vlan.o link_veth.o link_gre.o iplink_can.o iplink_macvlan.o iplink_macvtap.o ../lib/libnetlink.a ../lib/libutil.a  -lresolv -L../lib -lnetlink -lutil -ldl -o ip
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o rtmon.o rtmon.c
gcc -pie -rdynamic  rtmon.o ../lib/libnetlink.a ../lib/libutil.a  -lresolv -L../lib -lnetlink -lutil -ldl -o rtmon
make[1]: Leaving directory '/home/nat/Work/ns3/dce/source/iproute-2.6.38/ip'
make[1]: Entering directory '/home/nat/Work/ns3/dce/source/iproute-2.6.38/tc'
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc_core.o tc_core.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc_red.o tc_red.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc_cbq.o tc_cbq.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc_estimator.o tc_estimator.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc_stab.o tc_stab.c
ar rcs libtc.a tc_core.o tc_red.o tc_cbq.o tc_estimator.o tc_stab.o
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc.o tc.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc_qdisc.o tc_qdisc.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc_class.o tc_class.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc_filter.o tc_filter.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc_util.o tc_util.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o tc_monitor.o tc_monitor.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o m_police.o m_police.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o m_estimator.o m_estimator.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o m_action.o m_action.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -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:12.1-13: warning: deprecated directive, use ‘%name-prefix’ [-Wdeprecated]
 %name-prefix="ematch_"
 ^^^^^^^^^^^^^
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o emp_ematch.yacc.o emp_ematch.yacc.c
emp_ematch.yacc.c: In function ‘ematch_parse’:
emp_ematch.yacc.c:65:25: warning: passing argument 1 of ‘ematch_error’ discards ‘const’ qualifier from pointer target type
 #define yyerror         ematch_error
                         ^
emp_ematch.yacc.c:1509:9: note: in expansion of macro ‘yyerror’
         yyerror (yymsgp);
         ^
emp_ematch.yacc.c:65:25: note: expected ‘char *’ but argument is of type ‘const char *’
 #define yyerror         ematch_error
                         ^
emp_ematch.y:22:14: note: in expansion of macro ‘yyerror’
  extern void yyerror(char *s);
              ^
flex  -oemp_ematch.lex.c emp_ematch.l
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o emp_ematch.lex.o emp_ematch.lex.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_fifo.o q_fifo.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_sfq.o q_sfq.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_red.o q_red.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_prio.o q_prio.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_tbf.o q_tbf.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_cbq.o q_cbq.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_rr.o q_rr.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_multiq.o q_multiq.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_netem.o q_netem.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o f_rsvp.o f_rsvp.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o f_u32.o f_u32.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o f_route.o f_route.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o f_fw.o f_fw.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o f_basic.o f_basic.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o f_flow.o f_flow.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o f_cgroup.o f_cgroup.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_dsmark.o q_dsmark.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_gred.o q_gred.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o f_tcindex.o f_tcindex.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_ingress.o q_ingress.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_hfsc.o q_hfsc.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_htb.o q_htb.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o q_drr.o q_drr.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o m_gact.o m_gact.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o m_mirred.o m_mirred.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o m_nat.o m_nat.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o m_pedit.o m_pedit.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o m_skbedit.o m_skbedit.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o m_csum.o m_csum.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o p_ip.o p_ip.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o p_icmp.o p_icmp.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o p_tcp.o p_tcp.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o p_udp.o p_udp.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o em_nbyte.o em_nbyte.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o em_cmp.o em_cmp.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o em_u32.o em_u32.c
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB   -c -o em_meta.o em_meta.c
gcc -pie -rdynamic  tc.o tc_qdisc.o tc_class.o tc_filter.o tc_util.o tc_monitor.o m_police.o m_estimator.o m_action.o m_ematch.o emp_ematch.yacc.o emp_ematch.lex.o q_fifo.o q_sfq.o q_red.o q_prio.o q_tbf.o q_cbq.o q_rr.o q_multiq.o q_netem.o f_rsvp.o f_u32.o f_route.o f_fw.o f_basic.o f_flow.o f_cgroup.o q_dsmark.o q_gred.o f_tcindex.o q_ingress.o q_hfsc.o q_htb.o q_drr.o m_gact.o m_mirred.o m_nat.o m_pedit.o m_skbedit.o m_csum.o p_ip.o p_icmp.o p_tcp.o p_udp.o em_nbyte.o em_cmp.o em_u32.o em_meta.o ../lib/libnetlink.a ../lib/libutil.a tc_core.o tc_red.o tc_cbq.o tc_estimator.o tc_stab.o  -lresolv -L../lib -lnetlink -lutil -L. -ltc -lm -ldl -o tc
gcc -fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE -g -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DCONFIG_GACT -DCONFIG_GACT_PROB -pie -rdynamic -shared -fpic -o m_xt.so m_xt.c -lxtables
m_xt.c: In function ‘parse_ipt’:
m_xt.c:165:9: warning: passing argument 2 of ‘xtables_merge_options’ discards ‘const’ qualifier from pointer target type
         xtables_merge_options(tcipt_globals.opts,
         ^
In file included from m_xt.c:21:0:
/usr/include/xtables.h:426:23: note: expected ‘struct option *’ but argument is of type ‘const struct option *’
 extern struct option *xtables_merge_options(struct option *origopts,
                       ^
m_xt.c:165:9: warning: passing argument 3 of ‘xtables_merge_options’ from incompatible pointer type
         xtables_merge_options(tcipt_globals.opts,
         ^
In file included from m_xt.c:21:0:
/usr/include/xtables.h:426:23: note: expected ‘const struct option *’ but argument is of type ‘unsigned int *’
 extern struct option *xtables_merge_options(struct option *origopts,
                       ^
m_xt.c:165:9: error: too few arguments to function ‘xtables_merge_options’
         xtables_merge_options(tcipt_globals.opts,
         ^
In file included from m_xt.c:21:0:
/usr/include/xtables.h:426:23: note: declared here
 extern struct option *xtables_merge_options(struct option *origopts,
                       ^
m_xt.c: In function ‘print_ipt’:
m_xt.c:310:8: warning: passing argument 2 of ‘xtables_merge_options’ discards ‘const’ qualifier from pointer target type
        xtables_merge_options(tcipt_globals.opts,
        ^
In file included from m_xt.c:21:0:
/usr/include/xtables.h:426:23: note: expected ‘struct option *’ but argument is of type ‘const struct option *’
 extern struct option *xtables_merge_options(struct option *origopts,
                       ^
m_xt.c:310:8: warning: passing argument 3 of ‘xtables_merge_options’ from incompatible pointer type
        xtables_merge_options(tcipt_globals.opts,
        ^
In file included from m_xt.c:21:0:
/usr/include/xtables.h:426:23: note: expected ‘const struct option *’ but argument is of type ‘unsigned int *’
 extern struct option *xtables_merge_options(struct option *origopts,
                       ^
m_xt.c:310:8: error: too few arguments to function ‘xtables_merge_options’
        xtables_merge_options(tcipt_globals.opts,
        ^
In file included from m_xt.c:21:0:
/usr/include/xtables.h:426:23: note: declared here
 extern struct option *xtables_merge_options(struct option *origopts,
                       ^
Makefile:124: recipe for target 'm_xt.so' failed
make[1]: *** [m_xt.so] Error 1
rm emp_ematch.lex.c emp_ematch.yacc.c
make[1]: Leaving directory '/home/nat/Work/ns3/dce/source/iproute-2.6.38/tc'
Makefile:43: recipe for target 'all' failed
make: *** [all] Error 2

 >> Building iproute-2.6.38 - Problem
   > Subprocess failed with error 2: ['make', 'CCOPTS+=-fpic', 'CCOPTS+=-D_GNU_SOURCE', 'CCOPTS+=-O0', 'CCOPTS+=-U_FORTIFY_SOURCE', 'CCOPTS+=-g', 'LDFLAGS=-pie', 'LDFLAGS+=-rdynamic']
 > Error:  Critical dependency, module "iproute-2.6.38" failed 
   For more information call Bake with --debug and/or -v, -vvv, for full verbose mode (bake --help)


In my distribution I have iproute3. Iproute2 is no longer maintained FOR AGES. It is a problem?
Comment 1 natale.patriciello 2014-07-11 09:47:13 EDT
This patch from gentoo seems to help

https://370793.bugs.gentoo.org/attachment.cgi?id=276401
Comment 2 natale.patriciello 2014-07-11 09:47:27 EDT
Which is from this link https://bugs.gentoo.org/show_bug.cgi?id=370793
Comment 3 Hajime Tazaki 2014-07-11 12:24:35 EDT
Thanks Natale.

The build error is due to the existence of xtables.h, which most of mine don't have.

Indeed the patch of gentoo works for dce and I plan to add the patch applying during bake build.

Indeed, iproute2 (2.3.38) is no longer maintained but the kernel which dce is using is 2.6.36 and requires proper version of iproute (iproute 2.6.36 more precisely).

I have never heard about iproute3. which distribution are you using (again) ?

if we add linux-3.x kernel with DCE, that is the case for newer version of iproute .

Thanks for reporting this issue. I will fix it.
Comment 4 natale.patriciello 2014-07-12 10:28:42 EDT
Hi Hajime !

I'm actually using ArchLinux. For iproute, effectively iproute3 doesn't exist, but exists iproute2 version 3.14 (what a stupid naming scheme, anyway :-D).

There is the link:
http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2

It is time consuming moving into linux 3.14 for dce?

Thank you
Comment 5 Hajime Tazaki 2014-07-15 06:45:47 EDT
(off topic though)

(In reply to natale.patriciello from comment #4)

> I'm actually using ArchLinux. For iproute, effectively iproute3 doesn't
> exist, but exists iproute2 version 3.14 (what a stupid naming scheme, anyway
> :-D).

I see.
due to heavy dependencies of DCE with glibc and gcc version, debug symbols for elf-loader, we only tested with a specific version of Linux at this moment.

ArchLinux is the one we didn't test. I guess it's gonna be hard to run DCE.

my docker hub is intended for such an environment.

https://registry.hub.docker.com/u/thehajime/ns-3-dce/

> There is the link:
> http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
> 
> It is time consuming moving into linux 3.14 for dce?

a little;)
the github project (almost) supports up-to-date Linux kernel (right now 3.16-rc2 is merged).

https://github.com/direct-code-execution/net-next-sim

for such latest kernel, we need iproute2-3.16-rcxxx.tar.gz or git version of iproute2, but I lazily skipped to update iproute2 for bake build. so far it works fine but I will update if it breaks compatibility badly.
Comment 6 Hajime Tazaki 2014-07-15 06:55:09 EDT
I added the patch and used during bake build.

changeset: 3aa67e451203 should fix this issue.
Comment 7 Hajime Tazaki 2014-07-23 10:20:37 EDT
this broke previous version build (i.e., dce-linux-1.3, 1.2, etc) due to lack of patch file in the version.

should handle correctly by the other way.
Comment 8 Hajime Tazaki 2014-09-14 11:38:28 EDT
(In reply to Hajime Tazaki from comment #7)
> this broke previous version build (i.e., dce-linux-1.3, 1.2, etc) due to
> lack of patch file in the version.
> 
> should handle correctly by the other way.

the following changesets should fix the issue.

http://code.nsnam.org/bake/rev/5536ad2f5122
http://code.nsnam.org/ns-3-dce/rev/f7b41f41fd45