Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#55186 closed defect (fixed)

ipv6calc @1.0.0: error: unused variable 'optopt' [-Werror,-Wunused-variable]

Reported by: iefdev (Eric F) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: ipv6calc

Description

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.                ^

Attachments (1)

ipv6calc_main.log (71.0 KB) - added by iEFdev 7 years ago.
Main logfile

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by iEFdev

Attachment: ipv6calc_main.log added

Main logfile

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Status: newaccepted
Summary: ipv6calc fails to upgrade/installipv6calc @1.0.0: error: unused variable 'optopt' [-Werror,-Wunused-variable]

Hmm, it doesn't do that for me, but I'm on Sierra with Xcode 9.0.1 and you're on Lion. Curiously, our buildbot successfully built this port on every OS from Leopard to High Sierra inclusive, except for Lion. Its older clang must be pickier about this or have some bug. Usually we don't want to turn compiler warnings into errors, so I'll fix this port to no longer do that.

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 335ad0e36dac6cc5d113f1788b9f1821c01ad808/macports-ports:

ipv6calc: Do not turn warnings into errors

Fixes build on Lion.

Closes: #55186

comment:3 Changed 7 years ago by iEFdev

Thanks Ryan! That was really fast. It installed fine now.

Note: See TracTickets for help on using tickets.