From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by dpdk.org (Postfix) with ESMTP id 905B81B0FC for ; Thu, 6 Dec 2018 04:46:06 +0100 (CET) Received: by mail-lj1-f182.google.com with SMTP id x85-v6so20365804ljb.2 for ; Wed, 05 Dec 2018 19:46:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:references:in-reply-to:mime-version:thread-index:date :message-id:subject:to:cc:content-transfer-encoding; bh=xKbwSpblx2txOKmtl2V6qE81TJqTu83hbubm2uLISg0=; b=hZc557NL4s+XBMkwr7JLTdVZXgU3I2mOb+VwEvaEgYTuE3SXwZYtYLVIhQcqFGpAo7 BFNf0YCjbUEF6/WR+Gng4p3lZWmeSqXYfmoLokAXEwGnKNMFSm4xza86OnkidmBPrO9f vhQOaYn4Wd7AjBkMLN7nZ/hpgNfspcipDA9gA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc :content-transfer-encoding; bh=xKbwSpblx2txOKmtl2V6qE81TJqTu83hbubm2uLISg0=; b=QOreyE/VQGM2RZvKXx+j4fnVariS0qjVjMEsIsR7F7ZiwrkNGG+nMcX708VBqN0xNf s3VAJ2CP+HbpWPFqpmmWbJTpBHXhC7VZPG3uk1F94Lj5ry6YX1icx4O1lDGJQJF9pOwv rV2PCH6/2M9F7ys4PexSsIfeOk5xmBcebf9DywSGIi3TgT0yEVSDRDn91Fxw4p6fvl1j cnOC+E78LiIoyrHIo5QUqtBs/gz1BICQDRFeDVYgfwWfl8zJw+rFnMpb86LpP0dWsWNm LaF52P8twCR/mmMa8zJDyQ/CyPwWVGZ/kS+0jdlS2zvug9VGbA+1Uk33fqvb2nDNqEUc 5gvw== X-Gm-Message-State: AA+aEWabppCQdxKHoAf9I8WxoZOZYu7MUfhi+aKkCD7KRHRucRrIvcPV lDEP2396VDygBGXzkiZCExiN2QISqLFhcEKng/zkcA== X-Google-Smtp-Source: AFSGD/VOoY9RhhKPGaMyt+fZ9YYl/PHHbjpognhyQQgTJwjrp16DnpY8kfX9mjo4ChreMwHgtYmODUX8EkEimx7WONM= X-Received: by 2002:a2e:197:: with SMTP id f23-v6mr17354207lji.144.1544067965826; Wed, 05 Dec 2018 19:46:05 -0800 (PST) From: Murali Krishna References: <5635130fed4850c4c2de46d792ecc717@mail.gmail.com> <83294826-D549-4E6E-9C08-5C5575621197@intel.com> <03656D1C-22D8-4238-8DD4-ACDE3B1811AC@intel.com> <49d562786a8c14cdd5a81813b85bb219@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGDgTj2PfHhGLC+ioOvoF5icQatWAI7pm86AbebMUoCA/vw4gJKzR0hpdEUOhA= Date: Thu, 6 Dec 2018 09:16:03 +0530 Message-ID: <41d807dc0c6a9557da91a9a472fcd32f@mail.gmail.com> To: "Wiles, Keith" Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-users] error while compiling pktgen-dpdk on RHEL/Centos 7.5 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 03:46:06 -0000 Hi Keith, I am able to build pktgen-dpdk app after copying pktgen-dpdk/lib/lua/x86_64-native-linuxapp-gcc/lib/libpktgen_lua.a to pktgen-dpdk/lib/common/x86_64-native-linuxapp-gcc/lib/ folder. Thanks for all the help. Regards, Murali > On Dec 5, 2018, at 12:57 PM, Murali Krishna > wrote: > > Hi Keith, > > Thanks for the pointing to docs and .pc file example. I tried to build lu= a > package manually using below steps: > > Step 1. updated kernel > > Step 2. removed existing lua-devel package > > Step 3. downloaded lua-5.3.2.tar.gz and made the below changes: > In /usr/local/src/lua-5.3.2/Makefile, changed "TO_LIB=3D liblua.a" to > "TO_LIB=3D > liblua.a liblua.so" > > In /usr/local/src/lua-5.3.2/src/Makefile > Changed "CFLAGS=3D -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) > $(MYCFLAGS)" to " CFLAGS=3D -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAG= S) > $(MYCFLAGS) -fPIC" > Added: > LUA_A=3D liblua.a > LUA_SO=3D liblua.so > Changed "ALL_T=3D $(LUA_A) $(LUA_T) $(LUAC_T)" to "ALL_T=3D $(LUA_A) $(LU= A_T) > $(LUAC_T) $(LUA_SO)" > Added: > $(LUA_T): $(LUA_O) $(LUA_A) > $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) > $(LUAC_T): $(LUAC_O) $(LUA_A) > $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS) > $(LUA_SO): $(CORE_O) $(LIB_O) > $(CC) -o $@ -shared $? > > > Step 4: exported C_INCLUDE_PATH variable > export C_INCLUDE_PATH=3D/usr/local/src/lua-5.3.2/src > > Step 5: manually added below package configuration file. > # cat /usr/lib64/pkgconfig/lua-5.3.pc > V=3D 5.3 > R=3D 5.3.2 > prefix=3D /usr > exec_prefix=3D${prefix} > libdir=3D /usr/lib64 > includedir=3D${prefix}/include > > Name: Lua > Description: An Extensible Extension Language > Version: ${R} > Requires: > Libs: -llua-${V} -lm -ldl > Cflags: -I${includedir}/lua-${V} > > Step 6: added below configuration file > # cat /usr/lib64/pkgconfig/lua5.3.pc > V=3D5.3 > R=3D5.3.2 > > prefix=3D/usr > INSTALL_BIN=3D${prefix}/bin > INSTALL_INC=3D${prefix}/include > INSTALL_LIB=3D${prefix}/lib > INSTALL_MAN=3D${prefix}/share/man/man1 > INSTALL_LMOD=3D${prefix}/share/lua/${V} > INSTALL_CMOD=3D${prefix}/lib/lua/${V} > exec_prefix=3D${prefix} > libdir=3D${exec_prefix}/lib > includedir=3D${prefix}/include > > Name: Lua > Description: An Extensible Extension Language > Version: ${R} > Requires: > Libs: -L${libdir} -llua -lm -ldl > Cflags: -I${includedir} > > > Step 7: Moved to the lua-5.3.2/src directory and ran `make linux`Step > 8: copied newly built libraries to lib64 folder > # cp /usr/local/src/lua-5.3.2/src/liblua.so /usr/lib64/liblua-5.3.so > # cp /usr/local/src/lua-5.3.2/src/liblua.a /usr/lib64/liblua-5.3.a > > Now when I try to build latest pktgen-dpdk-3.5.9 or pktgen-dpdk from dev > branch, I get the below error. > # make -j40 > =3D=3D lib > =3D=3D common > CC copyright_info.o > CC port_config.o > CC core_info.o > CC cmdline_parse_args.o > CC lscpu.o > CC utils.o > CC coremap.o > CC _pcap.o > CC cksum.o > CC l2p.o > AR libcommon.a > INSTALL-LIB libcommon.a > =3D=3D utils > CC rte_strings.o > CC rte_link.o > CC parson_json.o > CC rte_atoip.o > CC rte_portlist.o > CC inet_pton.o > CC rte_heap.o > AR libutils.a > INSTALL-LIB libutils.a > =3D=3D vec > CC rte_vec.o > AR libvec.a > INSTALL-LIB libvec.a > =3D=3D lua > CC rte_lua.o > CC rte_lua_stdio.o > CC rte_lua_utils.o > CC rte_lua_socket.o > CC rte_lua_dpdk.o > CC rte_lua_pktmbuf.o > CC rte_lua_vec.o > CC rte_lua_dapi.o > AR libpktgen_lua.a > INSTALL-LIB libpktgen_lua.a > =3D=3D cli > CC cli.o > CC cli_input.o > CC cli_cmds.o > CC cli_map.o > CC cli_gapbuf.o > CC cli_file.o > CC cli_env.o > CC cli_auto_complete.o > CC cli_help.o > CC cli_history.o > CC cli_search.o > CC cli_cmap.o > CC cli_vt100.o > CC cli_scrn.o > AR libcli.a > INSTALL-LIB libcli.a > =3D=3D app > CC cli-functions.o > CC lpktgenlib.o > CC pktgen-cmds.o > CC pktgen.o > CC pktgen-cfg.o > CC pktgen-main.o > CC pktgen-pcap.o > CC pktgen-range.o > CC pktgen-cpu.o > CC pktgen-seq.o > CC pktgen-dump.o > CC pktgen-capture.o > CC pktgen-stats.o > CC pktgen-port-cfg.o > CC pktgen-ipv6.o > CC pktgen-ipv4.o > CC pktgen-arp.o > CC pktgen-gre.o > CC pktgen-ether.o > CC pktgen-tcp.o > CC pktgen-udp.o > CC pktgen-vlan.o > CC pktgen-random.o > CC pktgen-display.o > CC pktgen-log.o > CC pktgen-gtpu.o > CC pktgen-latency.o > LD pktgen > /usr/bin/ld: cannot find -lpktgen_lua > collect2: error: ld returned 1 exit status > make[2]: *** [pktgen] Error 1 > make[1]: *** [all] Error 2 > make: *** [app] Error 2 I did not see it build the common/lua directory as that is where the librar= y comes from. I am out of town and it will be hard for me to debug this one remotely. It may take a few days sorry. > > > Thanks, > Murali > >> On Dec 5, 2018, at 7:56 AM, Wiles, Keith wrote: >> >> >> >>> On Dec 5, 2018, at 2:23 AM, Murali Krishna >>> wrote: >>> >>> Hi, >>> >>> >>> >>> I am trying to compile pktgen-3.5.8 on RHEL/Centos 7.5 kernel. I see >>> below >>> error while compiling it from source. >>> >>> >>> >>> # cd pktgen-3.5.8/ >>> >>> # make >>> >>> =3D=3D lib >>> >>> =3D=3D common >>> >>> =3D=3D utils >>> >>> =3D=3D vec >>> >>> =3D=3D lua >>> >>> Package lua5.3 was not found in the pkg-config search path. >>> >>> Perhaps you should add the directory containing `lua5.3.pc' >>> >>> to the PKG_CONFIG_PATH environment variable >>> >>> No package 'lua5.3' found >>> >>> Package lua5.3 was not found in the pkg-config search path. >>> >>> Perhaps you should add the directory containing `lua5.3.pc' >>> >>> to the PKG_CONFIG_PATH environment variable >>> >>> No package 'lua5.3' found >>> >>> CC rte_lua.o >>> >>> In file included from /root/pkt/pktgen-3.5.8/lib/lua/rte_lua.c:27:0: >>> >>> /root/pkt/pktgen-3.5.8/lib/lua/rte_lua.h:25:17: fatal error: lua.h: No >>> such >>> file or directory >>> >>> #include >>> >>> ^ >>> >>> compilation terminated. >>> >>> make[3]: *** [rte_lua.o] Error 1 >>> >>> make[2]: *** [all] Error 2 >>> >>> make[1]: *** [lua] Error 2 >>> >>> make: *** [lib] Error 2 >>> >>> >>> >>> i see same error even after installing lua53 packages. >>> >>> >>> >>> # rpm -qa | grep lua5 >>> >>> lua53u-libs-5.3.4-1.ius.centos7.x86_64 >>> >>> lua53u-5.3.4-1.ius.centos7.x86_64 >>> >>> lua53u-devel-5.3.4-1.ius.centos7.x86_64 >>> >>> >>> >>> Is there any workaround for this error? >> >> In the dev branch of Pktgen is an example pkg_config file to use and mor= e >> docs on how to get lua/Pktgen running on these distro=E2=80=99s that do = not >> supply >> a .pc file. >> >>> >> >> https://git.dpdk.org/apps/pktgen-dpdk/?h=3Ddev > > Also just updating to the latest Pktgen 3.5.9 will have the updated docs > and > .pc file example. >> >> >>> >>> >>> >>> Thanks, >>> >>> Murali >> >> Regards, >> Keith > > Regards, > Keith Regards, Keith