NetBSD-Bugs archive

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

Re: misc/45693 (Missing <stdint.h> in /usr/include/sys/sdt.h)



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

From: "Kai-Uwe Eckhardt" <kuehro%gmx.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
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'
 


Home | Main Index | Thread Index | Old Index