> Bo> I am glad that my problem get your attention. Here is more
> Bo> information: 
> 
> Can you tell us what is the code around the following error:
> /usr/include/sys/stat.h:253: parse error before "blksize_t"
> 


        /* user level 4.0 stat struct */

#if defined(__sparcv9)

struct stat {
        dev_t           st_dev;
        ino_t           st_ino;
        mode_t          st_mode;
        nlink_t         st_nlink;
        uid_t           st_uid;
        gid_t           st_gid;
        dev_t           st_rdev;
        off_t           st_size;
#if !defined(_XOPEN_SOURCE) && !defined(_POSIX_C_SOURCE) || \
        defined(__EXTENSIONS__)
        timestruc_t     st_atim;
        timestruc_t     st_mtim;
        timestruc_t     st_ctim;
#else
        _timestruc_t    st_atim;
        _timestruc_t    st_mtim;
        _timestruc_t    st_ctim;
#endif
        blksize_t       st_blksize;
        blkcnt_t        st_blocks;
        char            st_fstype[_ST_FSTYPSZ];
};

#else   /* __sparcv9 */

struct stat {
        dev_t           st_dev;
        long            st_pad1[3];     /* reserved for network id */
        ino_t           st_ino;
        mode_t          st_mode;
        nlink_t         st_nlink;
        uid_t           st_uid;
        gid_t           st_gid;
        dev_t           st_rdev;
        long            st_pad2[2];
        off_t           st_size;
;
#if _FILE_OFFSET_BITS != 64
        long            st_pad3;        /* future off_t expansion */
#endif
#if !defined(_XOPEN_SOURCE) && !defined(_POSIX_C_SOURCE) || \
        defined(__EXTENSIONS__)
        timestruc_t     st_atim;
        timestruc_t     st_mtim;
        timestruc_t     st_ctim;
#else
        _timestruc_t    st_atim;
        _timestruc_t    st_mtim;
        _timestruc_t    st_ctim;
#endif
        blksize_t       st_blksize;      /* -------------------------:LINE 253 */
        blkcnt_t        st_blocks;
        char            st_fstype[_ST_FSTYPSZ];
        long            st_pad4[8];     /* expansion area */
};

#endif  /* __sparcv9 */


> Is you gcc compiled for solaris 2.7? (gcc -v should tell you that).
> 

bpeng@stat007:~ % gcc -v
Reading specs from /usr/site/gcc-3.1.0/lib/gcc-lib/sparc-sun-solaris2.6/3.1/specs
Configured with: /build/gcc-3.1.0/src/dist/configure --prefix=/usr/site/gcc-3.1.0 
--enable-shared=libstdc++
Thread model: posix
gcc version 3.1


>
> 
> JMarc

Reply via email to