bug-gnu-utils
[Top][All Lists]
Advanced

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

rusage already defined on Solaris 2.7


From: Benoît Sibaud
Subject: rusage already defined on Solaris 2.7
Date: Tue, 17 Jul 2001 14:09:06 +0200

Hi,

time-1.7 on a SunOS foobar 5.7 Generic_106541-15 sun4u sparc
SUNW,Ultra-250 with gcc-2.95.2

configure with just prefix and exec-prefix
Extract from config.cache:
ac_cv_header_sys_rusage_h=${ac_cv_header_sys_rusage_h='no'}

In /usr/include/sys/resource.h
struct  rusage {
        struct timeval ru_utime;        /* user time used */
        struct timeval ru_stime;        /* system time used */
        long    ru_maxrss;              /* XXX: 0 */
        long    ru_ixrss;               /* XXX: 0 */
        long    ru_idrss;               /* XXX: sum of rm_asrss */
        long    ru_isrss;               /* XXX: 0 */
        long    ru_minflt;              /* any page faults not requiring
I/O */
        long    ru_majflt;              /* any page faults requiring I/O
*/
        long    ru_nswap;               /* swaps */
        long    ru_inblock;             /* block input operations */
        long    ru_oublock;             /* block output operations */
        long    ru_msgsnd;              /* messages sent */
        long    ru_msgrcv;              /* messages received */
        long    ru_nsignals;            /* signals received */
        long    ru_nvcsw;               /* voluntary context switches */
        long    ru_nivcsw;              /* involuntary " */
};

For resuse.c and time.c, I got a "redefinition of rusage struct" error.
I just commented the system definition after the preprocess stage. The
build finished and seemed OK.

[I also compiled successfully on i686-pc-linux-gnu,
sparc-sun-solaris2.6, sparc-sun-solaris2.7 and  sparc-unknown-linux-gnu
without any problem]

Hope this helps,

--
Benoît Sibaud
R&D Engineer - France Telecom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]