ipv6calc @1.0.0: error: unused variable 'optopt' [-Werror,-Wunused-variable]
Tried to upgrade ipv6calc tonight (0.94.1 -> 1.0.0). It failed during build.
:info:build /usr/bin/clang -c ipv6loganon.c -D_GNU_SOURCE -O2 -Wall -g -Wformat -Werror -Werror=format-security -Wsizeof-array-argument -Wparentheses-equality -Wextra -D__EXTENSIONS__ -I../md5 -I../ -I../lib/
:info:build ipv6loganon.c:107:13: error: unused variable 'optopt' [-Werror,-Wunused-variable]
:info:build extern int optopt;
:info:build ^
:info:build /usr/bin/clang -c showinfo.c -D_GNU_SOURCE -O2 -Wall -g -Wformat -Werror -Werror=format-security -Wsizeof-array-argument -Wparentheses-equality -Wextra -I../md5 -I../ -I../lib/ -I../databases/lib/
:info:build ipv6logstats.c:145:13: error: unused variable 'optopt' [-Werror,-Wunused-variable]
:info:build extern int optopt;
:info:build ^
:info:build 1 error generated.
:info:build make[1]: *** [ipv6loganon.o] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/ipv6loganon'
:info:build make: *** [ipv6loganon-make] Error 2
:info:build make: *** Waiting for unfinished jobs....
:info:build cd ../ && /usr/bin/make lib-make
:info:build 1 error generated.
:info:build ipv6logconv.c:96:13: error: unused variable 'optopt' [-Werror,-Wunused-variable]
:info:build extern int optopt;
:info:build ^
:info:build make[1]: *** [ipv6logstats.o] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/ipv6logstats'
:info:build make: *** [ipv6logstats-make] Error 2
:info:build cd ../ && /usr/bin/make lib-make
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0'
:info:build cd md5 && /usr/bin/make
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0'
:info:build cd md5 && /usr/bin/make
:info:build 1 error generated.
:info:build make[1]: *** [ipv6logconv.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build /usr/bin/clang -c ipv6calchelp_local.c -D_GNU_SOURCE -O2 -Wall -g -Wformat -Werror -Werror=format-security -Wsizeof-array-argument -Wparentheses-equality -Wextra -I../md5 -I../ -I../lib/ -I../databases/lib/
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/md5'
:info:build make[3]: Nothing to be done for `all'.
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/md5'
:info:build cd databases/ieee-oui && /usr/bin/make
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/md5'
:info:build make[3]: Nothing to be done for `all'.
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/md5'
:info:build cd databases/ieee-oui && /usr/bin/make
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/databases/ieee-oui'
:info:build test -f dbieee_oui.h || /usr/bin/make update
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/databases/ieee-oui'
:info:build test -f dbieee_oui.h || /usr/bin/make update
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/databases/ieee-oui'
:info:build cd databases/ieee-iab && /usr/bin/make
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/databases/ieee-oui'
:info:build cd databases/ieee-iab && /usr/bin/make
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/databases/ieee-iab'
:info:build test -f dbieee_iab.h || /usr/bin/make update
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/databases/ieee-iab'
:info:build test -f dbieee_iab.h || /usr/bin/make update
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/databases/ieee-iab'
:info:build cd databases/ipv4-assignment && /usr/bin/make
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/work/ipv6calc-1.0.0/databases/ieee-iab'
:info:build cd databases/ipv4-assignment && /usr/bin/make
:info:build ipv6calc.c:101:13: error: unused variable 'optopt' [-Werror,-Wunused-variable]
:info:build extern int optopt;
:info:build ^
:info:build 1 error generated.
// ... //
:info:build Exit code: 2
:error:build Failed to build ipv6calc: command execution failed
:debug:build Error code: CHILDSTATUS 50268 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ipv6calc/ipv6calc/main.log for details. ^
Main logfile