OpenFastPath / ofp

OpenFastPath project
BSD 3-Clause "New" or "Revised" License
351 stars 126 forks source link

Errors without odp_time_to_u64 and odp_pktio_mtu when making ofp #208

Closed bestgen closed 6 years ago

bestgen commented 6 years ago

I try to make the ofp with the latest version odp v1.19.0.1. But the compiler cannot find these two references. Is there any mismatch between ofp and odp, or the latest version cannot be used?

Thanks. configuration messages:

config.status: executing libtool commands

    openfastpath 2.0.1
    ========

    Library version:    2:0:1

    prefix:         /usr/local/bin/ofp
    sysconfdir:     ${prefix}/etc
    libdir:         ${exec_prefix}/lib
    includedir:     ${prefix}/include

    cc:                     gcc
        cppflags:               
        am_cppflags:             -I/usr/local/bin/odp/include -I/usr/local/bin/odp/include   -I/usr/local/bin/odp/include  
    cflags:         -g -O2
    am_cflags:       -pthread  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -DOFP_CONFIG_DEFAULT
        am_cxxflags:             -Wmissing-declarations  -W -Wall -Wextra -fno-strict-aliasing -std=c++11 
    ldflags:        
    am_ldflags:       -L/usr/local/bin/odp/lib
    odp_library:        odp-linux
    odp_version:        1.19.0.1
    odp_cflags:     -I/usr/local/bin/odp/include  
    odp_libs:       -L/usr/local/bin/odp/lib -lodp-linux  
    odphelper_cflags:   -I/usr/local/bin/odp/include  
    odphelper_libs:     -L/usr/local/bin/odp/lib -lodphelper  
    cunit:          no

and the making errors

Making all in classifier
make[2]: Entering directory `/home/admin/Downloads/ofp/example/classifier'
  CCLD     classifier
../../lib/.libs/libofp.a(ofp_pkt_processing.o): In function `ofp_packet_input':
/home/admin/Downloads/ofp/src/ofp_pkt_processing.c:1416: undefined reference to `odp_time_to_u64'
../../lib/.libs/libofp.a(ofp_pkt_processing.o): In function `ofp_packet_input':
ofp_pkt_processing.c:(.text+0x257d): undefined reference to `odp_time_to_u64'
../../lib/.libs/libofp.a(ofp_ifnet.o): In function `ofp_mtu_set':
/home/admin/Downloads/ofp/src/ofp_ifnet.c:151: undefined reference to `odp_pktio_mtu'
collect2: error: ld returned 1 exit status
make[2]: *** [classifier] Error 1
make[2]: Leaving directory `/home/admin/Downloads/ofp/example/classifier'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/admin/Downloads/ofp/example'
make: *** [all-recursive] Error 1:
JereLeppanen commented 6 years ago

OFP 2.0.1, which you seem to be using, is compatible with ODP v1.11 (Monarch).

OFP master is currently compatible with ODP v1.17 and later versions.

bestgen commented 6 years ago

Oh, fair enough. It would be helpful if there is illustration about the compatible versions between ofp and odp. Thanks for you help. @JereLeppanen .