Go to file
Andrea Claudi 6d68d7f85d testsuite: fix build failure
After commit 6c09257f1b ("rtnetlink: add new function
rtnl_echo_talk()") "make check" results in:

$ make check

make -C testsuite
make -C iproute2 configure
make -C testsuite alltests
make -C tools
    CC       generate_nlmsg
/usr/bin/ld: /tmp/cc6YaGBM.o: in function `rtnl_echo_talk':
libnetlink.c:(.text+0x25bd): undefined reference to `new_json_obj'
/usr/bin/ld: libnetlink.c:(.text+0x25c7): undefined reference to `open_json_object'
/usr/bin/ld: libnetlink.c:(.text+0x25e3): undefined reference to `close_json_object'
/usr/bin/ld: libnetlink.c:(.text+0x25e8): undefined reference to `delete_json_obj'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:6: generate_nlmsg] Error 1
make[1]: *** [Makefile:40: generate_nlmsg] Error 2
make: *** [Makefile:130: check] Error 2

This is due to json function calls included in libutil and not in
libnetlink. Fix this adding libutil.a to the tools Makefile, and linking
against libcap as required by libutil itself.

Fixes: 6c09257f1b ("rtnetlink: add new function rtnl_echo_talk()")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Acked-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2022-10-26 08:52:02 -07:00
bash-completion devlink: add support for running selftests 2022-08-04 12:34:28 -06:00
bridge bridge: Do not print stray prefixes in monitor mode 2022-09-30 12:36:40 -07:00
dcb dcb: unblock mnl_socket_recvfrom if not message received 2022-10-20 15:55:44 -07:00
devlink Merge remote-tracking branch 'main/main' into next 2022-10-03 08:51:23 -06:00
doc/actions doc: fix 'infact' --> 'in fact' typo 2022-05-13 16:34:09 -07:00
etc/iproute2 Add Open/R to rt_protos 2021-03-30 03:04:09 +00:00
examples/bpf examples/bpf: add bpf examples with BTF defined maps 2020-11-24 22:14:08 -07:00
genl genl: fix duplicate include guard 2022-06-17 10:08:19 -07:00
include uapi: update from 6.1 pre rc1 2022-10-11 07:17:52 -07:00
ip iplink_can: add missing `]' of the bitrate, dbitrate and termination arrays 2022-10-17 20:25:12 -07:00
lib rtnetlink: add new function rtnl_echo_talk() 2022-09-29 09:05:03 -06:00
man ss: man: add missing entries for TIPC 2022-10-20 15:59:57 -07:00
misc ss: re-add TIPC query support 2022-10-20 15:59:57 -07:00
netem doc: remove trailing whitespace 2018-12-19 12:02:38 -08:00
rdma uapi: update headers from 6.0-rc1 2022-08-14 19:25:21 -07:00
schema bridge: add json schema for bridge fdb show 2016-07-20 12:02:02 -07:00
tc u32: fix json formatting of flowid 2022-10-13 08:30:34 -07:00
testsuite testsuite: fix build failure 2022-10-26 08:52:02 -07:00
tipc tipc: fix keylen check 2022-05-17 12:57:45 -07:00
vdpa uapi: update from 6.1 pre rc1 2022-10-11 07:17:52 -07:00
.clang-format clang-format: add configuration file 2019-01-17 13:38:23 -08:00
.gitignore Remove leftovers from removed Latex documentation 2018-02-13 16:43:19 -08:00
.mailmap mailmap: map David's mail address 2019-05-15 09:50:42 -07:00
configure configure: Define _GNU_SOURCE when checking for setns 2022-08-12 08:21:09 -07:00
COPYING Update address of FSF in license 2008-03-08 13:31:03 -08:00
Makefile Makefile: move HAVE_MNL check to top-level Makefile 2022-03-12 09:00:56 -07:00
README README: remove doc instructions 2021-03-20 09:29:02 -07:00
README.devel README: update location of git repositories, remove broken info link 2018-02-13 16:42:51 -08:00

This is a set of utilities for Linux networking.

Information:
    https://wiki.linuxfoundation.org/networking/iproute2

Download:
    http://www.kernel.org/pub/linux/utils/net/iproute2/

Stable version repository:
    git://git.kernel.org/pub/scm/network/iproute2/iproute2.git

Development repository:
    git://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git

How to compile this.
--------------------
1. libdbm

arpd needs to have the berkeleydb development libraries. For Debian
users this is the package with a name like libdbX.X-dev.
DBM_INCLUDE points to the directory with db_185.h which
is the include file used by arpd to get to the old format Berkeley
database routines.  Often this is in the db-devel package.

2. make

The makefile will automatically build a config.mk file which
contains definitions of libraries that may or may not be available
on the system such as: ATM, ELF, MNL, and SELINUX.

3. include/uapi

This package includes matching sanitized kernel headers because
the build environment may not have up to date versions. See Makefile
if you have special requirements and need to point at different
kernel include files.

Stephen Hemminger
stephen@networkplumber.org

Alexey Kuznetsov
kuznet@ms2.inr.ac.ru