https://bugs.linaro.org/show_bug.cgi?id=3198

            Bug ID: 3198
           Summary: example ddf_app link failures with DPDK PMDs
           Product: OpenDataPlane - linux- generic reference
           Version: v1.15.0.0
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: ---
         Component: driver interface
          Assignee: christophe.mil...@linaro.org
          Reporter: yi...@linaro.org
                CC: lng-odp@lists.linaro.org
  Target Milestone: ---

Overview: example ddf_app link failures with DPDK PMDs.

Steps to Reproduce: Minimized, easy-to-follow steps that will trigger the bug.
Include any special setup steps.
1. use below command to configure ODP with dpdk and enable all tests.
   /configure --with-dpdk-path=`pwd`/dpdk/$TARGET --enable-test-example ...
2. run make V=1 check 2>&1 | tee check.log

Actual Results: What happened after performing the above steps.

Making check in ddf_app
make[2]: Entering directory '/home/yihe01/workspace/odp-linux/example/ddf_app'
  CC       odp_ddf_app-odp_ddf_app.o
  CCLD     odp_ddf_app
/usr/bin/ld: cannot find -lrte_pmd_af_packet
/usr/bin/ld: cannot find -lrte_pmd_bnxt
/usr/bin/ld: cannot find -lrte_pmd_bond
/usr/bin/ld: cannot find -lrte_pmd_cxgbe
/usr/bin/ld: cannot find -lrte_pmd_e1000
/usr/bin/ld: cannot find -lrte_pmd_ena
/usr/bin/ld: cannot find -lrte_pmd_enic
/usr/bin/ld: cannot find -lrte_pmd_fm10k
/usr/bin/ld: cannot find -lrte_pmd_i40e
/usr/bin/ld: cannot find -lrte_pmd_ixgbe
/usr/bin/ld: cannot find -lrte_pmd_null
/usr/bin/ld: cannot find -lrte_pmd_null_crypto
/usr/bin/ld: cannot find -lrte_pmd_pcap
/usr/bin/ld: cannot find -lrte_pmd_qede
/usr/bin/ld: cannot find -lrte_pmd_ring
/usr/bin/ld: cannot find -lrte_pmd_sfc_efx
/usr/bin/ld: cannot find -lrte_pmd_tap
/usr/bin/ld: cannot find -lrte_pmd_vhost
/usr/bin/ld: cannot find -lrte_pmd_virtio
/usr/bin/ld: cannot find -lrte_pmd_vmxnet3_uio
collect2: error: ld returned 1 exit status
Makefile:509: recipe for target 'odp_ddf_app' failed
make[2]: *** [odp_ddf_app] Error 1
make[2]: Leaving directory '/home/yihe01/workspace/odp-linux/example/ddf_app'
Makefile:470: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/home/yihe01/workspace/odp-linux/example'
Makefile:523: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
...

Expected Results: What should have happened, were the bug not present.

Pass all make check & distcheck

Additional Information:

The analyse is that libtool did not add DPDK_LIBS variable in the LDFLAGS.

A Solution is: /example/ddf_app/Makefile.am

 include $(top_srcdir)/example/Makefile.inc

 bin_PROGRAMS = odp_ddf_app$(EXEEXT)
-odp_ddf_app_LDFLAGS = $(AM_LDFLAGS) -shared
+odp_ddf_app_LDFLAGS = $(AM_LDFLAGS) $(DPDK_LIBS) -shared
 odp_ddf_app_CFLAGS = $(AM_CFLAGS) -I${top_srcdir}/example

 noinst_HEADERS = \

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to