NetBSD Problem Report #45693

From www@NetBSD.org  Wed Dec  7 13:56:53 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 41DBC63DAA5
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  7 Dec 2011 13:56:53 +0000 (UTC)
Message-Id: <20111207135652.BAE0A63DAA2@www.NetBSD.org>
Date: Wed,  7 Dec 2011 13:56:52 +0000 (UTC)
From: kuehro@gmx.de
Reply-To: kuehro@gmx.de
To: gnats-bugs@NetBSD.org
Subject: Missing <stdint.h> in /usr/include/sys/sdt.h
X-Send-Pr-Version: www-1.0

>Number:         45693
>Category:       misc
>Synopsis:       Missing <stdint.h> in /usr/include/sys/sdt.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 07 14:00:00 +0000 2011
>Closed-Date:    Mon Oct 07 07:16:01 +0000 2013
>Last-Modified:  Mon Oct 07 07:16:01 +0000 2013
>Originator:     Kai-Uwe Eckhardt
>Release:        5.99.57 i386
>Organization:
>Environment:
>Description:
/usr/include/sys/sdt.h uses uintptr_t without including <stdint.h>.
Building gcc-4.7 fails due to this. 
>How-To-Repeat:

>Fix:
Add <stdint.h> 

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 08 Dec 2011 22:29:08 +0000
State-Changed-Why:
I just fixed it (and forgot to include the PR number in the commit message)
thanks for the heads up.


From: "Kai-Uwe Eckhardt" <kuehro@gmx.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/45693 (Missing <stdint.h> in /usr/include/sys/sdt.h)
Date: Fri, 09 Dec 2011 18:17:37 +0100

 Hello,

 thanks a lot for the quick response. 

 Kai-Uwe 

 -- 
 -- 


From: "Kai-Uwe Eckhardt" <kuehro@gmx.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/45693 (Missing <stdint.h> in /usr/include/sys/sdt.h)
Date: Tue, 19 Mar 2013 19:13:44 +0100 (CET)

 While compiling gcc 4.8.0 I found out that <sys/types.h>
 is missing as well in sys/sdt.h to provide u_int32_t. 
 On 6.1_RC1 amd64 and 6.99.17 i386 the following test program
 fails with the attached error messages. After including
 <sys/types.h> oder <stdlib.h> (or <cstdlib> for C++) they 
 compile without warnings.

 #include <sys/sdt.h>

 int main(int argc, char *argv[])
 {
   return(0);
 }



 g++:
 In file included from t_sdt.cc:3:0:
 /usr/include/sys/sdt.h:65:34: error: typedef 'sdt_probe_func_t' is initialized (use decltype instead)
 /usr/include/sys/sdt.h:65:34: error: 'u_int32_t' was not declared in this scope
 /usr/include/sys/sdt.h:65:55: error: expected primary-expression before 'arg0'
 /usr/include/sys/sdt.h:65:71: error: expected primary-expression before 'arg1'
 /usr/include/sys/sdt.h:66:15: error: expected primary-expression before 'arg2'
 /usr/include/sys/sdt.h:66:31: error: expected primary-expression before 'arg3'
 /usr/include/sys/sdt.h:66:47: error: expected primary-expression before 'arg4'
 /usr/include/sys/sdt.h:73:8: error: 'sdt_probe_func_t' does not name a type


 gcc:  
 In file included from t_sdt.c:3:0:
 /usr/include/sys/sdt.h:65:45: error: expected ')' before '__uintptr_t'
 /usr/include/sys/sdt.h:73:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sdt_probe_func'

State-Changed-From-To: closed->open
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 19 Mar 2013 23:05:12 +0000
State-Changed-Why:
Another issue in the same file.


From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45693 CVS commit: src/sys/sys
Date: Mon, 7 Oct 2013 07:11:40 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Mon Oct  7 07:11:40 UTC 2013

 Modified Files:
 	src/sys/sys: sdt.h

 Log Message:
 Use uint32_t, not u_int32_t; makes this file standalone like it ought
 to be. PR 45693.


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 src/sys/sys/sdt.h

 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: dholland@NetBSD.org
State-Changed-When: Mon, 07 Oct 2013 07:16:01 +0000
State-Changed-Why:
fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.