Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2016 16:44:43 +0000
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-ports@freebsd.org
Subject:   wireshark won't build
Message-ID:  <a77149f7-143b-25ab-bd7f-873642866445@zyxst.net>

next in thread | raw e-mail | index | archive | help
Hello ports@,

I'm having problems building wireshark.

System runs freebsd-stable r308206 and ports is 426176.

/etc/make.conf looks like this:

DEFAULT_VERSIONS+=ssl=libressl-devel

make config has KRB_NONE selected, all other options are the defaults. 
Just in case, I also ran make rmconfig (before selecting KRB_NONE 
otherwise it selects kerebos support in base system and I don't have 
kerebos, so it complains. I also ran make rmconfig-recursive, and in 
/usr/src ran yes | make delete-old and yes | make delete-old-libs.

Yet it still doesn't build. It DOES build on a vanilla freebsd-CURRENT 
machine. That machine also has the same /etc/make.conf. I also tried 
MAKE_JOBS_UNSAFE as suggested. I'm stumped. Can anyone help please? Here 
is the output leading up to the failure.

mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool  --tag=CC   --mode=link cc  -Wall -Wextra 
-Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -Wvla -Waddress 
-Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas 
-Wno-overlength-strings -Wno-long-long -Wheader-guard -Wc++-compat 
-Wdeclaration-after-statement -Wunused-const-variable -Wshadow 
-Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes 
-Wshorten-64-to-32 -Qunused-arguments -fvisibility=hidden 
-Wc99-extensions -O2 -pipe  -funit-at-a-time -fstack-protector 
-fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib 
-fstack-protector -o randpktdump randpktdump.o extcap-base.o 
../randpkt_core/librandpkt_core.a ../wiretap/libwiretap.la 
../wsutil/libwsutil.la -L/usr/local/lib -lgthread-2.0 
-Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lintl   -lz -lm 
-L/usr/local/lib
/bin/sh ../libtool  --tag=CC   --mode=link cc  -Wall -Wextra 
-Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -Wvla -Waddress 
-Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas 
-Wno-overlength-strings -Wno-long-long -Wheader-guard -Wc++-compat 
-Wdeclaration-after-statement -Wunused-const-variable -Wshadow 
-Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes 
-Wshorten-64-to-32 -Qunused-arguments -fvisibility=hidden 
-Wc99-extensions -O2 -pipe  -funit-at-a-time -fstack-protector 
-fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib 
-fstack-protector -o sshdump sshdump.o extcap-base.o ssh-base.o 
../wiretap/libwiretap.la ../wsutil/libwsutil.la -L/usr/local/lib 
-lgthread-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 
-lintl  -lz -lm -L/usr/local/lib
libtool: link: cc -Wall -Wextra -Wendif-labels -Wpointer-arith 
-Wformat-security -fwrapv -Wvla -Waddress -Wattributes -Wdiv-by-zero 
-Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long 
-Wheader-guard -Wc++-compat -Wdeclaration-after-statement 
-Wunused-const-variable -Wshadow -Wno-pointer-sign 
-Wold-style-definition -Wstrict-prototypes -Wshorten-64-to-32 
-Qunused-arguments -fvisibility=hidden -Wc99-extensions -O2 -pipe 
-funit-at-a-time -fstack-protector -fno-strict-aliasing -Wl,-rpath 
-Wl,/usr/local/lib -fstack-protector -o .libs/randpktdump randpktdump.o 
extcap-base.o -Wl,--export-dynamic -pthread  -L/usr/local/lib 
../randpkt_core/librandpkt_core.a ../wiretap/.libs/libwiretap.so 
../wsutil/.libs/libwsutil.so -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 
-lintl -lz -lm -pthread -Wl,-rpath -Wl,/usr/local/lib
libtool: link: cc -Wall -Wextra -Wendif-labels -Wpointer-arith 
-Wformat-security -fwrapv -Wvla -Waddress -Wattributes -Wdiv-by-zero 
-Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long 
-Wheader-guard -Wc++-compat -Wdeclaration-after-statement 
-Wunused-const-variable -Wshadow -Wno-pointer-sign 
-Wold-style-definition -Wstrict-prototypes -Wshorten-64-to-32 
-Qunused-arguments -fvisibility=hidden -Wc99-extensions -O2 -pipe 
-funit-at-a-time -fstack-protector -fno-strict-aliasing -Wl,-rpath 
-Wl,/usr/local/lib -fstack-protector -o .libs/sshdump sshdump.o 
extcap-base.o ssh-base.o -Wl,--export-dynamic -pthread  -L/usr/local/lib 
../wiretap/.libs/libwiretap.so ../wsutil/.libs/libwsutil.so 
-lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lz -lm -pthread 
-Wl,-rpath -Wl,/usr/local/lib
/bin/sh ../libtool  --tag=CC   --mode=link cc  -Wall -Wextra 
-Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -Wvla -Waddress 
-Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas 
-Wno-overlength-strings -Wno-long-long -Wheader-guard -Wc++-compat 
-Wdeclaration-after-statement -Wunused-const-variable -Wshadow 
-Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes 
-Wshorten-64-to-32 -Qunused-arguments -fvisibility=hidden 
-Wc99-extensions -O2 -pipe  -funit-at-a-time -fstack-protector 
-fno-strict-aliasing -L/usr/local/lib -Wl,-rpath,/usr/local/lib 
-fstack-protector -o ciscodump ciscodump.o extcap-base.o ssh-base.o 
../writecap/libwritecap.a ../wsutil/libwsutil.la -L/usr/local/lib 
-lgthread-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 
-lintl  -lz -lm -L/usr/local/lib
sshdump.o: In function `main':
sshdump.c:(.text+0x918): undefined reference to `ssh_channel_new'
sshdump.c:(.text+0x928): undefined reference to `ssh_channel_open_session'
sshdump.c:(.text+0x938): undefined reference to `ssh_channel_free'
sshdump.c:(.text+0xa44): undefined reference to `ssh_options_get_port'
sshdump.c:(.text+0xb1e): undefined reference to `ssh_channel_request_exec'
sshdump.c:(.text+0xb2a): undefined reference to `ssh_channel_close'
sshdump.c:(.text+0xb32): undefined reference to `ssh_channel_free'
sshdump.c:(.text+0xbb1): undefined reference to `ssh_channel_read'
sshdump.c:(.text+0xbf2): undefined reference to `ssh_channel_read'
sshdump.c:(.text+0xc1e): undefined reference to `ssh_channel_send_eof'
ssh-base.o: In function `create_ssh_connection':
ssh-base.c:(.text+0x2f): undefined reference to `ssh_new'
ssh-base.c:(.text+0x49): undefined reference to `ssh_options_set'
ssh-base.c:(.text+0x8b): undefined reference to `ssh_options_set'
ssh-base.c:(.text+0xbd): undefined reference to `ssh_options_set'
ssh-base.c:(.text+0xdf): undefined reference to `ssh_free'
ssh-base.c:(.text+0x11b): undefined reference to `ssh_connect'
ssh-base.c:(.text+0x12b): undefined reference to `ssh_get_error'
ssh-base.c:(.text+0x15a): undefined reference to `ssh_key_new'
ssh-base.c:(.text+0x18b): undefined reference to 
`ssh_pki_import_privkey_file'
ssh-base.c:(.text+0x19d): undefined reference to `ssh_userauth_publickey'
ssh-base.c:(.text+0x1ae): undefined reference to `ssh_key_free'
ssh-base.c:(.text+0x1b6): undefined reference to `ssh_get_error'
ssh-base.c:(.text+0x1f1): undefined reference to 
`ssh_userauth_publickey_auto'
ssh-base.c:(.text+0x238): undefined reference to `ssh_userauth_password'
ssh-base.c:(.text+0x269): undefined reference to `ssh_disconnect'
ssh-base.c:(.text+0x2a8): undefined reference to `ssh_key_free'
ssh-base.o: In function `ssh_channel_printf':
ssh-base.c:(.text+0x35e): undefined reference to `ssh_channel_write'
ssh-base.o: In function `ssh_cleanup':
ssh-base.c:(.text+0x3a6): undefined reference to `ssh_channel_send_eof'
ssh-base.c:(.text+0x3ae): undefined reference to `ssh_channel_close'
ssh-base.c:(.text+0x3b6): undefined reference to `ssh_channel_free'
ssh-base.c:(.text+0x3ca): undefined reference to `ssh_disconnect'
ssh-base.c:(.text+0x3d2): undefined reference to `ssh_free'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:735: sshdump] Error 1
gmake[4]: *** Waiting for unfinished jobs....
libtool: link: cc -Wall -Wextra -Wendif-labels -Wpointer-arith 
-Wformat-security -fwrapv -Wvla -Waddress -Wattributes -Wdiv-by-zero 
-Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long 
-Wheader-guard -Wc++-compat -Wdeclaration-after-statement 
-Wunused-const-variable -Wshadow -Wno-pointer-sign 
-Wold-style-definition -Wstrict-prototypes -Wshorten-64-to-32 
-Qunused-arguments -fvisibility=hidden -Wc99-extensions -O2 -pipe 
-funit-at-a-time -fstack-protector -fno-strict-aliasing -Wl,-rpath 
-Wl,/usr/local/lib -fstack-protector -o .libs/ciscodump ciscodump.o 
extcap-base.o ssh-base.o -Wl,--export-dynamic -pthread  -L/usr/local/lib 
../writecap/libwritecap.a ../wsutil/.libs/libwsutil.so -lgthread-2.0 
-lgmodule-2.0 -lglib-2.0 -lintl -lz -lm -pthread -Wl,-rpath 
-Wl,/usr/local/lib
ciscodump.o: In function `main':
ciscodump.c:(.text+0x619): undefined reference to `ssh_channel_new'
ciscodump.c:(.text+0x634): undefined reference to `ssh_channel_open_session'
ciscodump.c:(.text+0x647): undefined reference to `ssh_channel_request_pty'
ciscodump.c:(.text+0x664): undefined reference to 
`ssh_channel_change_pty_size'
ciscodump.c:(.text+0x677): undefined reference to 
`ssh_channel_request_shell'
ciscodump.c:(.text+0x724): undefined reference to `ssh_channel_write'
ciscodump.c:(.text+0x749): undefined reference to `ssh_channel_read_timeout'
ciscodump.c:(.text+0x78d): undefined reference to `ssh_channel_read_timeout'
ciscodump.c:(.text+0x7b6): undefined reference to `ssh_channel_read_timeout'
ciscodump.c:(.text+0x801): undefined reference to `ssh_channel_read_timeout'
ciscodump.c:(.text+0xd07): undefined reference to `ssh_channel_write'
ciscodump.c:(.text+0xdee): undefined reference to `ssh_channel_read_timeout'
ciscodump.c:(.text+0xe36): undefined reference to `ssh_channel_read_timeout'
ciscodump.c:(.text+0xeb2): undefined reference to `ssh_channel_read_timeout'
ciscodump.c:(.text+0xefa): undefined reference to `ssh_channel_read_timeout'
ciscodump.c:(.text+0xf8a): undefined reference to `ssh_channel_read_timeout'
ciscodump.o:ciscodump.c:(.text+0xfd2): more undefined references to 
`ssh_channel_read_timeout' follow
ciscodump.o: In function `main':
ciscodump.c:(.text+0x1467): undefined reference to `ssh_channel_close'
ciscodump.c:(.text+0x146f): undefined reference to `ssh_channel_free'
ciscodump.c:(.text+0x153e): undefined reference to 
`ssh_channel_read_timeout'
ciscodump.c:(.text+0x1582): undefined reference to 
`ssh_channel_read_timeout'
ciscodump.c:(.text+0x163c): undefined reference to 
`ssh_channel_read_timeout'
ciscodump.c:(.text+0x167c): undefined reference to 
`ssh_channel_read_timeout'
ssh-base.o: In function `create_ssh_connection':
ssh-base.c:(.text+0x2f): undefined reference to `ssh_new'
ssh-base.c:(.text+0x49): undefined reference to `ssh_options_set'
ssh-base.c:(.text+0x8b): undefined reference to `ssh_options_set'
ssh-base.c:(.text+0xbd): undefined reference to `ssh_options_set'
ssh-base.c:(.text+0xdf): undefined reference to `ssh_free'
ssh-base.c:(.text+0x11b): undefined reference to `ssh_connect'
ssh-base.c:(.text+0x12b): undefined reference to `ssh_get_error'
ssh-base.c:(.text+0x15a): undefined reference to `ssh_key_new'
ssh-base.c:(.text+0x18b): undefined reference to 
`ssh_pki_import_privkey_file'
ssh-base.c:(.text+0x19d): undefined reference to `ssh_userauth_publickey'
ssh-base.c:(.text+0x1ae): undefined reference to `ssh_key_free'
ssh-base.c:(.text+0x1b6): undefined reference to `ssh_get_error'
ssh-base.c:(.text+0x1f1): undefined reference to 
`ssh_userauth_publickey_auto'
ssh-base.c:(.text+0x238): undefined reference to `ssh_userauth_password'
ssh-base.c:(.text+0x269): undefined reference to `ssh_disconnect'
ssh-base.c:(.text+0x2a8): undefined reference to `ssh_key_free'
ssh-base.o: In function `ssh_channel_printf':
ssh-base.c:(.text+0x35e): undefined reference to `ssh_channel_write'
ssh-base.o: In function `ssh_cleanup':
ssh-base.c:(.text+0x3a6): undefined reference to `ssh_channel_send_eof'
ssh-base.c:(.text+0x3ae): undefined reference to `ssh_channel_close'
ssh-base.c:(.text+0x3b6): undefined reference to `ssh_channel_free'
ssh-base.c:(.text+0x3ca): undefined reference to `ssh_disconnect'
ssh-base.c:(.text+0x3d2): undefined reference to `ssh_free'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:727: ciscodump] Error 1
gmake[4]: Leaving directory 
'/storage/usr/ports/net/wireshark/work/wireshark-2.2.1/extcap'
gmake[3]: *** [Makefile:3408: all-recursive] Error 1
gmake[3]: Leaving directory 
'/storage/usr/ports/net/wireshark/work/wireshark-2.2.1'
gmake[2]: *** [Makefile:1737: all] Error 2
gmake[2]: Leaving directory 
'/storage/usr/ports/net/wireshark/work/wireshark-2.2.1'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /storage/usr/ports/net/wireshark
*** Error code 1

Stop.
make: stopped in /storage/usr/ports/net/wireshark

many thanks,
-- 
J.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a77149f7-143b-25ab-bd7f-873642866445>