Giter VIP home page Giter VIP logo

Comments (21)

ajamshed avatar ajamshed commented on July 21, 2024

Can you please share the complete error log? Maybe sharing the config.log file should be enough. I tested mtcp right now and it did not show me any errors. Can you try updating your autoconf package?

from mtcp.

duoh avatar duoh commented on July 21, 2024

Hello,

Sorry, I cannot provide you with a log file since I deleted it.
However, as I remember, the log looks like below
./configure: line 3625: syntax error near unexpected token `newline'

./configure: line 3625: `ACX_PTHREAD(

It was solved by running autogen.sh after installing autoconf.
autogen.sh can be found on https://sourceforge.net/projects/buildconf/

Thanks,
Wiriyang

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hello,

I was running autogen.sh and face the same error as duoh.

Here is my configu.log file content.

May I ask what is the right distribution to compile mtcp? I am using fedora 22 and I compile dpdk inside mtcp is fine.

Thanks in advance

Regards


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by mtcp configure 3, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --with-dpdk-lib=/home/test/mtcp/dpdk

---------

Platform.

---------

hostname = localhost.localdomain
uname -m = x86_64
uname -r = 4.4.8-200.fc22.x86_64
uname -s = Linux
uname -v = #1 SMP Wed Apr 20 18:38:10 UTC 2016

/usr/bin/uname -p = x86_64
/bin/uname -X = unknown

/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/lib64/ccache
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /home/test/.local/bin
PATH: /home/test/bin

-----------

Core tests.

-----------

configure:2399: checking for gcc
configure:2415: found /usr/lib64/ccache/gcc
configure:2426: result: gcc
configure:2655: checking for C compiler version
configure:2664: gcc --version >&5
gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2675: $? = 0
configure:2664: gcc -v >&5
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --disable-libgcj --with-default-libstdcxx-abi=gcc4-compatible --with-isl --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 5.3.1 20160406 (Red Hat 5.3.1-6) (GCC)
configure:2675: $? = 0
configure:2664: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2675: $? = 1
configure:2664: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2675: $? = 1
configure:2695: checking whether the C compiler works
configure:2717: gcc conftest.c >&5
configure:2721: $? = 0
configure:2769: result: yes
configure:2772: checking for C compiler default output file name
configure:2774: result: a.out
configure:2780: checking for suffix of executables
configure:2787: gcc -o conftest conftest.c >&5
configure:2791: $? = 0
configure:2813: result:
configure:2835: checking whether we are cross compiling
configure:2843: gcc -o conftest conftest.c >&5
configure:2847: $? = 0
configure:2854: ./conftest
configure:2858: $? = 0
configure:2873: result: no
configure:2878: checking for suffix of object files
configure:2900: gcc -c conftest.c >&5
configure:2904: $? = 0
configure:2925: result: o
configure:2929: checking whether we are using the GNU C compiler
configure:2948: gcc -c conftest.c >&5
configure:2948: $? = 0
configure:2957: result: yes
configure:2966: checking whether gcc accepts -g
configure:2986: gcc -c -g conftest.c >&5
configure:2986: $? = 0
configure:3027: result: yes
configure:3044: checking for gcc option to accept ISO C89
configure:3107: gcc -c -g -O2 conftest.c >&5
configure:3107: $? = 0
configure:3120: result: none needed
configure:3177: checking whether gcc understands -c and -o together
configure:3199: gcc -c conftest.c -o conftest2.o
configure:3202: $? = 0
configure:3199: gcc -c conftest.c -o conftest2.o
configure:3202: $? = 0
configure:3214: result: yes
configure:3247: checking how to run the C preprocessor
configure:3278: gcc -E conftest.c
configure:3278: $? = 0
configure:3292: gcc -E conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3292: $? = 1
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "mtcp"
| #define PACKAGE_TARNAME "mtcp"
| #define PACKAGE_VERSION "3"
| #define PACKAGE_STRING "mtcp 3"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| /
end confdefs.h. /
| #include <ac_nonexistent.h>
configure:3317: result: gcc -E
configure:3337: gcc -E conftest.c
configure:3337: $? = 0
configure:3351: gcc -E conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3351: $? = 1
configure: failed program was:
| /
confdefs.h /
| #define PACKAGE_NAME "mtcp"
| #define PACKAGE_TARNAME "mtcp"
| #define PACKAGE_VERSION "3"
| #define PACKAGE_STRING "mtcp 3"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| /
end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3380: checking for grep that handles long lines and -e
configure:3438: result: /usr/bin/grep
configure:3443: checking for egrep
configure:3505: result: /usr/bin/grep -E
configure:3510: checking for ANSI C header files
configure:3530: gcc -c -g -O2 conftest.c >&5
configure:3530: $? = 0
configure:3603: gcc -o conftest -g -O2 conftest.c >&5
configure:3603: $? = 0
configure:3603: ./conftest
configure:3603: $? = 0
configure:3614: result: yes
configure:3627: checking for sys/types.h
configure:3627: gcc -c -g -O2 conftest.c >&5
configure:3627: $? = 0
configure:3627: result: yes
configure:3627: checking for sys/stat.h
configure:3627: gcc -c -g -O2 conftest.c >&5
configure:3627: $? = 0
configure:3627: result: yes
configure:3627: checking for stdlib.h
configure:3627: gcc -c -g -O2 conftest.c >&5
configure:3627: $? = 0
configure:3627: result: yes
configure:3627: checking for string.h
configure:3627: gcc -c -g -O2 conftest.c >&5
configure:3627: $? = 0
configure:3627: result: yes
configure:3627: checking for memory.h
configure:3627: gcc -c -g -O2 conftest.c >&5
configure:3627: $? = 0
configure:3627: result: yes
configure:3627: checking for strings.h
configure:3627: gcc -c -g -O2 conftest.c >&5
configure:3627: $? = 0
configure:3627: result: yes
configure:3627: checking for inttypes.h
configure:3627: gcc -c -g -O2 conftest.c >&5
configure:3627: $? = 0
configure:3627: result: yes
configure:3627: checking for stdint.h
configure:3627: gcc -c -g -O2 conftest.c >&5
configure:3627: $? = 0
configure:3627: result: yes
configure:3627: checking for unistd.h
configure:3627: gcc -c -g -O2 conftest.c >&5
configure:3627: $? = 0
configure:3627: result: yes
configure:3642: checking linux/sched.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking linux/sched.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for linux/sched.h
configure:3642: result: yes
configure:3642: checking pthread.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking pthread.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for pthread.h
configure:3642: result: yes
configure:3642: checking numa.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking numa.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for numa.h
configure:3642: result: yes
configure:3642: checking arpa/inet.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking arpa/inet.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for arpa/inet.h
configure:3642: result: yes
configure:3642: checking fcntl.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking fcntl.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for fcntl.h
configure:3642: result: yes
configure:3642: checking limits.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking limits.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for limits.h
configure:3642: result: yes
configure:3642: checking netdb.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking netdb.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for netdb.h
configure:3642: result: yes
configure:3642: checking netinet/in.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking netinet/in.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for netinet/in.h
configure:3642: result: yes
configure:3642: checking for stdint.h
configure:3642: result: yes
configure:3642: checking for stdlib.h
configure:3642: result: yes
configure:3642: checking for string.h
configure:3642: result: yes
configure:3642: checking sys/ioctl.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking sys/ioctl.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for sys/ioctl.h
configure:3642: result: yes
configure:3642: checking sys/socket.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking sys/socket.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for sys/socket.h
configure:3642: result: yes
configure:3642: checking sys/time.h usability
configure:3642: gcc -c -g -O2 conftest.c >&5
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking sys/time.h presence
configure:3642: gcc -E conftest.c
configure:3642: $? = 0
configure:3642: result: yes
configure:3642: checking for sys/time.h
configure:3642: result: yes
configure:3642: checking for unistd.h
configure:3642: result: yes

----------------

Cache variables.

----------------

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_arpa_inet_h=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_limits_h=yes
ac_cv_header_linux_sched_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_netdb_h=yes
ac_cv_header_netinet_in_h=yes
ac_cv_header_numa_h=yes
ac_cv_header_pthread_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_ioctl_h=yes
ac_cv_header_sys_socket_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_time_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
am_cv_prog_cc_c_o=yes

-----------------

Output variables.

-----------------

ACLOCAL=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AM_BACKSLASH=''
AM_DEFAULT_V=''
AM_DEFAULT_VERBOSITY=''
AM_V=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W=''
DEFS=''
DEPDIR=''
DPDK=''
DPDKLIBPATH=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
GREP='/usr/bin/grep'
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STRIP_PROGRAM=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO=''
MKDIR_P=''
NETMAP=''
OBJEXT='o'
PACKAGE=''
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='mtcp'
PACKAGE_STRING='mtcp 3'
PACKAGE_TARNAME='mtcp'
PACKAGE_URL=''
PACKAGE_VERSION='3'
PATH_SEPARATOR=':'
PSIO=''
PSLIBPATH=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION=''
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot=''
am__nodep=''
am__quote=''
am__tar=''
am__untar=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

-----------

confdefs.h.

-----------

/* confdefs.h */
#define PACKAGE_NAME "mtcp"
#define PACKAGE_TARNAME "mtcp"
#define PACKAGE_VERSION "3"
#define PACKAGE_STRING "mtcp 3"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LINUX_SCHED_H 1
#define HAVE_PTHREAD_H 1
#define HAVE_NUMA_H 1
#define HAVE_ARPA_INET_H 1
#define HAVE_FCNTL_H 1
#define HAVE_LIMITS_H 1
#define HAVE_NETDB_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_UNISTD_H 1

configure: exit 2

from mtcp.

ajamshed avatar ajamshed commented on July 21, 2024

I only tested the configure script in Ubuntu 14.04. But it should work for Fedora distributions as well.
Can you please try the following steps:

$ autoreconf -ivf
$ ./configure --with-dpdk-lib=/home/test/mtcp/dpdk

You may need to install some extra packages such as m4, autoconf, automake (if you haven't already). Please let me know if this works.

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hi ajamshed,

Thanks

I got this error and what to do next?

Thanks in advance

[test@localhost mtcp]$ autoreconf -ivf
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:19: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

If I do this command
./configure --with-dpdk-lib=/home/test/mtcp/dpdk

And make, I get following error
My version is aclocal-1.15

[test@localhost mtcp]$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.14
/bin/sh: aclocal-1.14: command not found
Makefile:340: recipe for target 'aclocal.m4' failed
make: *** [aclocal.m4] Error 127

from mtcp.

ajamshed avatar ajamshed commented on July 21, 2024

Looks like AX_PTHREAD macro is the problem. It is causing more problems than I expected. Can you please comment lines 18~23 in configure.ac and repeat the following commands.

$ autoreconf -ivf
$ ./configure --with-dpdk-lib=/home/test/mtcp/dpdk

This should solve this problem. I will make the changes in the github version soon.

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hi ajamshed,

Thanks

It works fine now. But I run make and have lots of error.

Here is the log

Regards

make all-recursive
make[1]: Entering directory '/home/test/mtcp'
Making all in mtcp/src
make[2]: Entering directory '/home/test/mtcp/mtcp/src'
cp ./include/mtcp_api.h ../include/mtcp_api.h
cp ./include/mtcp_epoll.h ../include/mtcp_epoll.h
mkdir -p ../lib
ar rvs ../lib/libmtcp.a core.o tcp_stream.o config.o api.o eventpoll.o socket.o pipe.o tcp_util.o eth_in.o ip_in.o tcp_in.o eth_out.o ip_out.o tcp_out.o arp.o timer.o cpu.o rss.o addr_pool.o fhash.o memory_mgt.o logger.o debug.o tcp_rb_frag_queue.o tcp_ring_buffer.o tcp_send_buffer.o tcp_sb_queue.o tcp_stream_queue.o psio_module.o io_module.o dpdk_module.o netmap_module.o icmp.o
r - core.o
r - tcp_stream.o
r - config.o
r - api.o
r - eventpoll.o
r - socket.o
r - pipe.o
r - tcp_util.o
r - eth_in.o
r - ip_in.o
r - tcp_in.o
r - eth_out.o
r - ip_out.o
r - tcp_out.o
r - arp.o
r - timer.o
r - cpu.o
r - rss.o
r - addr_pool.o
r - fhash.o
r - memory_mgt.o
r - logger.o
r - debug.o
r - tcp_rb_frag_queue.o
r - tcp_ring_buffer.o
r - tcp_send_buffer.o
r - tcp_sb_queue.o
r - tcp_stream_queue.o
r - psio_module.o
r - io_module.o
r - dpdk_module.o
r - netmap_module.o
r - icmp.o
make[2]: Leaving directory '/home/test/mtcp/mtcp/src'
Making all in util
make[2]: Entering directory '/home/test/mtcp/util'
cc -m64 -Wall -fPIC -c -DNDEBUG -O3 -DNETSTAT -DINFO -DDBGERR -DDBGCERR -I./include/ tdate_parse.c
cc -m64 -Wall -fPIC -c -DNDEBUG -O3 -DNETSTAT -DINFO -DDBGERR -DDBGCERR -I./include/ http_parsing.c
make[2]: Leaving directory '/home/test/mtcp/util'
Making all in io_engine/lib
make[2]: Entering directory '/home/test/mtcp/io_engine/lib'
gcc -O3 -c -g -Wall -fPIC -o pslib.o pslib.c
ar rcs libps.a pslib.o
make[2]: Leaving directory '/home/test/mtcp/io_engine/lib'
Making all in apps/example
make[2]: Entering directory '/home/test/mtcp/apps/example'
gcc -g -O3 epserver.o -L../../mtcp//lib -m64 -g -O3 -pthread -lrt -march=native -Wl,-export-dynamic ../../mtcp//lib/libmtcp.a -L../../dpdk/lib -Wl,-lnuma -Wl,-lmtcp -Wl,-lpthread -Wl,-lrt -Wl,-ldl -Wl,--whole-archive -Wl,-lrte_distributor -Wl,-lrte_kni -Wl,-lrte_pipeline -Wl,-lrte_table -Wl,-lrte_port -Wl,-lrte_timer -Wl,-lrte_hash -Wl,-lrte_lpm -Wl,-lrte_power -Wl,-lrte_acl -Wl,-lrte_meter -Wl,-lrte_sched -Wl,-lm -Wl,-lrt -Wl,--start-group -Wl,-lrte_kvargs -Wl,-lrte_mbuf -Wl,-lrte_ip_frag -Wl,-lethdev -Wl,-lrte_mempool -Wl,-lrte_ring -Wl,-lrte_eal -Wl,-lrte_cmdline -Wl,-lrte_cfgfile -Wl,-lrte_pmd_bond -Wl,-lrte_pmd_vmxnet3_uio -Wl,-lrte_pmd_i40e -Wl,-lrte_pmd_ixgbe -Wl,-lrte_pmd_e1000 -Wl,-lrte_pmd_ring -Wl,-lrt -Wl,-lm -Wl,-ldl -Wl,--end-group -Wl,--no-whole-archive ../../util/http_parsing.o ../../util/tdate_parse.o -o epserver
../../mtcp//lib/libmtcp.a(core.o): In function MTCPRunThread': core.c:(.text+0x1a0a): undefined reference toAddtoControlList'
core.c:(.text+0x1a37): undefined reference to AddtoSendList' core.c:(.text+0x1a67): undefined reference toEnqueueACK'
core.c:(.text+0x1ad2): undefined reference to RemoveFromTimeoutList' core.c:(.text+0x1b7b): undefined reference toAddtoControlList'
core.c:(.text+0x1bae): undefined reference to WriteTCPACKList' core.c:(.text+0x1bcd): undefined reference toWriteTCPDataList'
core.c:(.text+0x1bdf): undefined reference to WriteTCPControlList' core.c:(.text+0x1c8e): undefined reference toAddtoControlList'
core.c:(.text+0x1cf5): undefined reference to AddtoControlList' core.c:(.text+0x1d35): undefined reference toRemoveFromTimeoutList'
core.c:(.text+0x1e02): undefined reference to AddtoControlList' core.c:(.text+0x1ea8): undefined reference toWriteTCPDataList'
core.c:(.text+0x1eba): undefined reference to WriteTCPDataList' core.c:(.text+0x1ecc): undefined reference toWriteTCPACKList'
core.c:(.text+0x1ee5): undefined reference to WriteTCPControlList' core.c:(.text+0x1efe): undefined reference toWriteTCPACKList'
core.c:(.text+0x1f17): undefined reference to WriteTCPControlList' core.c:(.text+0x1f30): undefined reference toWriteTCPDataList'
core.c:(.text+0x1f42): undefined reference to WriteTCPACKList' core.c:(.text+0x1f5b): undefined reference toWriteTCPControlList'
core.c:(.text+0x1f74): undefined reference to WriteTCPDataList' core.c:(.text+0x1f86): undefined reference toWriteTCPACKList'
core.c:(.text+0x1f9f): undefined reference to WriteTCPControlList' ../../mtcp//lib/libmtcp.a(tcp_stream.o): In functionCreateTCPStream':
tcp_stream.c:(.text+0x298): undefined reference to GetOutputInterface' ../../mtcp//lib/libmtcp.a(tcp_stream.o): In functionDestroyTCPStream':
tcp_stream.c:(.text+0x494): undefined reference to RemoveFromControlList' tcp_stream.c:(.text+0x49f): undefined reference toRemoveFromSendList'
tcp_stream.c:(.text+0x4aa): undefined reference to RemoveFromACKList' tcp_stream.c:(.text+0x4bc): undefined reference toRemoveFromRTOList'
tcp_stream.c:(.text+0x4df): undefined reference to RemoveFromTimeoutList' tcp_stream.c:(.text+0x5cf): undefined reference toRemoveFromTimewaitList'
../../mtcp//lib/libmtcp.a(api.o): In function mtcp_init_rss': api.c:(.text+0xb30): undefined reference toGetOutputInterface'
../../mtcp//lib/libmtcp.a(api.o): In function mtcp_connect': api.c:(.text+0xddc): undefined reference toTCPStateToString'
../../mtcp//lib/libmtcp.a(api.o): In function mtcp_read': api.c:(.text+0x1695): undefined reference toAddEpollEvent'
../../mtcp//lib/libmtcp.a(api.o): In function mtcp_readv': api.c:(.text+0x1a8d): undefined reference toAddEpollEvent'
../../mtcp//lib/libmtcp.a(api.o): In function mtcp_write': api.c:(.text+0x1d12): undefined reference toAddEpollEvent'
../../mtcp//lib/libmtcp.a(api.o): In function mtcp_writev': api.c:(.text+0x2094): undefined reference toAddEpollEvent'
../../mtcp//lib/libmtcp.a(pipe.o): In function PipeRead': pipe.c:(.text+0x322): undefined reference toAddEpollEvent'
../../mtcp//lib/libmtcp.a(pipe.o):pipe.c:(.text+0x405): more undefined references to AddEpollEvent' follow ../../mtcp//lib/libmtcp.a(tcp_in.o): In functionProcessACK':
tcp_in.c:(.text+0x353): undefined reference to AddtoSendList' tcp_in.c:(.text+0x374): undefined reference toRemoveFromSendList'
tcp_in.c:(.text+0x397): undefined reference to RaiseWriteEvent' tcp_in.c:(.text+0x3b0): undefined reference toRaiseWriteEvent'
../../mtcp//lib/libmtcp.a(tcp_in.o): In function ProcessTCPPacket': tcp_in.c:(.text+0x5c7): undefined reference toUpdateTimeoutList'
tcp_in.c:(.text+0x874): undefined reference to UpdateRetransmissionTimer' tcp_in.c:(.text+0x9ee): undefined reference toUpdateRetransmissionTimer'
tcp_in.c:(.text+0xa81): undefined reference to AddtoControlList' tcp_in.c:(.text+0xc09): undefined reference toUpdateRetransmissionTimer'
tcp_in.c:(.text+0xc21): undefined reference to AddtoTimewaitList' tcp_in.c:(.text+0xcba): undefined reference toEnqueueACK'
tcp_in.c:(.text+0xcf1): undefined reference to AddtoTimewaitList' tcp_in.c:(.text+0xcfe): undefined reference toAddtoControlList'
tcp_in.c:(.text+0xe7d): undefined reference to EnqueueACK' tcp_in.c:(.text+0xec3): undefined reference toAddtoTimewaitList'
tcp_in.c:(.text+0xee1): undefined reference to AddtoControlList' tcp_in.c:(.text+0xf2e): undefined reference toEnqueueACK'
tcp_in.c:(.text+0xf9a): undefined reference to EnqueueACK' tcp_in.c:(.text+0x10aa): undefined reference toRemoveFromTimewaitList'
tcp_in.c:(.text+0x10b9): undefined reference to AddtoTimewaitList' tcp_in.c:(.text+0x1119): undefined reference toRemoveFromRTOList'
tcp_in.c:(.text+0x1152): undefined reference to AddtoTimeoutList' tcp_in.c:(.text+0x1185): undefined reference toAddEpollEvent'
tcp_in.c:(.text+0x11e8): undefined reference to RaiseCloseEvent' tcp_in.c:(.text+0x147e): undefined reference toParseTCPTimestamp'
tcp_in.c:(.text+0x150d): undefined reference to EnqueueACK' tcp_in.c:(.text+0x1610): undefined reference toEnqueueACK'
tcp_in.c:(.text+0x182c): undefined reference to UpdateRetransmissionTimer' tcp_in.c:(.text+0x183c): undefined reference toRemoveFromSendList'
tcp_in.c:(.text+0x187b): undefined reference to RaiseErrorEvent' tcp_in.c:(.text+0x18a2): undefined reference toAddtoControlList'
tcp_in.c:(.text+0x18b3): undefined reference to RaiseReadEvent' tcp_in.c:(.text+0x196f): undefined reference toEnqueueACK'
tcp_in.c:(.text+0x1984): undefined reference to RemoveFromSendList' tcp_in.c:(.text+0x1a4c): undefined reference toEnqueueACK'
tcp_in.c:(.text+0x1b60): undefined reference to RemoveFromRTOList' tcp_in.c:(.text+0x1b75): undefined reference toRemoveFromSendList'
tcp_in.c:(.text+0x1b91): undefined reference to RemoveFromSendList' tcp_in.c:(.text+0x1c23): undefined reference toAddtoSendList'
tcp_in.c:(.text+0x1c38): undefined reference to RemoveFromSendList' tcp_in.c:(.text+0x1dbd): undefined reference toUpdateRetransmissionTimer'
tcp_in.c:(.text+0x1f36): undefined reference to UpdateRetransmissionTimer' tcp_in.c:(.text+0x20c2): undefined reference toUpdateRetransmissionTimer'
tcp_in.c:(.text+0x212c): undefined reference to AddtoControlList' tcp_in.c:(.text+0x21c1): undefined reference toAddtoSendList'
tcp_in.c:(.text+0x2279): undefined reference to AddtoSendList' tcp_in.c:(.text+0x230e): undefined reference toAddtoSendList'
tcp_in.c:(.text+0x23a8): undefined reference to AddtoSendList' tcp_in.c:(.text+0x2455): undefined reference toRaiseErrorEvent'
tcp_in.c:(.text+0x2467): undefined reference to RaiseReadEvent' tcp_in.c:(.text+0x2477): undefined reference toRaiseWriteEvent'
tcp_in.c:(.text+0x2487): undefined reference to RaiseWriteEvent' tcp_in.c:(.text+0x253a): undefined reference toRaiseErrorEvent'
tcp_in.c:(.text+0x254a): undefined reference to RaiseReadEvent' tcp_in.c:(.text+0x259a): undefined reference toRaiseReadEvent'
tcp_in.c:(.text+0x267d): undefined reference to RaiseErrorEvent' tcp_in.c:(.text+0x26d5): undefined reference toRaiseWriteEvent'
tcp_in.c:(.text+0x26ea): undefined reference to RaiseWriteEvent' tcp_in.c:(.text+0x2703): undefined reference toRaiseWriteEvent'
tcp_in.c:(.text+0x2759): undefined reference to RaiseWriteEvent' tcp_in.c:(.text+0x2772): undefined reference toRaiseWriteEvent'
../../mtcp//lib/libmtcp.a(tcp_in.o):tcp_in.c:(.text+0x2786): more undefined references to RaiseWriteEvent' follow ../../mtcp//lib/libmtcp.a(tcp_in.o): In functionProcessTCPPacket':
tcp_in.c:(.text+0x2b78): undefined reference to UpdateRetransmissionTimer' tcp_in.c:(.text+0x2b99): undefined reference toRemoveFromRTOList'
tcp_in.c:(.text+0x2bb0): undefined reference to RaiseWriteEvent' tcp_in.c:(.text+0x2bbf): undefined reference toAddtoControlList'
tcp_in.c:(.text+0x2be4): undefined reference to AddtoTimeoutList' ../../mtcp//lib/libmtcp.a(tcp_in.o): In functionProcessACK':
tcp_in.c:(.text+0x29d): undefined reference to UpdateRetransmissionTimer' ../../mtcp//lib/libmtcp.a(tcp_out.o): In functionSendTCPPacket':
tcp_out.c:(.text+0x49a): undefined reference to UpdateTimeoutList' tcp_out.c:(.text+0x587): undefined reference toAddtoRTOList'
../../mtcp//lib/libmtcp.a(timer.o): In function HandleRTO': timer.c:(.text+0x155): undefined reference toAddtoControlList'
timer.c:(.text+0x183): undefined reference to RaiseErrorEvent' timer.c:(.text+0x1d1): undefined reference toRemoveFromControlList'
timer.c:(.text+0x1e0): undefined reference to AddtoSendList' timer.c:(.text+0x2a7): undefined reference toTCPStateToString'
../../mtcp//lib/libmtcp.a(timer.o): In function CheckConnectionTimeout': timer.c:(.text+0x71e): undefined reference toRaiseErrorEvent'
collect2: error: ld returned 1 exit status
Makefile:52: recipe for target 'epserver' failed
make[2]: *** [epserver] Error 1
make[2]: Leaving directory '/home/test/mtcp/apps/example'
Makefile:369: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/test/mtcp'
Makefile:302: recipe for target 'all' failed
make: *** [all] Error 2

from mtcp.

ajamshed avatar ajamshed commented on July 21, 2024

Not sure why it is showing linking errors. All these functions actually exist in the mtcp core library. I see that you are using gcc version 5.3.1. Can you please try compiling with gcc-4.x (e.g. 4.8) and see if these errors go away. I will test mTCP compilation with an upgraded gcc version as well.

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hi ajamshed,

I plan to reformat my hard drive and install ubuntu-14.04.4-server-am64.iso. Is it ok to get mTCP working?

Do you know any url to install right packages to get mTCP working?

Thanks in advance

from mtcp.

ajamshed avatar ajamshed commented on July 21, 2024

Okay.. I tested mTCP on Fedora 22 and saw that gcc-5.3 does print out a lot of errors. It turns out that gcc-5.3 has upgraded its default standard to std11:

http://www.gnu.org/software/gcc/gcc-5/porting_to.html

which means that all inline function headers should have extern linkages. You will have to do a little bit more manual labor. Please open all header files present in mtcp/src/include/ directory and pre-append extern with all inline function prototypes. This should remove all linking errors. I will update the code in my next commit. You don't need to reformat your hard disk.

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hi ajamshed,

Thank you

When will be your next commit?

Thanks in advance

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hi ajamshed,

I followed your instructions and I also need to put extern in the c source code.

Regards

from mtcp.

ajamshed avatar ajamshed commented on July 21, 2024

I have just committed my patch. Let me know if you still face this issue.

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hi ajamshed,

Thank you very much.

I installed a fresh copy fedora 23 and I follow the initial instruction on this page http://pseudo.co.de/dpdk-on-an-intel-nuc/ and readme of https://github.com/eunyoung14/mtcp and it compiles :-)

Regards

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hi ajamshed,

I got No Ethernet port! running the example server app.

I followed the instruction https://github.com/eunyoung14/mtcp

I first sudo ifdown enp11s0f0 ( my_network_card_interface)
- Press [14] to compile the package
- Press [17] to install the driver
- Press [20] to setup 1024 2MB hugepages
- Press [23] to register the Ethernet ports
- Press [34] to quit the tool
sudo ./setup_iface_single_process.sh 4

Here is my network information
[test@localhost example]$ sudo ifconfig
enp0s29f0u2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.95.120 netmask 255.255.255.0 broadcast 169.254.95.255
inet6 fe80::e41f:13ff:fe54:3e47 prefixlen 64 scopeid 0x20
ether e6:1f:13:54:3e:47 txqueuelen 1000 (Ethernet)
RX packets 581 bytes 39604 (38.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 299 bytes 14966 (14.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp11s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.4 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::200:ff:fe00:0 prefixlen 64 scopeid 0x20
ether 00:00:00:00:00:00 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp11s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.98 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fd14:b968:f134:6b00:e61f:13ff:fe62:3e46 prefixlen 64 scopeid 0x0
inet6 fe80::e61f:13ff:fe62:3e46 prefixlen 64 scopeid 0x20
ether e4:1f:13:62:3e:46 txqueuelen 1000 (Ethernet)
RX packets 19108 bytes 24530210 (23.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9649 bytes 918552 (897.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 8 bytes 680 (680.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 680 (680.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

I modified the epserver.conf and use my network card interface enp11s0f0 in the file and I got this error.

Here is the conf file.
############### mtcp configuration file ###############

The underlying I/O module you want to use. Please

enable only one out of the two.

#io = psio
#io = netmap
io = dpdk

No. of cores setting (enabling this option will override

the `cpu' config for those applications that accept

num_cores as command line arguments)

e.g. in case ./epserver is executed with `-N 4', the

mtcp core will still invoke 8 mTCP threads if the

following line is uncommented.

#num_cores = 8

Number of memory channels per processor socket (dpdk-only)

num_mem_ch = 4

Enable multi-process support (under development)

#multiprocess = 0 master
#multiprocess = 1

Used port (please adjust accordingly)

#------ PSIO ports -------#
#port = xge0 xge1
#port = xge1
#------ DPDK ports -------#
port = enp11s0f0
#port = dpdk0 dpdk1
#port = dpdk0:0
#port = dpdk0:1

Maximum concurrency per core

max_concurrency = 10000

Maximum number of socket buffers per core

Set this to small value if there are many idle connections

max_num_buffers = 10000

Receive buffer size of sockets

rcvbuf = 8192

Send buffer size of sockets

sndbuf = 8192

TCP timeout seconds

(tcp_timeout = -1 can disable the timeout check)

tcp_timeout = 30

TCP timewait seconds

tcp_timewait = 0

Interface to print stats (please adjust accordingly)

You can enable multiple ports in separate lines

#------ PSIO ports -------#
#stat_print = xge0
#stat_print = xge1
#------ DPDK ports -------#
stat_print = enp11s0f0
#stat_print = dpdk0:0
#stat_print = dpdk0:1
#stat_print = dpdk1

#######################################################
~

[test@localhost example]$ sudo ./epserver -p /home/test/www -f epserver.conf -N 8

Configuration updated by mtcp_setconf().

Loading mtcp configuration from : epserver.conf
Loading interface setting
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Detected lcore 2 as core 2 on socket 0
EAL: Detected lcore 3 as core 8 on socket 0
EAL: Detected lcore 4 as core 9 on socket 0
EAL: Detected lcore 5 as core 10 on socket 0
EAL: Detected lcore 6 as core 0 on socket 1
EAL: Detected lcore 7 as core 1 on socket 1
EAL: Detected lcore 8 as core 2 on socket 1
EAL: Detected lcore 9 as core 8 on socket 1
EAL: Detected lcore 10 as core 9 on socket 1
EAL: Detected lcore 11 as core 10 on socket 1
EAL: Detected lcore 12 as core 0 on socket 0
EAL: Detected lcore 13 as core 1 on socket 0
EAL: Detected lcore 14 as core 2 on socket 0
EAL: Detected lcore 15 as core 8 on socket 0
EAL: Detected lcore 16 as core 9 on socket 0
EAL: Detected lcore 17 as core 10 on socket 0
EAL: Detected lcore 18 as core 0 on socket 1
EAL: Detected lcore 19 as core 1 on socket 1
EAL: Detected lcore 20 as core 2 on socket 1
EAL: Detected lcore 21 as core 8 on socket 1
EAL: Detected lcore 22 as core 9 on socket 1
EAL: Detected lcore 23 as core 10 on socket 1
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 24 lcore(s)
EAL: Auto-detected process type: PRIMARY
EAL: No free hugepages reported in hugepages-1048576kB
EAL: VFIO modules not all loaded, skip VFIO support...
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x800000 bytes
EAL: Virtual area found at 0x7f1cd8600000 (size = 0x800000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1cd8200000 (size = 0x200000)
EAL: Ask a virtual area of 0x12800000 bytes
EAL: Virtual area found at 0x7f1cc5800000 (size = 0x12800000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f1cc5200000 (size = 0x400000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f1cc4c00000 (size = 0x400000)
EAL: Ask a virtual area of 0x1c00000 bytes
EAL: Virtual area found at 0x7f1cc2e00000 (size = 0x1c00000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1cc2a00000 (size = 0x200000)
EAL: Ask a virtual area of 0x2a000000 bytes
EAL: Virtual area found at 0x7f1c98800000 (size = 0x2a000000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1c98400000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1c98000000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1c97c00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1c97800000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1c97400000 (size = 0x200000)
EAL: Ask a virtual area of 0x3fc00000 bytes
EAL: Virtual area found at 0x7f1c57600000 (size = 0x3fc00000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1c57200000 (size = 0x200000)
EAL: Requesting 512 pages of size 2MB from socket 0
EAL: Requesting 512 pages of size 2MB from socket 1
EAL: TSC frequency is ~2266747 KHz
EAL: Master lcore 0 is ready (tid=daf438c0;cpuset=[0])
EAL: lcore 6 is ready (tid=549fa700;cpuset=[6])
EAL: lcore 7 is ready (tid=541f9700;cpuset=[7])
EAL: lcore 5 is ready (tid=551fb700;cpuset=[5])
EAL: lcore 2 is ready (tid=569fe700;cpuset=[2])
EAL: lcore 3 is ready (tid=561fd700;cpuset=[3])
EAL: lcore 4 is ready (tid=559fc700;cpuset=[4])
EAL: lcore 1 is ready (tid=571ff700;cpuset=[1])
EAL: Error - exiting with code: 1
Cause: No Ethernet port!


from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

[test@localhost tools]$ sudo ./dpdk_nic_bind.py --status
[sudo] password for test:

Network devices using DPDK-compatible driver

0000:0b:00.0 'NetXtreme II BCM5709 Gigabit Ethernet' drv=igb_uio unused=bnx2

Network devices using kernel driver

0000:0b:00.1 'NetXtreme II BCM5709 Gigabit Ethernet' if=enp11s0f1 drv=bnx2 unused=igb_uio Active

Other network devices

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hi ajamshed,

I checked my network card NetXtreme II BCM5709 Gigabit Ethernet of ibm x3650 m3 is not in the dpdk support list http://dpdk.org/doc/nics.

My question is if I got the message "No Ethernet port!" does that mean my network card is not supported?

Thanks in advance

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hi ajamshed,

I never use mTcp dpdk before. Is following log shows that my network card is working with mtcp dpdk?

Thanks in advance

[test@localhost example]$ sudo ./epserver -p /home/test/www -f epserver.conf -N 1

Configuration updated by mtcp_setconf().

Loading mtcp configuration from : epserver.conf
Loading interface setting
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Detected lcore 2 as core 9 on socket 0
EAL: Detected lcore 3 as core 10 on socket 0
EAL: Detected lcore 4 as core 0 on socket 1
EAL: Detected lcore 5 as core 1 on socket 1
EAL: Detected lcore 6 as core 9 on socket 1
EAL: Detected lcore 7 as core 10 on socket 1
EAL: Detected lcore 8 as core 0 on socket 0
EAL: Detected lcore 9 as core 1 on socket 0
EAL: Detected lcore 10 as core 9 on socket 0
EAL: Detected lcore 11 as core 10 on socket 0
EAL: Detected lcore 12 as core 0 on socket 1
EAL: Detected lcore 13 as core 1 on socket 1
EAL: Detected lcore 14 as core 9 on socket 1
EAL: Detected lcore 15 as core 10 on socket 1
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 16 lcore(s)
EAL: Auto-detected process type: PRIMARY
EAL: No free hugepages reported in hugepages-1048576kB
EAL: VFIO modules not all loaded, skip VFIO support...
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f3b13800000 (size = 0x200000)
EAL: Ask a virtual area of 0x13800000 bytes
EAL: Virtual area found at 0x7f3affe00000 (size = 0x13800000)
EAL: Ask a virtual area of 0x1a00000 bytes
EAL: Virtual area found at 0x7f3afe200000 (size = 0x1a00000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f3afde00000 (size = 0x200000)
EAL: Ask a virtual area of 0x1c800000 bytes
EAL: Virtual area found at 0x7f3ae1400000 (size = 0x1c800000)
EAL: Ask a virtual area of 0x1200000 bytes
EAL: Virtual area found at 0x7f3ae0000000 (size = 0x1200000)
EAL: Ask a virtual area of 0x4c00000 bytes
EAL: Virtual area found at 0x7f3adb200000 (size = 0x4c00000)
EAL: Ask a virtual area of 0x1400000 bytes
EAL: Virtual area found at 0x7f3ad9c00000 (size = 0x1400000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f3ad9600000 (size = 0x400000)
EAL: Ask a virtual area of 0xc00000 bytes
EAL: Virtual area found at 0x7f3ad8800000 (size = 0xc00000)
EAL: Ask a virtual area of 0x600000 bytes
EAL: Virtual area found at 0x7f3ad8000000 (size = 0x600000)
EAL: Ask a virtual area of 0x2800000 bytes
EAL: Virtual area found at 0x7f3ad5600000 (size = 0x2800000)
EAL: Ask a virtual area of 0x2c00000 bytes
EAL: Virtual area found at 0x7f3ad2800000 (size = 0x2c00000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f3ad2400000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f3ad2000000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f3ad1c00000 (size = 0x200000)
EAL: Ask a virtual area of 0x3e800000 bytes
EAL: Virtual area found at 0x7f3a93200000 (size = 0x3e800000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f3a92e00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f3a92a00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f3a92600000 (size = 0x200000)
EAL: Ask a virtual area of 0xa00000 bytes
EAL: Virtual area found at 0x7f3a91a00000 (size = 0xa00000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f3a91400000 (size = 0x400000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f3a90e00000 (size = 0x400000)
EAL: Requesting 512 pages of size 2MB from socket 0
EAL: Requesting 512 pages of size 2MB from socket 1
EAL: TSC frequency is ~2400087 KHz
EAL: Master lcore 0 is ready (tid=15b258c0;cpuset=[0])
EAL: PCI device 0000:06:00.0 on NUMA socket 0
EAL: probe driver: 8086:10d3 rte_em_pmd
EAL: Not managed by a supported kernel driver, skipped
EAL: PCI device 0000:07:00.0 on NUMA socket 0
EAL: probe driver: 8086:10d3 rte_em_pmd
EAL: PCI memory mapped at 0x7f3b15ad2000
EAL: PCI memory mapped at 0x7f3b15b2d000
PMD: eth_em_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x10d3
Total number of attached devices: 1
Interface name: enp7s0
Configurations:
Number of CPU cores available: 1
Number of CPU cores to use: 1
Maximum number of concurrency per core: 10000
Maximum number of preallocated buffers per core: 10000
Receive buffer size: 8192
Send buffer size: 8192
TCP timeout seconds: 30
TCP timewait seconds: 0

NICs to print statistics: enp7s0

Interfaces:
name: enp7s0, ifindex: 0, hwaddr: 00:00:00:00:00:00, ipaddr: 10.0.0.4, netmask: 255.255.255.0

Number of NIC queues: 1

Loading routing configurations from : config/route.conf
fopen: No such file or directory
Skip loading static routing table
Routes:

Destination: 10.0.0.0/24, Mask: 255.255.255.0, Masked: 10.0.0.0, Route: ifdx-0

Loading ARP table from : config/arp.conf
fopen: No such file or directory
Skip loading static ARP table
ARP Table:

(blank)

Initializing port 0... PMD: eth_em_rx_queue_setup(): sw_ring=0x7f3ad970f900 hw_ring=0x7f3ad970fe00 dma_addr=0x600d0fe00
PMD: eth_em_tx_queue_setup(): sw_ring=0x7f3ad96fefc0 hw_ring=0x7f3ad96ff8c0 dma_addr=0x600cff8c0
PMD: eth_em_start(): <<
done:

Checking link status...........................done
Port 0 Link Up - speed 1000 Mbps - full-duplex
CPU 0: initialization finished.
[mtcp_create_context:1180] CPU 0 is now the master thread.
[CPU 0] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[ ALL ] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[CPU 0] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[ ALL ] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[CPU 0] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[ ALL ] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[CPU 0] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[ ALL ] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[CPU 0] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[ ALL ] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[CPU 0] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)
[ ALL ] enp7s0 flows: 0, RX: 0(pps) (err: 0), 0.00(Gbps), TX: 0(pps), 0.00(Gbps)

from mtcp.

ajamshed avatar ajamshed commented on July 21, 2024

goodmanwed,

You guessed it right: NetXtreme II BCM5709 won't work with DPDK. That's why mTCP is also unable to
detect the DPDK-registered interface.

name: enp7s0, ifindex: 0, hwaddr: 00:00:00:00:00:00, ipaddr: 10.0.0.4, netmask: 255.255.255.0

shows that mTCP was unable to identify the MAC address of the interface. Can you try mTCP with Intel Ethernet adapter?

from mtcp.

goodmanwed avatar goodmanwed commented on July 21, 2024

Hi ajamshed,

Thank you

You are right. The ethernet on ibm x3650 m3 does not work with mTcp. My supermicro 1u server has two intel 82574L ethernet ports and I tried and I got epserver running and working :-) I am very happy. Thank you for your support. I can learn the source code of Mtcp now. :-)

Regards

from mtcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.