Thank you Burt this is my sample.am - taken from dpdk.am - but stiil get undefined symbol in runtime i added the libconfig
vppplugins_LTLIBRARIES += sample_plugin.la sample_plugin_la_LDFLAGS = $(AM_LDFLAGS) -lsample #LDLIBS = -lconfig #LDFLAGS += -lconfig sample_plugin_la_LDFLAGS += -Wl,-lconfig sample_plugin_la_LIBADD = sample_plugin_la_SOURCES = \ ........... - Sara On Wed, Mar 14, 2018 at 3:10 PM, Burt Silverman <bur...@gmail.com> wrote: > There are some automake files like dpdk.am and marvell.am and tlsmbedtls.am > that show the non-preferred way to use ..._LDFLAGS to add the library you > will use; you should use ..._LDADD just to conform to (my reading of) the > automake manual https://www.gnu.org/software/automake/manual/automake.pdf. > > Burt > > On Wed, Mar 14, 2018 at 8:10 AM, Sara Gittlin <sara.gitt...@gmail.com> > wrote: >> >> Hello All >> in my plugin i'm using libconfig to read/parse configuration file. >> VPP fails when calling to my-plugin-int because this lib is not >> linked. [/usr/bin/vpp: symbol lookup error: >> /usr/lib/vpp_plugins/sample_plugin.so: undefined symbol: config_init] >> >> which Makefile should i add this new lib libconfig ? >> >> Thank you in advance >> -Sara >> >> >> > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8538): https://lists.fd.io/g/vpp-dev/message/8538 View All Messages In Topic (3): https://lists.fd.io/g/vpp-dev/topic/14625821 Mute This Topic: https://lists.fd.io/mt/14625821/21656 New Topic: https://lists.fd.io/g/vpp-dev/post Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656 Group Home: https://lists.fd.io/g/vpp-dev Contact Group Owner: vpp-dev+ow...@lists.fd.io Terms of Service: https://lists.fd.io/static/tos Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub -=-=-=-=-=-=-=-=-=-=-=-