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

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



Lennart Sorensen schrieb:
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


To be honest: I tried to configure a patched version of util-linux and
received:

You don't have <sys/user.h>

packages.debian.org told me that it should be in libc6-dev which is
installed on my machine and the file is in /usr/include/sys/. So I tried
to find  out what doesn't work and ended in this testing program.
Perhaps the programmer of util-linux did know what s/he was doing.
Nevertheless should I ignore the "missing" header for util linux?
I wonder why configure complains about missing debugging headers.

Raina



Reply to: