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

Re: libc6-dev: sys/user.h broken?



On Thu, Jun 30, 2005 at 10:17:54PM +0200, rainer herrendoerfer wrote:
> Hi,
> did anybody try to include sys/user.h in a C program?
> 
> test.c program in Sarge:
> 
> #include <sys/user.h>
> int main (void)
> {
> return 0;
> }
> 
> gcc returns lots of syntax errors:
> 
> In file included from test.c:1:
> /usr/include/sys/user.h:32: error: Syntaxfehler before "__uint16_t"
> /usr/include/sys/user.h:34: error: Syntaxfehler before "ftw"
> /usr/include/sys/user.h:35: error: Syntaxfehler before "fop"
> /usr/include/sys/user.h:36: error: Syntaxfehler before "rip"
> /usr/include/sys/user.h:37: error: Syntaxfehler before "rdp"
> /usr/include/sys/user.h:38: error: Syntaxfehler before "mxcsr"
> /usr/include/sys/user.h:39: error: Syntaxfehler before "mxcr_mask"
> /usr/include/sys/user.h:40: error: Syntaxfehler before "st_space"
> /usr/include/sys/user.h:41: error: Syntaxfehler before "xmm_space"
> /usr/include/sys/user.h:42: error: Syntaxfehler before "padding"
> /usr/include/sys/user.h:43: error: Syntaxfehler before '}' token
> /usr/include/sys/user.h:80: error: field `i387' has incomplete type
> 
> on 32bit Sarge everything's fine.
> Or is this a gcc bug?

Which part of this message are you purposely ignoring:

/* The whole purpose of this file is for GDB and GDB only.  Don't read
   too much into it.  Don't use it for anything other than GDB unless
   you know what you are doing.  */

I suspect something has to be defined just right to use that file.  If
it happens to work in 32bit mode, well that's nice, but it may not have
to work.

Len Sorensen



Reply to: