Ask Your Question
0

Compiler issue on raspberry

asked 2021-01-09 08:17:32 +0000

hmtsai gravatar image

updated 2021-01-09 18:36:12 +0000

Guy Harris gravatar image

I use the version 2.6.4 source code on raspberry pi 3. It shows below error messags. Anyone can give me suggestions.

make[2]: Entering directory '/home/pi/wireshark-2.6.4'
  PERL     version.h
version.h unchanged.
  CCLD     rawshark
epan/.libs/libwireshark.so: undefined reference to `radius_combo_ip'
epan/.libs/libwireshark.so: undefined reference to `register_giop_user_module'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_boolean'
epan/.libs/libwireshark.so: undefined reference to `radius_ifid'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_octet'
epan/.libs/libwireshark.so: undefined reference to `radius_date'
epan/.libs/libwireshark.so: undefined reference to `radius_abinary'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_any'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_ulong'
epan/.libs/libwireshark.so: undefined reference to `giop_add_CDR_string'
epan/.libs/libwireshark.so: undefined reference to `radius_ipaddr'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_wstring'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_long'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_wchar'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_ushort'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_char'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_object'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_float'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_long_long'
epan/.libs/libwireshark.so: undefined reference to `radius_octets'
epan/.libs/libwireshark.so: undefined reference to `decode_dcerpc_reset_all'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_short'
epan/.libs/libwireshark.so: undefined reference to `radius_string'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_ulong_long'
epan/.libs/libwireshark.so: undefined reference to `link_type_vals'
epan/.libs/libwireshark.so: undefined reference to `dissector_reg_proto_count'
epan/.libs/libwireshark.so: undefined reference to `radius_tlv'
epan/.libs/libwireshark.so: undefined reference to `radius_ipxnet'
epan/.libs/libwireshark.so: undefined reference to `dissector_reg_handoff'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_double'
epan/.libs/libwireshark.so: undefined reference to `make_printable_string'
epan/.libs/libwireshark.so: undefined reference to `free_radius_attr_info'
epan/.libs/libwireshark.so: undefined reference to `radius_ipv6addr'
epan/.libs/libwireshark.so: undefined reference to `radius_signed'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_octet_seq'
epan/.libs/libwireshark.so: undefined reference to `get_CDR_enum'
epan/.libs/libwireshark.so: undefined reference to `radius_ether'
epan/.libs/libwireshark.so: undefined reference to `hci_mon_opcode_vals_ext'
epan/.libs/libwireshark.so: undefined reference to `is_big_endian'
epan/.libs/libwireshark.so: undefined reference to `dissector_reg_proto'
epan/.libs/libwireshark.so: undefined reference to `dissector_reg_handoff_count'
epan/.libs/libwireshark.so: undefined reference to `radius_integer'
epan/.libs/libwireshark.so: undefined reference to `radius_ipv6prefix'
epan/.libs/libwireshark.so: undefined reference to `register_giop_user'
collect2: error: ld returned 1 exit status
Makefile:1817: recipe for target 'rawshark' failed
make[2]: *** [rawshark] Error 1
make[2]: Leaving directory '/home/pi/wireshark-2.6.4'
Makefile:3387: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/wireshark-2.6.4'
Makefile:1650: recipe for target 'all' failed
make: *** [all] Error 2
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-10 06:10:37 +0000

Chuckc gravatar image

updated 2021-01-10 06:34:28 +0000

I tested on raspbian buster.
Use the debian-setup.sh script in the tools directory to verify all dependencies are loaded. (The version shipped with 2.6.4 looks very different from the current version on gitlab but does load everything needed to build)

Building on Unix
The Ninja cmake hung when I was testing. Instead use cmake ../wireshark then run make.
Update: the 2.6.4 debian-setup.sh does not load ninja-build which cmake needs to build the Ninja files.

[email protected]:~/wireshark_build/wireshark-make/run $ ./tshark -v
TShark (Wireshark) 2.6.4 (v2.6.4)

Copyright 1998-2018 Gerald Combs <[email protected]> and contributors.
License GPLv2+: GNU GPL version 2 or later <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (32-bit) with libpcap, with POSIX capabilities (Linux), with libnl 3,
with GLib 2.58.3, with zlib 1.2.11, with SMI 0.4.8, with c-ares 1.14.0, with Lua
5.2.4, with GnuTLS 3.6.7, with Gcrypt 1.8.4, with MIT Kerberos, with MaxMind DB
resolver, with nghttp2 1.36.0, with LZ4, with Snappy, with libxml2 2.9.4.

Running on Linux 4.19.118-v7+, with 926 MB of physical memory, with locale
en_US.UTF-8, with libpcap version 1.8.1, with GnuTLS 3.6.7, with Gcrypt 1.8.4,
with zlib 1.2.11, binary plugins supported (13 loaded).

Built using gcc 8.3.0.
edit flag offensive delete link more

Comments

From the looks of it the previous build system is used. Use ./autogen.sh && ./configure && make instead.

Jaap gravatar imageJaap ( 2021-01-11 11:58:47 +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

Stats

Asked: 2021-01-09 08:17:32 +0000

Seen: 59 times

Last updated: Jan 10