Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 2021 20:19:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        desktop@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 259925] graphics/cairo: rror: implicit declaration of function 'sched_getaffinity' is invalid in C99
Message-ID:  <bug-259925-39348-W0vqYqWj04@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259925-39348@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259925-39348@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 259925: graphics/cairo: rror: implicit declaration of function
'sched_getaffinity' is invalid in C99
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259925



--- Description ---
On CURRENT, FreeBSD 14.0-CURRENT #6 main-n250822-4fdc5b8494b4: Thu Nov 18
06:00:15 CET 2021 amd64, port graphics/cairo fails to build to to the error
shown below:

[...]
/bin/sh ../libtool  --tag=3DCC	--mode=3Dlink cc	-O2 -pipe=20
-fstack-protector-strong -fno-strict-aliasing	-fstack-protector-strong -o
libcairoperf.la  cairo-perf.lo cairo-perf-report.lo cairo-stats.lo
cairo-time.lo	 -lrt  -lm
libtool: link: ar cru .libs/libcairoperf.a .libs/cairo-perf.o
.libs/cairo-perf-report.o .libs/cairo-stats.o .libs/cairo-time.o=20
libtool: link: ranlib .libs/libcairoperf.a
libtool: link: ( cd ".libs" && rm -f "libcairoperf.la" && ln -s
"../libcairoperf.la" "libcairoperf.la" )
--- cairo-analyse-trace ---
--- cairo-perf-micro.o ---
cairo-perf-micro.c:418:5: error: unknown type name 'cpu_set_t'; did you mean
'cpusetid_t'?
    cpu_set_t affinity;
    ^~~~~~~~~
    cpusetid_t
/usr/include/sys/types.h:86:22: note: 'cpusetid_t' declared here
typedef __cpusetid_t	cpusetid_t;
			^
cairo-perf-micro.c:421:9: error: implicit declaration of function
'sched_getaffinity' is invalid in C99 [-Werror,-Wimplicit-function-declarat=
ion]
    if (sched_getaffinity(0, sizeof(affinity), &affinity)) {
	^
cairo-perf-micro.c:426:35: error: use of undeclared identifier 'CPU_SETSIZE'
    for(i =3D 0, cpu_count =3D 0; i < CPU_SETSIZE; ++i) {
				  ^
cairo-perf-micro.c:427:6: error: implicit declaration of function 'CPU_ISSE=
T'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
	if (CPU_ISSET(i, &affinity))
	    ^
--- cairo-analyse-trace ---



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259925-39348-W0vqYqWj04>