From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by dpdk.org (Postfix) with ESMTP id DF6541B1C3 for ; Thu, 15 Feb 2018 01:06:05 +0100 (CET) Received: by mail-qk0-f174.google.com with SMTP id f25so3359406qkm.0 for ; Wed, 14 Feb 2018 16:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=8UxFhRvHFvJa9cMS+3sPup5BtGUqHbLAa+0eq5+PQiQ=; b=l3UK+Cd641iIHDUVdjCkYuBidn3m2mYM6bufTLk3nBOw60C08qPOv7bCDeA+G3fpMc O3JoGWyym5cD9iIQhUVx3lMtBNaTYklO/v+Nq1xDU++BwvTU0cTUrRN23/tCky3nsqXO up7SOoVVGiVGOqhIwTF8RK6QXPQHO61q3YFnnEVCKySVid4nlcVfo48cSDWEl6N75WJa fsQF7xg57T85STui1H43hojp6wyI4YN0kiYg0ysF56JJ+3BPMAS1Ck75FmxkP96wSrok R807Or/8ipfxzxgdqxpdbKNYucyMeZcWFOVMDVndbGDZWehn1gFEORgq+dO+Jj4IAuX5 wYVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=8UxFhRvHFvJa9cMS+3sPup5BtGUqHbLAa+0eq5+PQiQ=; b=Z6flnj6zCsBP87fE8CRpDbR02BFbbScwo+WInQ+T9bQNhx+OHD8f4ig3JvLl0mytz+ RbJnIJtJhy8lBWolOoBkk8s4qDFvTpvne7ypZXhOPa9FjaJ2aCGIav0W9u0I9O4o5YnJ asDtPJmuSuNwATp1EQd4rRmp6Kd0f+8LjIMUEbDsfNMrEfvlL5XVXqRTnc6pYcu513pM OSv965D0uwidg3d96paGPa5tMDH2zsoXRMjIYRRFMapxxCWLlN/XxNePuWroypdHvT0v LPCJdPwm2zV+qFjaCWQw58Hy8qMOpa+YAgzfC6RZKpBgjEZydQvDru7fsqhXQlG010nL mgZw== X-Gm-Message-State: APf1xPCQFP1oaoUjAIWQZjvim4R/VhmldGchXu4QAdeBudldJdKRakWp hPZny5Z1BN0SiKi7ULY7k70DpodzkqA= X-Google-Smtp-Source: AH8x226PH6bgy0E26p5V9nAjCQ/exnEKCIvem1LkdlRxKF08SAjY+4Qql3syuGX3eCay4NljSvNxMg== X-Received: by 10.55.73.140 with SMTP id w134mr1357930qka.215.1518653164964; Wed, 14 Feb 2018 16:06:04 -0800 (PST) Received: from [128.237.188.123] ([128.237.188.123]) by smtp.gmail.com with ESMTPSA id q10sm10690788qtk.93.2018.02.14.16.06.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 16:06:04 -0800 (PST) From: Jeffrey Helt Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Message-Id: Date: Wed, 14 Feb 2018 19:06:03 -0500 To: users@dpdk.org X-Mailer: Apple Mail (2.3445.5.20) Subject: [dpdk-users] Building a shared library that uses DPDK 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, 15 Feb 2018 00:06:06 -0000 Hi, I am attempting to build a shared library that uses DPDK, specifically = that wraps the Linux socket API and backs it by shared memory DPDK = shared memory regions. I built DPDK 17.11 with = =E2=80=9CCONFIG_RTE_BUILD_SHARED_LIB=3Dy=E2=80=9D. In my shared library = directory, I am using the following Makefile: ifeq ($(RTE_SDK),) $(error "Please define RTE_SDK environment variable") endif # Default target, can be overridden by command line or environment RTE_TARGET ?=3D x86_64-native-linuxapp-gcc include $(RTE_SDK)/mk/rte.vars.mk # binary name SHARED =3D libshim.so # all source are stored in SRCS-y SRCS-y :=3D wrap_socket.c CFLAGS +=3D -O3 include $(RTE_SDK)/mk/rte.extshared.mk However, whenever I try to use my library, such as with = "LD_PRELOAD=3D./build/lib/libshim.so ./test=E2=80=9D, I receive "symbol = lookup error: ./build/lib/libshim.so: undefined symbol: rte_eal_init=E2=80= =9D. What am I missing? Thank you in advance for help! Jeff=