Ask Your Question

build error on 3.1.0

asked 2019-08-07 02:31:35 +0000

Ron Christie gravatar image

Hi all, I'm trying to build 3.1.0. Cmake completes successfully, but make fails with the following:

[  6%] Building C object caputils/CMakeFiles/caputils.dir/capture-pcap-util-unix.c.o
[  6%] Building C object caputils/CMakeFiles/caputils.dir/capture-pcap-util.c.o
[  6%] Building C object caputils/CMakeFiles/caputils.dir/iface_monitor.c.o
/home/ron/wireshark-3.1.0/caputils/iface_monitor.c: In function ‘iface_mon_handler2’:
/home/ron/wireshark-3.1.0/caputils/iface_monitor.c:85:5: error: implicit declaration of function ‘nl_object_get_msgtype’ [-Werror=implicit-function-declaration]
     int msg_type = nl_object_get_msgtype(obj);
cc1: all warnings being treated as errors
make[2]: *** [caputils/CMakeFiles/caputils.dir/iface_monitor.c.o] Error 1
make[1]: *** [caputils/CMakeFiles/caputils.dir/all] Error 2
make: *** [all] Error 2
[ron@dl380g5centos7 build]$

Does anyone have a suggestion as to how to proceed? Thanks.

edit retag flag offensive close merge delete


Sorry, I should have mentioned my environment: CentOS 7, x86-64, 32 GB RAM, etc. gcc 4.8.5

Ron Christie gravatar imageRon Christie ( 2019-08-07 02:36:10 +0000 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-08-07 05:54:11 +0000

Jaap gravatar image

This was added between 3.0 and master. A quick look into this shows that nl_object_get_msgtype() is not in available in libnl1, so this code should be guarded with a libnl version check. Please file a bug report so this can be properly handled.

edit flag offensive delete link more


Done. Thanks.

Ron Christie gravatar imageRon Christie ( 2019-08-10 15:59:51 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2019-08-07 02:31:35 +0000

Seen: 490 times

Last updated: Aug 07 '19