Ethernet Products
Determine ramifications of Intel® Ethernet products and technologies
5212 Discussions

link a static library to a shared library in dpdk

aj_merin
Beginner
2,252 Views

Hi,

Is there any way to link librte_eal.a to a custom dpdk based shared library, as while compiling the shared library I am getting the following error;

LD libdpdkhello.so
test_hello.o: In function `print_hello':
test_hello.c:(.text+0x79): undefined reference to `rte_eal_init'
test_hello.c:(.text+0xb1): undefined reference to `__rte_panic'

The Makefile is as below;

RTE_TARGET := x86_64-native-linuxapp-gcc
export RTE_TARGET

ifeq ($(RTE_SDK),)
$(error "Please define RTE_SDK environment variable")
endif

# Default target, can be overriden by command line or environment
RTE_TARGET ?= x86_64-native-linuxapp-gcc

include $(RTE_SDK)/mk/rte.vars.mk

# binary name
SHARED = libdpdkhello.so

# all source are stored in SRCS-y
#SRCS-y := hello.c
SRCS-y := test_hello.c

CFLAGS += -O3 -DDPDK=1
CFLAGS += $(WERROR_FLAGS)
LDFLAGS += --no-undefined

include ${RTE_SDK}/mk/rte.extshared.mk

0 Kudos
2 Replies
AlfredoS_Intel
Moderator
2,245 Views

Hi Merin,

Thank you for posting in our Intel® Ethernet Communities Page.

We have a special support site for DPDK concerns. Please go to this link, https://www.intel.com/content/www/us/en/design/support/ips/training/welcome.html, and click "Access and Log In" to contact the DPDK support.

Please let us know if you have any further questions.

We look forward to hearing from you. If we do not get your reply, we will follow up after 3 business days.



Best Regards,

Alfred S

Intel® Customer Support



0 Kudos
AlfredoS_Intel
Moderator
2,224 Views

Hi Merin, 

We need to close this thread since we have not gotten a response from you: maybe because you are busy or preoccupied at the moment. We know that this is important for you to get it resolved and it is also equally important for us to give you the right solution; as much as we would like to assist you, we need to close it to attend to other customers. We hope for your consideration and understanding on this one.


If you need any additional information, please submit a new question as this thread will no longer being monitored.


Thank you for contacting Intel® and have a great week!




Best Regards,

Alfred S

Intel® Customer Support


0 Kudos
Reply