From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by dpdk.org (Postfix) with ESMTP id 81F54903 for ; Sat, 28 Feb 2015 08:36:33 +0100 (CET) Received: by lams18 with SMTP id s18so21600509lam.11 for ; Fri, 27 Feb 2015 23:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=S9pYxWeAJ+diqtwFM1uU6UBVRKhsp5H8yrCT0gVB9sY=; b=aRSaDFH2D89/gV11hqUEsX5Scqb5A6RetgmO3lwE2xqrZ1L1HaqOeWgSBv31jV55VF P2hkAHJinV5gfawFVVYRHus6DZZSAsAc1jWMb1AL88+78VPx7mTpekrEC7PDcid4oLHM Kj1PmmYeXpD6G2Yju2XXsXhqhKcKublpsUE2twmlD9hc6xi0OujO0pr0fMAFeqksSTYF MZ45K9Y4gnhKm9sFow/WFyQXpDz70TO4WqwQG3o4DhB8cMaN2jVZEAW2WsSKo9X79mRI wQr+H6yHeiIdxfWCN6+3PQ+hRiiQtw3hjDwmGVrfgE+VQMdzPsoDHrforfOQf2w7nJpK B+ZA== MIME-Version: 1.0 X-Received: by 10.152.5.6 with SMTP id o6mr16115570lao.59.1425108992847; Fri, 27 Feb 2015 23:36:32 -0800 (PST) Received: by 10.25.214.13 with HTTP; Fri, 27 Feb 2015 23:36:32 -0800 (PST) Date: Sat, 28 Feb 2015 13:06:32 +0530 Message-ID: From: Shankari Vaidyalingam To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Error seen while compiling Pktgen-dpdk X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2015 07:36:33 -0000 Hi, I'm facing the below error while executing make on Pktgen-dpdk source. I'm using 2.8 version of pktgen downloaded I have built DPDK binaries and then tried building pktgen-dpdk. RTE_TARGET is set to x86_64-pktgen-linuxapp-gcc and RTE_SDK is set to the directory where dpdk source files are present. DPDK version - 1.7.1 Please let me know how to resolve this error. controller@controller-VirtualBox:~/pktgen-2.8.0$ sudo RTE_SDK=3D/home/controller/dpdk-1.7.1 make make -C lib make[1]: Entering directory `/home/controller/pktgen-2.8.0/lib' =3D=3D common =3D=3D lua =3D=3D src make[1]: Leaving directory `/home/controller/pktgen-2.8.0/lib' make -C app make[1]: Entering directory `/home/controller/pktgen-2.8.0/app' CC lpktgenlib.o lpktgenlib.c: In function =E2=80=98getf_etheraddr=E2=80=99: lpktgenlib.c:174:9: error: passing argument 1 of =E2=80=98cmdline_parse_eth= eraddr=E2=80=99 from incompatible pointer type [-Werror] /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_etheraddr.h:75:5: note: expected =E2=80=98struct cmdline_parse_token_hdr_t *=E2=80=99 but arg= ument is of type =E2=80=98struct cmdline_etheraddr_t *=E2=80=99 lpktgenlib.c: In function =E2=80=98getf_ipaddr=E2=80=99: lpktgenlib.c:185:6: error: too many arguments to function =E2=80=98cmdline_parse_ipaddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_ipaddr.h:94:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_set=E2=80=99: lpktgenlib.c:233:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98set_seq=E2=80=99: lpktgenlib.c:290:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c:291:3: error: too many arguments to function =E2=80=98cmdline_parse_etheraddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_etheraddr.h:75:5: note: declared here lpktgenlib.c:292:3: error: too many arguments to function =E2=80=98cmdline_parse_etheraddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_etheraddr.h:75:5: note: declared here lpktgenlib.c:295:7: error: too many arguments to function =E2=80=98cmdline_parse_ipaddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_ipaddr.h:94:5: note: declared here lpktgenlib.c:298:7: error: too many arguments to function =E2=80=98cmdline_parse_ipaddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_ipaddr.h:94:5: note: declared here lpktgenlib.c: In function =E2=80=98set_seqTable=E2=80=99: lpktgenlib.c:370:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_icmp=E2=80=99: lpktgenlib.c:466:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_sendARP=E2=80=99: lpktgenlib.c:494:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_set_mac=E2=80=99: lpktgenlib.c:521:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c:522:2: error: too many arguments to function =E2=80=98cmdline_parse_etheraddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_etheraddr.h:75:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_prototype=E2=80=99: lpktgenlib.c:582:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_set_ip_addr=E2=80=99: lpktgenlib.c:615:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c:619:2: error: too many arguments to function =E2=80=98cmdline_parse_ipaddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_ipaddr.h:94:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_set_type=E2=80=99: lpktgenlib.c:650:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_send_ping4=E2=80=99: lpktgenlib.c:679:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_pcap=E2=80=99: lpktgenlib.c:739:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_start=E2=80=99: lpktgenlib.c:768:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_stop=E2=80=99: lpktgenlib.c:796:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_prime=E2=80=99: lpktgenlib.c:845:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_clear=E2=80=99: lpktgenlib.c:1087:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_reset_config=E2=80=99: lpktgenlib.c:1172:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_dst_mac=E2=80=99: lpktgenlib.c:1201:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c:1202:2: error: too many arguments to function =E2=80=98cmdline_parse_etheraddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_etheraddr.h:75:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_src_mac=E2=80=99: lpktgenlib.c:1232:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c:1233:2: error: too many arguments to function =E2=80=98cmdline_parse_etheraddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_etheraddr.h:75:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_dst_ip=E2=80=99: lpktgenlib.c:1265:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c:1267:2: error: too many arguments to function =E2=80=98cmdline_parse_ipaddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_ipaddr.h:94:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_src_ip=E2=80=99: lpktgenlib.c:1300:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c:1302:2: error: too many arguments to function =E2=80=98cmdline_parse_ipaddr=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_ipaddr.h:94:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_dst_port=E2=80=99: lpktgenlib.c:1332:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_src_port=E2=80=99: lpktgenlib.c:1361:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_vlan_id=E2=80=99: lpktgenlib.c:1391:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_vlanid=E2=80=99: lpktgenlib.c:1424:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_vlan=E2=80=99: lpktgenlib.c:1455:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_mpls_entry=E2=80=99: lpktgenlib.c:1485:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_mpls=E2=80=99: lpktgenlib.c:1514:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_qinqids=E2=80=99: lpktgenlib.c:1544:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_qinq=E2=80=99: lpktgenlib.c:1579:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_gre_key=E2=80=99: lpktgenlib.c:1609:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_gre=E2=80=99: lpktgenlib.c:1638:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_gre_eth=E2=80=99: lpktgenlib.c:1666:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_pkt_size=E2=80=99: lpktgenlib.c:1697:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_range=E2=80=99: lpktgenlib.c:1728:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_process=E2=80=99: lpktgenlib.c:1802:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_garp=E2=80=99: lpktgenlib.c:1831:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_blink=E2=80=99: lpktgenlib.c:1860:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_isSending=E2=80=99: lpktgenlib.c:1916:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_linkState=E2=80=99: lpktgenlib.c:1974:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_portSizes=E2=80=99: lpktgenlib.c:2045:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_pktStats=E2=80=99: lpktgenlib.c:2114:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_portStats=E2=80=99: lpktgenlib.c:2189:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_decompile=E2=80=99: lpktgenlib.c:2325:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_sendPkt=E2=80=99: lpktgenlib.c:2358:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here lpktgenlib.c: In function =E2=80=98pktgen_recvPkt=E2=80=99: lpktgenlib.c:2428:2: error: too many arguments to function =E2=80=98cmdline_parse_portlist=E2=80=99 /home/controller/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/cmdline_pars= e_portlist.h:83:5: note: declared here cc1: all warnings being treated as errors make[1]: *** [lpktgenlib.o] Error 1 make[1]: Leaving directory `/home/controller/pktgen-2.8.0/app' make: *** [app] Error 2