NetBSD Problem Report #53832
From gson@gson.org Fri Jan 4 14:35:48 2019
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id EA4807A1BC
for <gnats-bugs@gnats.NetBSD.org>; Fri, 4 Jan 2019 14:35:48 +0000 (UTC)
Message-Id: <20190104143543.71DA39892E9@guava.gson.org>
Date: Fri, 4 Jan 2019 16:35:43 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: textproc/sord-0.16.2 fails to build on NetBSD 7
X-Send-Pr-Version: 3.95
>Number: 53832
>Category: pkg
>Synopsis: textproc/sord-0.16.2 fails to build on NetBSD 7
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 04 14:40:00 +0000 2019
>Closed-Date: Fri Jan 04 16:14:42 +0000 2019
>Last-Modified: Fri Jan 04 16:14:42 +0000 2019
>Originator: Andreas Gustafsson
>Release: NetBSD 7.2
>Organization:
>Environment:
System: NetBSD guava.gson.org 7.2 NetBSD 7.2 (GENERIC.201808291900Z) amd64
Architecture: x86_64
Machine: amd64
>Description:
Attempting to build textproc/sord on NetBSD 7.2 results in many
errors like these:
[ 4/13] Compiling src/n3.c
In file included from ../src/env.c:17:0:
../src/serd_internal.h: In function 'parse_counted_utf8_char':
../src/serd_internal.h:422:2: error: 'for' loop initial declarations are only allowed in C99 mode
for (size_t i = 1; i < size; ++i) {
^
../src/serd_internal.h:422:2: note: use option -std=c99 or -std=gnu99 to compile your code
../src/serd_internal.h: In function 'uri_rooted_index':
../src/serd_internal.h:483:2: error: 'for' loop initial declarations are only allowed in C99 mode
for (size_t i = 0; i < path_len && i < root_len; ++i) {
^
Adding c99 to USE_LANGUAGES does not help.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/53832: textproc/sord-0.16.2 fails to build on NetBSD 7
Date: Fri, 4 Jan 2019 17:56:46 +0200
Actually, the package failing to build is not sord-0.16.2 itself, but
its dependency serd-0.30.0 (I got confused by the similar names).
Setting USE_LANGUAGES=c99 does work when I add it to the Makefile of
the right package.
--
Andreas Gustafsson, gson@gson.org
From: "Andreas Gustafsson" <gson@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/53832 CVS commit: pkgsrc/textproc/serd
Date: Fri, 4 Jan 2019 16:02:21 +0000
Module Name: pkgsrc
Committed By: gson
Date: Fri Jan 4 16:02:21 UTC 2019
Modified Files:
pkgsrc/textproc/serd: Makefile
Log Message:
serd: require c99
serd 0.30.0 uses c99 syntax, and won't build on NetBSD 7.2 without
USE_LANGUAGES=c99. Fixes PR pkg/53832.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/textproc/serd/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Fri, 04 Jan 2019 16:14:42 +0000
State-Changed-Why:
Fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.