NetBSD Problem Report #39797
From www@NetBSD.org Fri Oct 24 15:01:25 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 1AF1D63B978
for <gnats-bugs@gnats.netbsd.org>; Fri, 24 Oct 2008 15:01:25 +0000 (UTC)
Message-Id: <20081024150124.DF79963B966@narn.NetBSD.org>
Date: Fri, 24 Oct 2008 15:01:24 +0000 (UTC)
From: srcshelton@gmail.com
Reply-To: srcshelton@gmail.com
To: gnats-bugs@NetBSD.org
Subject: libnbcompat-20081010 fails to build on IRIX
X-Send-Pr-Version: www-1.0
>Number: 39797
>Category: pkg
>Synopsis: libnbcompat-20081010 fails to build on IRIX
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 24 15:05:00 +0000 2008
>Closed-Date: Sun Nov 15 01:07:11 +0000 2009
>Last-Modified: Sun Nov 15 01:07:11 +0000 2009
>Originator: Stuart Shelton
>Release: pkgsrc latest form CVS
>Organization:
>Environment:
IRIX 6.5.30; MIPSpro Compilers Version 7.4.4m.
>Description:
libnbcompat fails with:
cc-3970 cc: WARNING File = sha2.c, Line = 505
conversion from pointer to same-sized integral type (potential portability
problem)
if ((uintptr_t)data % 4 == 0) {
^
cc-3970 cc: WARNING File = sha2.c, Line = 813
conversion from pointer to same-sized integral type (potential portability
problem)
if ((uintptr_t)data % 8 == 0) {
^
cc-1164 cc: WARNING File = sha2hl.c, Line = 92
Argument of type "char *" is incompatible with parameter of type
"unsigned char *".
return (num < 0 ? 0 : SHA256_End(&ctx, buf));
^
cc-1119 cc: WARNING File = sha2hl.c, Line = 119
The "return" expression type differs from the function return type.
return ret;
^
cc-1515 cc: WARNING File = sha2hl.c, Line = 166
A value of type "char *" cannot be assigned to an entity of type
"unsigned char *".
if ((ret = buffer) != NULL) {
^
cc-1119 cc: WARNING File = sha2hl.c, Line = 179
The "return" expression type differs from the function return type.
return ret;
^
cc-1515 cc: WARNING File = sha2hl.c, Line = 226
A value of type "char *" cannot be assigned to an entity of type
"unsigned char *".
if ((ret = buffer) != NULL) {
^
cc-1119 cc: WARNING File = sha2hl.c, Line = 239
The "return" expression type differs from the function return type.
return ret;
^
cc-1552 cc: WARNING File = __fts13.c, Line = 647
The variable "nostat" is set but never used.
int adjust, cderrno, descend, len, level, nlinks, saved_errno, nostat;
^
cc-1174 cc: WARNING File = __fts13.c, Line = 1021
The variable "len" was declared but never referenced.
size_t len;
^
cc-1101 cc: WARNING File = ./nbcompat/db.h, Line = 47
"pgno_t" has already been declared in the current scope.
typedef uint32_t pgno_t;
^
cc-1020 cc: ERROR File = /usr/include/mpool.h, Line = 50
The identifier "CIRCLEQ_ENTRY" is undefined.
CIRCLEQ_ENTRY(_bkt) hq; /* hash queue */
^
cc-1065 cc: ERROR File = /usr/include/mpool.h, Line = 50
A semicolon is expected at this point.
CIRCLEQ_ENTRY(_bkt) hq; /* hash queue */
^
cc-1020 cc: ERROR File = /usr/include/mpool.h, Line = 51
The identifier "CIRCLEQ_ENTRY" is undefined.
CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
^
cc-1101 cc: ERROR File = /usr/include/mpool.h, Line = 51
"_bkt" has already been declared in the current scope.
CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
^
cc-1065 cc: ERROR File = /usr/include/mpool.h, Line = 51
A semicolon is expected at this point.
CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
^
cc-1020 cc: ERROR File = /usr/include/mpool.h, Line = 61
The identifier "CIRCLEQ_HEAD" is undefined.
CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
^
cc-1018 cc: ERROR File = /usr/include/mpool.h, Line = 61
An unmatched left parentheses "(" appears in an expression.
CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
^
cc-1065 cc: ERROR File = /usr/include/mpool.h, Line = 61
A semicolon is expected at this point.
CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
^
cc-1020 cc: ERROR File = /usr/include/mpool.h, Line = 63
The identifier "CIRCLEQ_HEAD" is undefined.
CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
^
cc-1018 cc: ERROR File = /usr/include/mpool.h, Line = 63
An unmatched left parentheses "(" appears in an expression.
CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
^
cc-1101 cc: ERROR File = /usr/include/mpool.h, Line = 63
"_bkt" has already been declared in the current scope.
CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
^
cc-1065 cc: ERROR File = /usr/include/mpool.h, Line = 63
A semicolon is expected at this point.
CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
^
12 errors detected in the compilation of "/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081010/db/btree/bt_close.c".
*** Error code 2
Stop.
bmake: stopped in /usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081010
*** Error code 1
Stop.
bmake: stopped in /usr/bsd/src/pkgtools/libnbcompat
*** Error code 1
Stop.
bmake: stopped in /usr/bsd/src/pkgtools/libnbcompat
>How-To-Repeat:
Hmm - mpool.h is a system include, but:
# grep -R CIRCLEQ /usr/include/
/usr/include/mpool.h: CIRCLEQ_ENTRY(_bkt) hq; /* hash queue */
/usr/include/mpool.h: CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
/usr/include/mpool.h: CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
/usr/include/mpool.h: CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
... it doesn't seem to be defined anywhere!
Something strange's going on here...
>Fix:
Does libnbcompat on IRIX need to be modified so that it *doesn't* support OS-native mpool functionality?
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: joerg@NetBSD.org
State-Changed-When: Sun, 26 Oct 2008 12:52:13 +0000
State-Changed-Why:
Please update. Does it work now?
From: "Stuart Shelton" <srcshelton@gmail.com>
To: gnats-bugs@netbsd.org, joerg@netbsd.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/39797 (libnbcompat-20081010 fails to build on IRIX)
Date: Mon, 27 Oct 2008 13:27:12 +0100
I'm still seeing 20081010 on the server... as soon as a new revision
appears, I'll give it a try and report back.
2008/10/26 <joerg@netbsd.org>:
> Synopsis: libnbcompat-20081010 fails to build on IRIX
>
> State-Changed-From-To: open->feedback
> State-Changed-By: joerg@NetBSD.org
> State-Changed-When: Sun, 26 Oct 2008 12:52:13 +0000
> State-Changed-Why:
> Please update. Does it work now?
>
>
>
>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/39797 (libnbcompat-20081010 fails to build on IRIX)
Date: Mon, 27 Oct 2008 14:19:44 +0100
On Mon, Oct 27, 2008 at 12:30:06PM +0000, Stuart Shelton wrote:
> I'm still seeing 20081010 on the server... as soon as a new revision
> appears, I'll give it a try and report back.
Didn't bump the version.
Joerg
From: "Stuart Shelton" <srcshelton@gmail.com>
To: gnats-bugs@netbsd.org, joerg@britannica.bec.de
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/39797 (libnbcompat-20081010 fails to build on IRIX)
Date: Tue, 28 Oct 2008 11:04:15 +0100
Ah - in that case it's still broken :(
cc -c99 -I/usr/bsd/include -D__inline__=inline -D__DBINTERFACE_PRIVATE
-I. -I. -c99 -O2 -n32 -mips4 -r14000 -apo -float_const
-use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000
-TENV:zeroinit_in_bss=ON
-OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON
-LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff
1174,1183,1185,1552,3970,3968 -n32 -DHAVE_CONFIG_H -c
/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081010/db/btree/bt_close.c
cc-1101 cc: WARNING File = ./nbcompat/db.h, Line = 47
"pgno_t" has already been declared in the current scope.
typedef uint32_t pgno_t;
^
cc-1020 cc: ERROR File = ./nbcompat/mpool.h, Line = 52
The identifier "CIRCLEQ_ENTRY" is undefined.
CIRCLEQ_ENTRY(_bkt) hq; /* hash queue */
^
cc-1065 cc: ERROR File = ./nbcompat/mpool.h, Line = 52
A semicolon is expected at this point.
CIRCLEQ_ENTRY(_bkt) hq; /* hash queue */
^
cc-1020 cc: ERROR File = ./nbcompat/mpool.h, Line = 53
The identifier "CIRCLEQ_ENTRY" is undefined.
CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
^
cc-1101 cc: ERROR File = ./nbcompat/mpool.h, Line = 53
"_bkt" has already been declared in the current scope.
CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
^
cc-1065 cc: ERROR File = ./nbcompat/mpool.h, Line = 53
A semicolon is expected at this point.
CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
^
cc-1020 cc: ERROR File = ./nbcompat/mpool.h, Line = 63
The identifier "CIRCLEQ_HEAD" is undefined.
CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
^
cc-1018 cc: ERROR File = ./nbcompat/mpool.h, Line = 63
An unmatched left parentheses "(" appears in an expression.
CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
^
cc-1065 cc: ERROR File = ./nbcompat/mpool.h, Line = 63
A semicolon is expected at this point.
CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
^
cc-1020 cc: ERROR File = ./nbcompat/mpool.h, Line = 65
The identifier "CIRCLEQ_HEAD" is undefined.
CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
^
cc-1018 cc: ERROR File = ./nbcompat/mpool.h, Line = 65
An unmatched left parentheses "(" appears in an expression.
CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
^
cc-1101 cc: ERROR File = ./nbcompat/mpool.h, Line = 65
"_bkt" has already been declared in the current scope.
CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
^
cc-1065 cc: ERROR File = ./nbcompat/mpool.h, Line = 65
A semicolon is expected at this point.
CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
^
12 errors detected in the compilation of
"/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081010/db/btree/bt_close.c".
*** Error code 2
Stop.
bmake: stopped in
/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081010
*** Error code 1
Stop.
bmake: stopped in /usr/bsd/src/pkgtools/libnbcompat
*** Error code 1
Stop.
bmake: stopped in /usr/bsd/src/pkgtools/libnbcompat
2008/10/27 Joerg Sonnenberger <joerg@britannica.bec.de>:
> The following reply was made to PR pkg/39797; it has been noted by GNATS.
>
> From: Joerg Sonnenberger <joerg@britannica.bec.de>
> To: gnats-bugs@NetBSD.org
> Cc:
> Subject: Re: pkg/39797 (libnbcompat-20081010 fails to build on IRIX)
> Date: Mon, 27 Oct 2008 14:19:44 +0100
>
> On Mon, Oct 27, 2008 at 12:30:06PM +0000, Stuart Shelton wrote:
> > I'm still seeing 20081010 on the server... as soon as a new revision
> > appears, I'll give it a try and report back.
>
> Didn't bump the version.
>
> Joerg
>
>
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/39797 CVS commit: pkgsrc/pkgtools/libnbcompat
Date: Tue, 28 Oct 2008 15:15:18 +0000 (UTC)
Module Name: pkgsrc
Committed By: joerg
Date: Tue Oct 28 15:15:18 UTC 2008
Modified Files:
pkgsrc/pkgtools/libnbcompat: Makefile
pkgsrc/pkgtools/libnbcompat/files/nbcompat: queue.h
Log Message:
Add circleq support. Bump to 20081028. Should fix IRIX build from
PR 39797.
To generate a diff of this commit:
cvs rdiff -r1.65 -r1.66 pkgsrc/pkgtools/libnbcompat/Makefile
cvs rdiff -r1.4 -r1.5 pkgsrc/pkgtools/libnbcompat/files/nbcompat/queue.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Stuart Shelton" <srcshelton@gmail.com>
To: gnats-bugs@netbsd.org, joerg@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: PR/39797 CVS commit: pkgsrc/pkgtools/libnbcompat
Date: Thu, 30 Oct 2008 17:38:16 +0000
More problems here, I'm afraid:
cc -I/usr/bsd/include -D__inline__=inline -D__DBINTERFACE_PRIVATE -I.
-I. -O2 -n32 -DHAVE_CONFIG_H -c sha2.c
cc-3970 cc: WARNING File = sha2.c, Line = 505
conversion from pointer to same-sized integral type (potential portability
problem)
if ((uintptr_t)data % 4 == 0) {
^
cc-3970 cc: WARNING File = sha2.c, Line = 813
conversion from pointer to same-sized integral type (potential portability
problem)
if ((uintptr_t)data % 8 == 0) {
^
cc -I/usr/bsd/include -D__inline__=inline -D__DBINTERFACE_PRIVATE -I.
-I. -O2 -n32 -DHAVE_CONFIG_H -c sha2hl.c
cc-1164 cc: WARNING File = sha2hl.c, Line = 92
Argument of type "char *" is incompatible with parameter of type
"unsigned char *".
return (num < 0 ? 0 : SHA256_End(&ctx, buf));
^
cc-1119 cc: WARNING File = sha2hl.c, Line = 119
The "return" expression type differs from the function return type.
return ret;
^
cc-1515 cc: WARNING File = sha2hl.c, Line = 166
A value of type "char *" cannot be assigned to an entity of type
"unsigned char *".
if ((ret = buffer) != NULL) {
^
cc-1119 cc: WARNING File = sha2hl.c, Line = 179
The "return" expression type differs from the function return type.
return ret;
^
cc-1515 cc: WARNING File = sha2hl.c, Line = 226
A value of type "char *" cannot be assigned to an entity of type
"unsigned char *".
if ((ret = buffer) != NULL) {
^
cc-1119 cc: WARNING File = sha2hl.c, Line = 239
The "return" expression type differs from the function return type.
return ret;
^
cc -I/usr/bsd/include -D__inline__=inline -D__DBINTERFACE_PRIVATE -I.
-I. -O2 -n32 -DHAVE_CONFIG_H -c fts.c
cc-1552 cc: WARNING File = __fts13.c, Line = 647
The variable "nostat" is set but never used.
int adjust, cderrno, descend, len, level, nlinks, saved_errno, nostat;
^
cc-1174 cc: WARNING File = __fts13.c, Line = 1021
The variable "len" was declared but never referenced.
size_t len;
^
cc -I/usr/bsd/include -D__inline__=inline -D__DBINTERFACE_PRIVATE -I.
-I. -O2 -n32 -DHAVE_CONFIG_H -c
/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081029/db/btree/bt_close.c
cc-1101 cc: WARNING File = ./nbcompat/db.h, Line = 47
"pgno_t" has already been declared in the current scope.
typedef uint32_t pgno_t;
^
cc -I/usr/bsd/include -D__inline__=inline -D__DBINTERFACE_PRIVATE -I.
-I. -O2 -n32 -DHAVE_CONFIG_H -c
/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081029/db/hash/hash.c
cc-1101 cc: WARNING File = ./nbcompat/db.h, Line = 47
"pgno_t" has already been declared in the current scope.
typedef uint32_t pgno_t;
^
cc-1164 cc: ERROR File =
/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081029/db/hash/hash.c,
Line = 532
Argument of type "int" is incompatible with parameter of type "DBT *".
return (hash_access(hashp, HASH_GET, __UNCONST(key), data));
^
cc-1164 cc: ERROR File =
/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081029/db/hash/hash.c,
Line = 551
Argument of type "int" is incompatible with parameter of type "DBT *".
HASH_PUTNEW : HASH_PUT, __UNCONST(key), __UNCONST(data)));
^
cc-1164 cc: ERROR File =
/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081029/db/hash/hash.c,
Line = 551
Argument of type "int" is incompatible with parameter of type "DBT *".
HASH_PUTNEW : HASH_PUT, __UNCONST(key), __UNCONST(data)));
^
cc-1164 cc: ERROR File =
/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081029/db/hash/hash.c,
Line = 568
Argument of type "int" is incompatible with parameter of type "DBT *".
return hash_access(hashp, HASH_DELETE, __UNCONST(key), NULL);
^
cc-1174 cc: WARNING File =
/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081029/db/hash/hash.c,
Line = 39
The variable "rcsid" was declared but never referenced.
__RCSID("$NetBSD: hash.c,v 1.1 2008/10/10 00:21:43 joerg Exp $");
^
4 errors detected in the compilation of
"/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081029/db/hash/hash.c".
*** Error code 2
Stop.
bmake: stopped in
/usr/bsd/var/tmp/pkgtools/libnbcompat/work/libnbcompat-20081029
*** Error code 1
Stop.
bmake: stopped in /usr/bsd/src/pkgtools/libnbcompat
*** Error code 1
Stop.
bmake: stopped in /usr/bsd/src/pkgtools/libnbcompat
There are many many instances of the 'pgno_t' warning, and a '__RCSID'
error for every file it appears in (is this being compiled with
'-Wall', which makes MIPSpro very verbose about trivial warnings?).
In any case, it looks as if __UNCONST is undefined and so causing the
compilation failures.
2008/10/28 Joerg Sonnenberger <joerg@netbsd.org>:
> The following reply was made to PR pkg/39797; it has been noted by GNATS.
>
> From: Joerg Sonnenberger <joerg@netbsd.org>
> To: gnats-bugs@gnats.NetBSD.org
> Cc:
> Subject: PR/39797 CVS commit: pkgsrc/pkgtools/libnbcompat
> Date: Tue, 28 Oct 2008 15:15:18 +0000 (UTC)
>
> Module Name: pkgsrc
> Committed By: joerg
> Date: Tue Oct 28 15:15:18 UTC 2008
>
> Modified Files:
> pkgsrc/pkgtools/libnbcompat: Makefile
> pkgsrc/pkgtools/libnbcompat/files/nbcompat: queue.h
>
> Log Message:
> Add circleq support. Bump to 20081028. Should fix IRIX build from
> PR 39797.
>
>
> To generate a diff of this commit:
> cvs rdiff -r1.65 -r1.66 pkgsrc/pkgtools/libnbcompat/Makefile
> cvs rdiff -r1.4 -r1.5 pkgsrc/pkgtools/libnbcompat/files/nbcompat/queue.h
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>
>
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/39797 CVS commit: pkgsrc/pkgtools/libnbcompat/files/db/hash
Date: Thu, 30 Oct 2008 19:27:20 +0000 (UTC)
Module Name: pkgsrc
Committed By: joerg
Date: Thu Oct 30 19:27:20 UTC 2008
Modified Files:
pkgsrc/pkgtools/libnbcompat/files/db/hash: hash.c
Log Message:
Define __UNCONST. From PR 39797.
To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 pkgsrc/pkgtools/libnbcompat/files/db/hash/hash.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 01 Jan 2009 19:51:00 +0000
State-Changed-Why:
Feedback received in October.
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 01 Jan 2009 19:51:26 +0000
State-Changed-Why:
...but, is it working now after that last commit?
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 15 Nov 2009 01:07:11 +0000
State-Changed-Why:
no feedback is good feedback
>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.