www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Liddicott <...@cmapbellsci.co.uk>
Subject os-sco/2725: SCO dev kit error (NOT apache error)
Date Tue, 28 Jul 1998 10:26:48 GMT

>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 <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]




Mime
View raw message