Problem with System Header "/usr/include/sys/stat.h"

Problem with System Header "/usr/include/sys/stat.h"

Post by Frank M. Kraus » Mon, 22 Jan 2001 04:57:31



Good Day,

My Kernel is Linux 2.2.17.
My Distribution is Caldera OpenLinux 1.3.
My version of GCC is 2.7.2.3.
My Libc is 5.4.46.

When doing a make to try to upgrade my VIM program to 5.7,
I get the following type of error messages relating to the
file "/usr/include/sys/stat.h".

I'm aware of the -E option in GCC to only run the Pre-processor
and the -C option to not bypass printing the comments but neither
of these options have helped me in debugging this problem.

Any assistance that somone can give a Newbie Linux/"C" Programmer
on how to go about debugging this type of problem would be
greatly appreciated.

Yours truly,

Frank Krauss

--------------------------------------------------------------------
Error output

CC="gcc -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce -Wall     " srcdir=. sh ./osdef.sh
gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce -Wall      buffer.c
In file included from os_unix.h:24,
                 from vim.h:89,
                 from buffer.c:28:
/usr/include/sys/stat.h:18: parse error before `dev_t'
/usr/include/sys/stat.h:18: warning: no semicolon at end of struct or union
/usr/include/sys/stat.h:27: parse error before `st_mode'
/usr/include/sys/stat.h:27: warning: data definition has no type or storage class
/usr/include/sys/stat.h:28: parse error before `st_nlink'
/usr/include/sys/stat.h:28: warning: data definition has no type or storage class
/usr/include/sys/stat.h:31: parse error before `st_rdev'
/usr/include/sys/stat.h:31: warning: data definition has no type or storage class
/usr/include/sys/stat.h:60: parse error before `st_atime'
/usr/include/sys/stat.h:60: warning: data definition has no type or storage class
/usr/include/sys/stat.h:62: parse error before `st_mtime'
/usr/include/sys/stat.h:62: warning: data definition has no type or storage class
/usr/include/sys/stat.h:64: parse error before `st_ctime'
/usr/include/sys/stat.h:64: warning: data definition has no type or storage class
/usr/include/sys/stat.h:69: parse error before `}'
/usr/include/sys/stat.h:90: parse error before `dev_t'
/usr/include/sys/stat.h:164: parse error before `dev_t'
/usr/include/sys/stat.h: In function `__mknod':
/usr/include/sys/stat.h:166: `__path' undeclared (first use this function)
/usr/include/sys/stat.h:166: (Each undeclared identifier is reported only once
/usr/include/sys/stat.h:166: for each function it appears in.)
/usr/include/sys/stat.h:166: `__mode' undeclared (first use this function)
/usr/include/sys/stat.h:166: `__dev' undeclared (first use this function)
/usr/include/sys/stat.h: At top level:
/usr/include/sys/stat.h:169: parse error before `dev_t'
/usr/include/sys/stat.h: In function `mknod':
/usr/include/sys/stat.h:171: `__path' undeclared (first use this function)
/usr/include/sys/stat.h:171: `__mode' undeclared (first use this function)
/usr/include/sys/stat.h:171: `__dev' undeclared (first use this function)
-----------------------------------------------------------------------

Additional errors relating to other headers in /usr/include follow

End of Data

 
 
 

Problem with System Header "/usr/include/sys/stat.h"

Post by Frank M. Kraus » Mon, 22 Jan 2001 07:33:08


Good Day,

My Kernel is Linux 2.2.17.
My Distribution is Caldera OpenLinux 1.3.
My version of GCC is 2.7.2.3.
My Libc is 5.4.46.

When doing a make to try to upgrade my VIM program to 5.7,
I get the following type of error messages relating to the
file "/usr/include/sys/stat.h".

I'm aware of the -E option in GCC to only run the Pre-processor
and the -C option to not bypass printing the comments but neither
of these options have helped me in debugging this problem.

Someone mentioned to me that this problem may be caused by missing
definations of TYPEDEF's.  Is there anyway or procedure to figure out
if that is so and what TYPEDEF is missing?

Likewise, I'm aware of the need to include <sys/types.h> prior to the
<sys/stat.h> and this has been done.

Any assistance that somone can give a Newbie Linux/"C" Programmer
on how to go about debugging this type of problem would be greatly
appreciated.

Yours truly,

Frank Krauss

--------------------------------------------------------------------
Error output

CC="gcc -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce -Wall     " srcdir=. sh ./osdef.sh
gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce -Wall      buffer.c
In file included from os_unix.h:24,
                 from vim.h:89,
                 from buffer.c:28:
/usr/include/sys/stat.h:18: parse error before `dev_t'
/usr/include/sys/stat.h:18: warning: no semicolon at end of struct or union
/usr/include/sys/stat.h:27: parse error before `st_mode'
/usr/include/sys/stat.h:27: warning: data definition has no type or storage class
/usr/include/sys/stat.h:28: parse error before `st_nlink'
/usr/include/sys/stat.h:28: warning: data definition has no type or storage class
/usr/include/sys/stat.h:31: parse error before `st_rdev'
/usr/include/sys/stat.h:31: warning: data definition has no type or storage class
/usr/include/sys/stat.h:60: parse error before `st_atime'
/usr/include/sys/stat.h:60: warning: data definition has no type or storage class
/usr/include/sys/stat.h:62: parse error before `st_mtime'
/usr/include/sys/stat.h:62: warning: data definition has no type or storage class
/usr/include/sys/stat.h:64: parse error before `st_ctime'
/usr/include/sys/stat.h:64: warning: data definition has no type or storage class
/usr/include/sys/stat.h:69: parse error before `}'
/usr/include/sys/stat.h:90: parse error before `dev_t'
/usr/include/sys/stat.h:164: parse error before `dev_t'
/usr/include/sys/stat.h: In function `__mknod':
/usr/include/sys/stat.h:166: `__path' undeclared (first use this function)
/usr/include/sys/stat.h:166: (Each undeclared identifier is reported only once
/usr/include/sys/stat.h:166: for each function it appears in.)
/usr/include/sys/stat.h:166: `__mode' undeclared (first use this function)
/usr/include/sys/stat.h:166: `__dev' undeclared (first use this function)
/usr/include/sys/stat.h: At top level:
/usr/include/sys/stat.h:169: parse error before `dev_t'
/usr/include/sys/stat.h: In function `mknod':
/usr/include/sys/stat.h:171: `__path' undeclared (first use this function)
/usr/include/sys/stat.h:171: `__mode' undeclared (first use this function)
/usr/include/sys/stat.h:171: `__dev' undeclared (first use this function)
-----------------------------------------------------------------------

Additional errors relating to other headers in /usr/include follow

End of Data

 
 
 

Problem with System Header "/usr/include/sys/stat.h"

Post by M?ns Rullg? » Tue, 23 Jan 2001 17:10:53



Quote:> Good Day,

> My Kernel is Linux 2.2.17.
> My Distribution is Caldera OpenLinux 1.3.
> My version of GCC is 2.7.2.3.
> My Libc is 5.4.46.

> When doing a make to try to upgrade my VIM program to 5.7,
> I get the following type of error messages relating to the
> file "/usr/include/sys/stat.h".

Your libc is very old. Upgrade to glibc 2.1 / libc6. The problem might
be caused by the sources you are trying to compile assume that you are
using a recent libc.

--
M?ns Rullg?rd

 
 
 

1. Compile problem: "/usr/include/sys/socketvar.h", line 136: syntax error before or at: mblk_t

Hi,
I have a compile problem on SunOS 5.7 with the socketvar.h system
include file:

$ make -f makefile.smtp.debug
cc -mt -I. -I/opt/mqsi/include -I/opt/mqsi/include/plugin -c
SendMailPlugIn.c -D
SUN -xCC  -DSMTP -D_DEBUG
"/usr/include/sys/socketvar.h", line 136: syntax error before or at:
mblk_t
"/usr/include/sys/socketvar.h", line 136: cannot recover from previous
errors
cc: acomp failed for SendMailPlugIn.c
*** Error code 2
make: Fatal error: Command failed for target `SendMailPlugIn.o'

Any thoughts on  what is going wrong here?

Thanks in advance, Arjan

2. Two questions about ufsdump

3. How to Interprete the Counters Kept at "/usr/include/sys/dk.h"

4. WLAN VPN Authentication for Android

5. /usr/include vs /usr/include/sys

6. need with talk command, across the net

7. "/usr/include/bsd/bsd.h" not found in redhat linux 5.1

8. Yammaha OPL-SAX probs

9. /usr/include/sys/stat.h:161: undefined reference to `_fxstat'

10. Why I have not file "/usr/include/gnu/types.h" ?

11. "conio.h" -> "curses.h"

12. Where to get "Xlib.h" and "Xutil.h"?

13. Urgent: "lpc stat" and "lpc stat lj02" gives different result