[ubuntu-18.04]编译mptcpd报错configure.ac:175: error: possibly undefined macro: AC_DEFINE

克隆mptcpd

git clone https://github.com/multipath-tcp/mptcpd

编译mptcpd

切换到mptcpd目录执行bootstrap

cd mptcpd && ./bootstrap

出现错误

root@w1804-virtual-machine:/home/w1804/mptcpd# ./bootstrap 
configure.ac:103: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:175: error: possibly undefined macro: AC_DEFINE
configure.ac:303: error: possibly undefined macro: AC_CHECK_DEFINE
configure:5578: error: possibly undefined macro: AC_MSG_WARN
autoreconf: /usr/bin/autoconf failed with exit status: 1
root@w1804-virtual-machine:/home/w1804/mptcpd# ./configure 
./configure: line 2292: syntax error near unexpected token `git-directory'
./configure: line 2292: `AX_IS_RELEASE(git-directory)'

这是由于缺少了autoconf-archive包

解决方案

sudo apt-get install  autoconf-archive

执行./configure

./configure

出现错误

root@w1804-virtual-machine:/home/w1804/mptcpd# ./configure 
checking whether to enable debugging... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether to build with code coverage support... no
checking for doxygen... no
configure: WARNING: doxygen not found - will not generate any doxygen documentation
checking for perl... /usr/bin/perl
checking for pandoc... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: systemd system unit directory: /lib/systemd/system
checking whether C compiler accepts -Og... yes
checking whether C++ compiler accepts -Og... yes
checking for ELL... no
configure: error: Package requirements (ell >= 0.30) were not met:

No package 'ell' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ELL_CFLAGS
and ELL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
root@w1804-virtual-machine:/home/w1804/mptcpd# apt-get install ell
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ell

解决方案

问题log
configure: error: Package requirements (ell >= 0.30) were not met:

No package 'ell' found
安装ell工具
克隆代码

 git clone git://git.kernel.org/pub/scm/libs/ell/ell.git

 git clone git://git.kernel.org/pub/scm/libs/ell/ell.git
Cloning into 'ell'...
remote: Enumerating objects: 13452, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 13452 (delta 7), reused 0 (delta 0), pack-reused 13436
Receiving objects: 100% (13452/13452), 2.36 MiB | 94.00 KiB/s, done.
Resolving deltas: 100% (10183/10183), done.
切换到0.56分支
cd ell/
root@w1804-virtual-machine:/home/w1804/ell# git checkout 0.56
Note: checking out '0.56'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 89d4888 Release 0.56
执行bootstrap
ell# ./bootstrap
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: linking file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux'.
libtoolize: linking file 'build-aux/libtool.m4'
libtoolize: linking file 'build-aux/ltoptions.m4'
libtoolize: linking file 'build-aux/ltsugar.m4'
libtoolize: linking file 'build-aux/ltversion.m4'
libtoolize: linking file 'build-aux/lt~obsolete.m4'
configure.ac:21: installing 'build-aux/compile'
configure.ac:32: installing 'build-aux/config.guess'
configure.ac:32: installing 'build-aux/config.sub'
configure.ac:8: installing 'build-aux/install-sh'
configure.ac:8: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
执行./configure
ell# ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc accepts -fPIE... yes
checking whether gcc accepts -fsanitize=address... yes
checking whether gcc accepts -fsanitize=leak... yes
checking whether gcc accepts -fsanitize=undefined... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether char is unsigned... no
checking whether byte ordering is bigendian... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for _init in -lasan... yes
checking for _init in -llsan... yes
checking for _init in -lubsan... yes
checking for explicit_bzero... yes
checking for rawmemchr... yes
checking for signalfd... yes
checking for timerfd_create... yes
checking for epoll_create... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking linux/if_alg.h usability... yes
checking linux/if_alg.h presence... yes
checking for linux/if_alg.h... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ell/ell.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
安装ell
root@w1804-virtual-machine:/home/w1804/ell# make install
make --no-print-directory install-am
  CC       ell/util.lo
  CC       ell/test.lo
  CC       ell/strv.lo
  CC       ell/utf8.lo
  CC       ell/queue.lo
  CC       ell/hashmap.lo
  CC       ell/string.lo
  CC       ell/settings.lo
  CC       ell/main.lo
  CC       ell/idle.lo
  CC       ell/signal.lo
  CC       ell/timeout.lo
  CC       ell/io.lo
  CC       ell/ringbuf.lo
  CC       ell/log.lo
  CC       ell/checksum.lo
  CC       ell/netlink.lo
  CC       ell/genl.lo
  CC       ell/rtnl.lo
  CC       ell/dbus.lo
  CC       ell/dbus-message.lo
  CC       ell/dbus-util.lo
  CC       ell/dbus-service.lo
  CC       ell/dbus-client.lo
  CC       ell/dbus-name-cache.lo
  CC       ell/dbus-filter.lo
  CC       ell/gvariant-util.lo
  CC       ell/siphash.lo
  CC       ell/hwdb.lo
  CC       ell/cipher.lo
  CC       ell/random.lo
  CC       ell/uintset.lo
  CC       ell/base64.lo
  CC       ell/pem.lo
  CC       ell/tls.lo
  CC       ell/tls-record.lo
  CC       ell/tls-extensions.lo
  CC       ell/tls-suites.lo
  CC       ell/uuid.lo
  CC       ell/key.lo
  CC       ell/file.lo
  CC       ell/dir.lo
  CC       ell/net.lo
  CC       ell/dhcp.lo
  CC       ell/dhcp-transport.lo
  CC       ell/dhcp-lease.lo
  CC       ell/dhcp6.lo
  CC       ell/dhcp6-transport.lo
  CC       ell/dhcp6-lease.lo
  CC       ell/dhcp-util.lo
  CC       ell/dhcp-server.lo
  CC       ell/cert.lo
  CC       ell/cert-crypto.lo
  CC       ell/ecc-external.lo
  CC       ell/ecc.lo
  CC       ell/ecdh.lo
  CC       ell/time.lo
  CC       ell/gpio.lo
  CC       ell/path.lo
  CC       ell/icmp6.lo
  CC       ell/acd.lo
  CC       ell/tester.lo
  CC       ell/netconfig.lo
  CCLD     ell/libell.la
  CCLD     ell/libell-private.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       tools/certchain-verify.o
  CCLD     tools/certchain-verify
  CC       tools/genl-discover.o
  CCLD     tools/genl-discover
  CC       tools/genl-watch.o
  CCLD     tools/genl-watch
  CC       tools/genl-request.o
  CCLD     tools/genl-request
  CC       tools/gpio.o
  CCLD     tools/gpio
 /bin/mkdir -p '/usr/local/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   ell/libell.la '/usr/local/lib'
libtool: install: /usr/bin/install -c ell/.libs/libell.so.0.0.2 /usr/local/lib/libell.so.0.0.2
libtool: install: (cd /usr/local/lib && { ln -s -f libell.so.0.0.2 libell.so.0 || { rm -f libell.so.0 && ln -s libell.so.0.0.2 libell.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libell.so.0.0.2 libell.so || { rm -f libell.so && ln -s libell.so.0.0.2 libell.so; }; })
libtool: install: /usr/bin/install -c ell/.libs/libell.lai /usr/local/lib/libell.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 ell/ell.pc '/usr/local/lib/pkgconfig'
 /bin/mkdir -p '/usr/local/include/ell'
 /usr/bin/install -c -m 644 ell/ell.h ell/util.h ell/test.h ell/strv.h ell/utf8.h ell/queue.h ell/hashmap.h ell/string.h ell/settings.h ell/main.h ell/idle.h ell/signal.h ell/timeout.h ell/io.h ell/ringbuf.h ell/log.h ell/checksum.h ell/netlink.h ell/genl.h ell/rtnl.h ell/dbus.h ell/dbus-service.h ell/dbus-client.h ell/hwdb.h ell/cipher.h ell/random.h ell/uintset.h ell/base64.h ell/pem.h ell/tls.h ell/uuid.h ell/key.h ell/file.h ell/dir.h ell/net.h ell/dhcp.h ell/dhcp6.h ell/cert.h ell/ecc.h ell/ecdh.h '/usr/local/include/ell'
 /usr/bin/install -c -m 644 ell/time.h ell/gpio.h ell/path.h ell/icmp6.h ell/acd.h ell/tester.h ell/cleanup.h ell/netconfig.h '/usr/local/include/ell'

安装ell之后再次执行切换到mptcpd目录

执行./bootstrap

root@w1804-virtual-machine:/home/w1804/mptcpd# ./bootstrap 
libtoolize: putting auxiliary files in '.'.
libtoolize: linking file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt~obsolete.m4'
configure.ac:36: installing './compile'
configure.ac:34: installing './missing'
lib/Makefile.am: installing './depcomp

执行./configure

root@w1804-virtual-machine:/home/w1804/mptcpd# ./configure 
checking whether to enable debugging... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether to build with code coverage support... no
checking for doxygen... no
configure: WARNING: doxygen not found - will not generate any doxygen documentation
checking for perl... /usr/bin/perl
checking for pandoc... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: systemd system unit directory: /lib/systemd/system
checking whether C compiler accepts -Og... yes
checking whether C++ compiler accepts -Og... yes
checking for ELL... yes
checking for /proc/sys/net/mptcp/enabled... no
checking for /proc/sys/net/mptcp/mptcp_enabled... no
configure: WARNING: No MPTCP capable kernel detected. Assuming upstream.
checking linux/mptcp.h usability... no
checking linux/mptcp.h presence... no
checking for linux/mptcp.h... no
configure: WARNING: <linux/mptcp.h> header not found. Using fallback.
configure: Building support for upstream kernel.
configure: Default mptcpd path manager plugin: addr_adv.
checking whether C compiler accepts -fvisibility=hidden... yes
checking for library containing argp_parse... none required
checking for library containing dlopen... -ldl
checking for l_genl_msg_get_extended_error... yes
checking for l_hashmap_replace... yes
checking CFLAGS for maximum warnings... -Wall
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -Werror... yes
checking whether C compiler accepts -pedantic... yes
checking for _FORTIFY_SOURCE defined... yes
checking whether C compiler accepts -fstack-protector-strong... yes
checking whether C compiler accepts -Wformat=2... yes
checking whether C compiler accepts -fPIE... yes
checking whether the linker accepts -Wl,-z,noexecstack... yes
checking whether the linker accepts -Wl,-z,now... yes
checking whether the linker accepts -Wl,-z,relro... yes
checking whether the linker accepts -pie... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating etc/Makefile
config.status: creating man/Makefile
config.status: creating include/Makefile
config.status: creating include/linux/Makefile
config.status: creating include/mptcpd/Makefile
config.status: creating lib/Makefile
config.status: creating lib/mptcpd.pc
config.status: creating src/Makefile
config.status: creating plugins/Makefile
config.status: creating plugins/path_managers/Makefile
config.status: creating scripts/Makefile
config.status: creating tests/Makefile
config.status: creating tests/lib/Makefile
config.status: creating tests/plugins/Makefile
config.status: creating tests/plugins/bad/Makefile
config.status: creating tests/plugins/noop/Makefile
config.status: creating tests/plugins/priority/Makefile
config.status: creating tests/plugins/security/Makefile
config.status: creating include/mptcpd/private/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

编译安装

make install

root@w1804-virtual-machine:/home/w1804/mptcpd# make install
Making install in etc
make[1]: Entering directory '/home/w1804/mptcpd/etc'
  GEN      mptcpd.conf
make[2]: Entering directory '/home/w1804/mptcpd/etc'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/etc/mptcpd'
 /usr/bin/install -c -m 644 mptcpd.conf '/usr/local/etc/mptcpd'
make  install-data-hook
make[3]: Entering directory '/home/w1804/mptcpd/etc'
../scripts/check-permissions \
	/usr/local/etc/mptcpd \
	/usr/local/etc/mptcpd/mptcpd.conf
chmod o-w /usr/local/etc/mptcpd
make[3]: Leaving directory '/home/w1804/mptcpd/etc'
make[2]: Leaving directory '/home/w1804/mptcpd/etc'
make[1]: Leaving directory '/home/w1804/mptcpd/etc'
Making install in man
make[1]: Entering directory '/home/w1804/mptcpd/man'
  GEN      mptcpd.8
  GEN      mptcpize.8
make[2]: Entering directory '/home/w1804/mptcpd/man'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/share/man/man8'
 /usr/bin/install -c -m 644 mptcpd.8 mptcpize.8 '/usr/local/share/man/man8'
make[2]: Leaving directory '/home/w1804/mptcpd/man'
make[1]: Leaving directory '/home/w1804/mptcpd/man'
Making install in include
make[1]: Entering directory '/home/w1804/mptcpd/include'
Making install in mptcpd
make[2]: Entering directory '/home/w1804/mptcpd/include/mptcpd'
make[3]: Entering directory '/home/w1804/mptcpd/include/mptcpd'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/include/mptcpd'
 /usr/bin/install -c -m 644 addr_info.h export.h id_manager.h listener_manager.h network_monitor.h path_manager.h plugin.h types.h '/usr/local/include/mptcpd'
make[3]: Leaving directory '/home/w1804/mptcpd/include/mptcpd'
make[2]: Leaving directory '/home/w1804/mptcpd/include/mptcpd'
Making install in linux
make[2]: Entering directory '/home/w1804/mptcpd/include/linux'
make[3]: Entering directory '/home/w1804/mptcpd/include/linux'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/w1804/mptcpd/include/linux'
make[2]: Leaving directory '/home/w1804/mptcpd/include/linux'
make[2]: Entering directory '/home/w1804/mptcpd/include'
make[3]: Entering directory '/home/w1804/mptcpd/include'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/w1804/mptcpd/include'
make[2]: Leaving directory '/home/w1804/mptcpd/include'
make[1]: Leaving directory '/home/w1804/mptcpd/include'
Making install in lib
make[1]: Entering directory '/home/w1804/mptcpd/lib'
  CC       libmptcpd_la-addr_info.lo
  CC       libmptcpd_la-id_manager.lo
  CC       libmptcpd_la-listener_manager.lo
  CC       libmptcpd_la-network_monitor.lo
  CC       libmptcpd_la-path_manager.lo
  CC       libmptcpd_la-plugin.lo
  CC       libmptcpd_la-sockaddr.lo
  CC       libmptcpd_la-murmur_hash.lo
  CC       libmptcpd_la-hash_sockaddr.lo
  CCLD     libmptcpd.la
make[2]: Entering directory '/home/w1804/mptcpd/lib'
 /bin/mkdir -p '/usr/local/lib'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libmptcpd.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libmptcpd.so.3.0.0 /usr/local/lib/libmptcpd.so.3.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libmptcpd.so.3.0.0 libmptcpd.so.3 || { rm -f libmptcpd.so.3 && ln -s libmptcpd.so.3.0.0 libmptcpd.so.3; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libmptcpd.so.3.0.0 libmptcpd.so || { rm -f libmptcpd.so && ln -s libmptcpd.so.3.0.0 libmptcpd.so; }; })
libtool: install: /usr/bin/install -c .libs/libmptcpd.lai /usr/local/lib/libmptcpd.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 mptcpd.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory '/home/w1804/mptcpd/lib'
make[1]: Leaving directory '/home/w1804/mptcpd/lib'
Making install in src
make[1]: Entering directory '/home/w1804/mptcpd/src'
  CC       libmptcpwrap_la-mptcpwrap.lo
  CCLD     libmptcpwrap.la
  CC       libpath_manager_la-commands.lo
  CC       libpath_manager_la-configuration.lo
  CC       libpath_manager_la-netlink_pm.lo
  CC       libpath_manager_la-path_manager.lo
  CC       libpath_manager_la-netlink_pm_upstream.lo
  CCLD     libpath_manager.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       mptcpize-mptcpize.o
  CCLD     mptcpize
  CC       mptcpd.o
  CCLD     mptcpd
  GEN      mptcp.service
make[2]: Entering directory '/home/w1804/mptcpd/src'
 /bin/mkdir -p '/usr/local/bin'
  /bin/sh ../libtool   --mode=install /usr/bin/install -c mptcpize '/usr/local/bin'
libtool: install: /usr/bin/install -c mptcpize /usr/local/bin/mptcpize
 /bin/mkdir -p '/usr/local/libexec'
  /bin/sh ../libtool   --mode=install /usr/bin/install -c mptcpd '/usr/local/libexec'
libtool: install: /usr/bin/install -c .libs/mptcpd /usr/local/libexec/mptcpd
 /bin/mkdir -p '/usr/local/lib/mptcpize'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libmptcpwrap.la '/usr/local/lib/mptcpize'
libtool: install: /usr/bin/install -c .libs/libmptcpwrap.so.0.0.1 /usr/local/lib/mptcpize/libmptcpwrap.so.0.0.1
libtool: install: (cd /usr/local/lib/mptcpize && { ln -s -f libmptcpwrap.so.0.0.1 libmptcpwrap.so.0 || { rm -f libmptcpwrap.so.0 && ln -s libmptcpwrap.so.0.0.1 libmptcpwrap.so.0; }; })
libtool: install: (cd /usr/local/lib/mptcpize && { ln -s -f libmptcpwrap.so.0.0.1 libmptcpwrap.so || { rm -f libmptcpwrap.so && ln -s libmptcpwrap.so.0.0.1 libmptcpwrap.so; }; })
libtool: install: /usr/bin/install -c .libs/libmptcpwrap.lai /usr/local/lib/mptcpize/libmptcpwrap.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /usr/local/lib/mptcpize
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/mptcpize

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/lib/systemd/system'
 /usr/bin/install -c -m 644 mptcp.service '/lib/systemd/system'
make[2]: Leaving directory '/home/w1804/mptcpd/src'
make[1]: Leaving directory '/home/w1804/mptcpd/src'
Making install in plugins
make[1]: Entering directory '/home/w1804/mptcpd/plugins'
Making install in path_managers
make[2]: Entering directory '/home/w1804/mptcpd/plugins/path_managers'
  CC       addr_adv_la-addr_adv.lo
  CCLD     addr_adv.la
  CC       sspi_la-sspi.lo
  CCLD     sspi.la
make[3]: Entering directory '/home/w1804/mptcpd/plugins/path_managers'
for dir in "/usr/local/lib/mptcpd"; do \
  test -z "$dir" || /bin/mkdir -p "$dir"; \
done
chmod o-w /usr/local/lib/mptcpd
 /bin/mkdir -p '/usr/local/lib/mptcpd'
 /bin/sh ../../libtool   --mode=install /usr/bin/install -c   addr_adv.la sspi.la '/usr/local/lib/mptcpd'
libtool: warning: relinking 'addr_adv.la'
libtool: install: (cd /home/w1804/mptcpd/plugins/path_managers; /bin/sh "/home/w1804/mptcpd/libtool"  --silent --tag CC --mode=relink gcc -I/usr/local/include -g -O0 -Og -fvisibility=hidden -Wall -Wextra -Werror -pedantic -fstack-protector-strong -Wformat=2 -no-undefined -module -avoid-version -L/usr/local/lib -lell -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -o addr_adv.la -rpath /usr/local/lib/mptcpd addr_adv_la-addr_adv.lo ../../lib/libmptcpd.la -ldl )
libtool: install: /usr/bin/install -c .libs/addr_adv.soT /usr/local/lib/mptcpd/addr_adv.so
libtool: install: /usr/bin/install -c .libs/addr_adv.lai /usr/local/lib/mptcpd/addr_adv.la
libtool: warning: relinking 'sspi.la'
libtool: install: (cd /home/w1804/mptcpd/plugins/path_managers; /bin/sh "/home/w1804/mptcpd/libtool"  --silent --tag CC --mode=relink gcc -I/usr/local/include -g -O0 -Og -fvisibility=hidden -Wall -Wextra -Werror -pedantic -fstack-protector-strong -Wformat=2 -no-undefined -module -avoid-version -L/usr/local/lib -lell -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -o sspi.la -rpath /usr/local/lib/mptcpd sspi_la-sspi.lo ../../lib/libmptcpd.la -ldl )
libtool: install: /usr/bin/install -c .libs/sspi.soT /usr/local/lib/mptcpd/sspi.so
libtool: install: /usr/bin/install -c .libs/sspi.lai /usr/local/lib/mptcpd/sspi.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /usr/local/lib/mptcpd
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/mptcpd

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make  install-exec-hook
make[4]: Entering directory '/home/w1804/mptcpd/plugins/path_managers'
../../scripts/check-permissions /usr/local/lib/mptcpd
make[4]: Leaving directory '/home/w1804/mptcpd/plugins/path_managers'
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/w1804/mptcpd/plugins/path_managers'
make[2]: Leaving directory '/home/w1804/mptcpd/plugins/path_managers'
make[2]: Entering directory '/home/w1804/mptcpd/plugins'
make[3]: Entering directory '/home/w1804/mptcpd/plugins'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/w1804/mptcpd/plugins'
make[2]: Leaving directory '/home/w1804/mptcpd/plugins'
make[1]: Leaving directory '/home/w1804/mptcpd/plugins'
Making install in tests
make[1]: Entering directory '/home/w1804/mptcpd/tests'
Making install in lib
make[2]: Entering directory '/home/w1804/mptcpd/tests/lib'
make[3]: Entering directory '/home/w1804/mptcpd/tests/lib'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/w1804/mptcpd/tests/lib'
make[2]: Leaving directory '/home/w1804/mptcpd/tests/lib'
Making install in plugins
make[2]: Entering directory '/home/w1804/mptcpd/tests/plugins'
Making install in bad
make[3]: Entering directory '/home/w1804/mptcpd/tests/plugins/bad'
make[4]: Entering directory '/home/w1804/mptcpd/tests/plugins/bad'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/w1804/mptcpd/tests/plugins/bad'
make[3]: Leaving directory '/home/w1804/mptcpd/tests/plugins/bad'
Making install in noop
make[3]: Entering directory '/home/w1804/mptcpd/tests/plugins/noop'
make[4]: Entering directory '/home/w1804/mptcpd/tests/plugins/noop'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/w1804/mptcpd/tests/plugins/noop'
make[3]: Leaving directory '/home/w1804/mptcpd/tests/plugins/noop'
Making install in priority
make[3]: Entering directory '/home/w1804/mptcpd/tests/plugins/priority'
make[4]: Entering directory '/home/w1804/mptcpd/tests/plugins/priority'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/w1804/mptcpd/tests/plugins/priority'
make[3]: Leaving directory '/home/w1804/mptcpd/tests/plugins/priority'
Making install in security
make[3]: Entering directory '/home/w1804/mptcpd/tests/plugins/security'
make[4]: Entering directory '/home/w1804/mptcpd/tests/plugins/security'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/w1804/mptcpd/tests/plugins/security'
make[3]: Leaving directory '/home/w1804/mptcpd/tests/plugins/security'
make[3]: Entering directory '/home/w1804/mptcpd/tests/plugins'
make[4]: Entering directory '/home/w1804/mptcpd/tests/plugins'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/w1804/mptcpd/tests/plugins'
make[3]: Leaving directory '/home/w1804/mptcpd/tests/plugins'
make[2]: Leaving directory '/home/w1804/mptcpd/tests/plugins'
make[2]: Entering directory '/home/w1804/mptcpd/tests'
  CC       mptcpwrap-tester.o
  CCLD     mptcpwrap-tester
make[3]: Entering directory '/home/w1804/mptcpd/tests'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/w1804/mptcpd/tests'
make[2]: Leaving directory '/home/w1804/mptcpd/tests'
make[1]: Leaving directory '/home/w1804/mptcpd/tests'
Making install in scripts
make[1]: Entering directory '/home/w1804/mptcpd/scripts'
make[2]: Entering directory '/home/w1804/mptcpd/scripts'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/w1804/mptcpd/scripts'
make[1]: Leaving directory '/home/w1804/mptcpd/scripts'
make[1]: Entering directory '/home/w1804/mptcpd'
make[2]: Entering directory '/home/w1804/mptcpd'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/w1804/mptcpd'
make[1]: Leaving directory '/home/w1804/mptcpd'

测试指令mptcpize 

oot@w1804-virtual-machine:/home/w1804/mptcpd# mptcpize 
Usage: mptcpize CMD
mptcpize - a tool to enable MPTCP usage on unmodified legacy services

Available CMDs:
	run [-d] prog [<args>]    Run target program with specified
	                          arguments, forcing MPTCP socket usage
	                          instead of TCP.  If the '-d' argument
	                          is provided, dump messages on stderr
	                          when a TCP socket is forced to MPTCP.

	enable <unit>             Update the systemd <unit>, forcing
	                          the given service to run under the
	                          above launcher.

	disable <unit>            Update the systemd <unit>, removing
	                          the above launcher.

Report bugs to <mptcp@lists.linux.dev>.

备注:

       ubuntu需要安装如下软件包

sudo apt-get -y install autoconf automake libtool autoconf-archive pkg-config

  • 11
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

wellnw

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值