🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.os.bsd
Article #1

syntax err in stat.h !?

#1
From: Otis Gospodnetic
Date: Thu, 29 Jan 1998 00:00
64 lines
2841 bytes
hello,

I'm trying to compile Harvest on a BSDI box (2.0) and am getting these weird
_syntax_ errors (below).
I looked at the offending file, /usr/include/sys/stat.h and it looks just
fine to me, I don't see any syntax errors at all.

Does anyone have any idea what the cause of this could be?

Errors I get are below, and all the way down are lines 50-60, which is where
the first error occurs (lines 54-55)

Thanks

Otis
Errors:

In file included from agrep.c:6:
/usr/include/sys/stat.h:55: syntax error before `ino_t'
In file included from agrep.c:6:
/usr/include/sys/stat.h:92: syntax error before `dev_t'
/usr/include/sys/stat.h:138: syntax error before `dev_t'
/usr/include/sys/stat.h:163: syntax error before `off_t'
/usr/include/sys/stat.h:169: syntax error before `quad_t'
/usr/include/sys/stat.h:267: syntax error before `mode_t'
/usr/include/sys/stat.h:269: syntax error before `mode_t'
/usr/include/sys/stat.h:270: syntax error before `mode_t'
/usr/include/sys/stat.h:272: syntax error before `umask'
/usr/include/sys/stat.h:272: warning: parameter names (without types) in
function declaration
/usr/include/sys/stat.h:272: warning: data definition has no type or storage
class
/usr/include/sys/stat.h:274: syntax error before `u_long'
/usr/include/sys/stat.h:275: syntax error before `u_long'
/usr/include/sys/stat.h:276: syntax error before `mode_t'
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.

Header file - /usr/include/sys/stat.h

#ifndef _POSIX_SOURCE
/* Old (4.3-Reno, Net/2 vintage) stat structure */
struct ostat {
        unsigned short  st_dev;         /* inode's device */
/* the problem is supposedly here, this is line 54) */
        ino_t   st_ino;                 /* inode's number */
/* line 55 */
        mode_t  st_mode;                /* inode protection mode */
        nlink_t st_nlink;               /* number of hard links */
        unsigned short  st_uid;         /* user ID of the file's owner */
        unsigned short  st_gid;         /* group ID of the file's group */
        unsigned short  st_rdev;        /* device type */
        long    st_size;                /* file size, in bytes */
Technical Details
Message-ID: <6arrdo$9un3@tortola.acunet.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fba27,5f8e2d27f8d34e19,start
X-Google-Attributes: gidfba27,public
X-Google-Thread: 115e02,5f8e2d27f8d34e19,start
X-Google-Attributes: gid115e02,public
From: "Otis Gospodnetic" <otis@POPULUS.net>
Subject: syntax err in stat.h !?
Date: 1998/01/29
Message-ID: <6arrdo$9un3@tortola.acunet.net>
X-Deja-AN: 320487157
Distribution: world
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: Acunet Internet Commerce Services
Newsgroups: de.comp.os.bsd,fr.comp.os.bsd