pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/58097: iperf3 fails to build on sparc



The following reply was made to PR pkg/58097; it has been noted by GNATS.

From: Brandon Applegate <brandon%burn.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/58097: iperf3 fails to build on sparc
Date: Mon, 1 Apr 2024 20:51:34 -0400

 Thomas,
 
 Thanks for the lightning quick reply.  Sorry I wasn=E2=80=99t as quick =
 with mine (I was building something else on sparc that pulled in Python =
 3 so the machine was tied up for a good while :) )
 
 I added that to the iperf3 Makefile and I get seemingly the same =
 warnings/errors but also some new ones (regarding pthread):
 
 In file included from /usr/include/stdio.h:595,
                  from iperf_util.c:34:
 iperf_util.c: In function 'get_system_info':
 iperf_util.c:235:32: warning: '%s' directive output may be truncated =
 writing up to 255 bytes into a region of size between 0 and 1020 =
 [-Wformat-truncation=3D]
   235 |     snprintf(buf, sizeof(buf), "%s %s %s %s %s", uts.sysname, =
 uts.nodename,
       |                                ^~~~~~~~~~~~~~~~
   236 |       uts.release, uts.version, uts.machine);
       |                                 ~~~~~~~~~~~
 iperf_util.c:235:45: note: format string is defined here
   235 |     snprintf(buf, sizeof(buf), "%s %s %s %s %s", uts.sysname, =
 uts.nodename,
       |                                             ^~
 In file included from /usr/include/stdio.h:595,
                  from iperf_util.c:34:
 iperf_util.c:235:5: note: '__builtin_snprintf' output between 5 and 1280 =
 bytes into a destination of size 1024
   235 |     snprintf(buf, sizeof(buf), "%s %s %s %s %s", uts.sysname, =
 uts.nodename,
       |     ^~~~~~~~
   CC       iperf_time.lo
   CC       dscp.lo
   CC       net.lo
   CC       tcp_info.lo
   CC       timer.lo
   CC       units.lo
   CCLD     libiperf.la
   CCLD     iperf3
 ld: ./.libs/libiperf.so: undefined reference to `pthread_setcanceltype'
 ld: ./.libs/libiperf.so: undefined reference to `pthread_attr_init'
 ld: ./.libs/libiperf.so: undefined reference to `pthread_attr_destroy'
 ld: ./.libs/libiperf.so: undefined reference to `pthread_create'
 ld: ./.libs/libiperf.so: undefined reference to `pthread_cancel'
 ld: ./.libs/libiperf.so: undefined reference to `__atomic_fetch_add_8'
 *** Error code 1
 


Home | Main Index | Thread Index | Old Index