You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Samuel Liddicott <sa...@cmapbellsci.co.uk> on 1998/07/28 12:26:48 UTC

os-sco/2725: SCO dev kit error (NOT apache error)

>Number:         2725
>Category:       os-sco
>Synopsis:       SCO dev kit error (NOT apache error)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Jul 28 03:30:01 PDT 1998
>Last-Modified:
>Originator:     sam@cmapbellsci.co.uk
>Organization:
apache
>Release:        1.3.1
>Environment:
SCO 3.2v4.2 with SCO compiler
>Description:
The timeval struct is defined in two SCO .h files (same definition).
sys/time.h and sys/select.h

One of the apache files includes both these .h files, and so compilation fails with an error that timeval is being redifined.
>How-To-Repeat:
Compile on same platform
>Fix:
edit /usr/include/sys/time.h and /usr/include/sys/select.h to have the timeval declaration change FROM

struct timeval {
        long            tv_sec; /* seconds */
        long            tv_usec;/* and microseconds */
};        

TO

#ifndef DIDTIMEVAL
#define DIDTIMEVAL
struct timeval {
        long            tv_sec; /* seconds */
        long            tv_usec;/* and microseconds */
};
#endif          

(in BOTH .h files)

Then it will compile OK.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]