[Bug 278607] benchmarks/iperf failes to build with disabled IPV6 since port upgrade to v 2.2.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 27 Apr 2024 09:58:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278607

            Bug ID: 278607
           Summary: benchmarks/iperf failes to build with disabled IPV6
                    since port upgrade to v 2.2.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: peter.sopko+freebsd.org@backbone.sk
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

If IPV6 port option is disabled (have no idea why I had that disabled, probably
some historic default from first build on this server), build fails with the
following:

--- iperf_multicast_api.o ---
iperf_multicast_api.c:181:36: warning: call to undeclared function
'SockAddr_get_in6_addr'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
    memcpy(&mreq.ipv6mr_multiaddr,
SockAddr_get_in6_addr(&inSettings->multicast_group),
sizeof(mreq.ipv6mr_multiaddr));
                                   ^
iperf_multicast_api.c:181:36: error: incompatible integer to pointer conversion
passing 'int' to parameter of type 'const void *' [-Wint-conversion]
    memcpy(&mreq.ipv6mr_multiaddr,
SockAddr_get_in6_addr(&inSettings->multicast_group),
sizeof(mreq.ipv6mr_multiaddr));
                                  
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/string.h:63:56: note: passing argument to parameter here
void    *memcpy(void * __restrict, const void * __restrict, size_t);
                                                          ^
1 warning and 1 error generated.
--- iperf_formattime.o ---
mv -f .deps/iperf_formattime.Tpo .deps/iperf_formattime.Po
--- iperf_multicast_api.o ---
*** [iperf_multicast_api.o] Error code 1

make[2]: stopped in /usr/ports/benchmarks/iperf/work/iperf-2.2.0/src
--- Reporter.o ---
mv -f .deps/Reporter.Tpo .deps/Reporter.Po
--- Client.o ---
mv -f .deps/Client.Tpo .deps/Client.Po
--- Settings.o ---
mv -f .deps/Settings.Tpo .deps/Settings.Po
--- ReportOutputs.o ---
mv -f .deps/ReportOutputs.Tpo .deps/ReportOutputs.Po
1 error

make[2]: stopped in /usr/ports/benchmarks/iperf/work/iperf-2.2.0/src

make[1]: stopped in /usr/ports/benchmarks/iperf/work/iperf-2.2.0

make: stopped in /usr/ports/benchmarks/iperf/work/iperf-2.2.0
===> 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 /usr/ports/benchmarks/iperf
*** Error code 1

Stop.
make: stopped in /usr/ports/benchmarks/iperf


If IPV6 is enabled, build works just fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.