Received: (qmail 1204 invoked by uid 2012); 24 Jul 1998 10:06:27 -0000 Message-Id: <19980724100627.1203.qmail@hyperreal.org> Date: 24 Jul 1998 10:06:27 -0000 From: Helmut Paesler Reply-To: h_paesler@aspect-online.de To: apbugs@hyperreal.org Subject: Compile error X-Send-Pr-Version: 3.2 >Number: 2690 >Category: os-sco >Synopsis: Compile error >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Jul 24 03:10:00 PDT 1998 >Last-Modified: Sun Jun 13 04:56:02 PDT 1999 >Originator: h_paesler@aspect-online.de >Organization: >Release: 1.3.1 >Environment: SCO Open Server 5.0.2, cc 8% uname -a SCO_SV pinguin 3.2 2 i386 >Description: Can't compile: gcc -c -I../os/unix -I../include -DSCO5 `../apaci` alloc.c alloc.c: In function `spawn_child_core': alloc.c:1949: `STDOUT_FILENO' undeclared (first use this function) alloc.c:1949: (Each undeclared identifier is reported only once alloc.c:1949: for each function it appears in.) alloc.c:1955: `STDIN_FILENO' undeclared (first use this function) alloc.c:1961: `STDERR_FILENO' undeclared (first use this function) *** Error code 1 (bu21) When I fix this by adding #define STDIN_FILENO 0 #define STDOUT_FILENO 1 #define STDERR_FILENO 2 to src/include/ap_config.h (section SCO 5), I end up with gcc -c -I../os/unix -I../include -DSCO5 `../apaci` buff.c buff.c: In function `ap_bhalfduplex': buff.c:570: storage size of `tv' isn't known *** Error code 1 (bu21) >How-To-Repeat: >Fix: >Audit-Trail: State-Changed-From-To: open-feedback State-Changed-By: rse State-Changed-When: Mon Aug 3 00:41:20 PDT 1998 State-Changed-Why: We've no SCO available for testing, so please provide us with some more information: Send us the output of the following two commands: $ grep timeval /usr/include/* /usr/include/*/* $ grep _FILENO /usr/include/* /usr/include/*/* Comment-Added-By: coar Comment-Added-When: Mon Sep 28 07:27:13 PDT 1998 Comment-Added: [Feedback from submitter] State-Changed-From-To: feedback-open State-Changed-By: lars State-Changed-When: Sat Nov 14 09:18:10 PST 1998 State-Changed-Why: issue is still open... Comment-Added-By: coar Comment-Added-When: Mon Jan 4 12:47:45 PST 1999 Comment-Added: Copied from mis-sent reply (by David Greaves ): Hi I had this problem too I saw that ap_config_auto.h had #define HAVE_unistd_h 1 whereas ap_config.h checked for HAVE_UNISTD_H changing the (autogenerated) ap_config_auto.h by hand allowed a clean compile. hope this helps :) I'll report more if I find more David PS Helmut - you've probably sussed this by now but there is no more feedback on the bug report ---- so I've CC'ed you just in case :) State-Changed-From-To: open-feedback State-Changed-By: lars State-Changed-When: Sat Feb 20 17:50:49 PST 1999 State-Changed-Why: [This is a standard response.] This Apache problem report has not been updated recently. Please reply to this message if you have any additional information about this issue, or if you have answers to any questions that have been posed to you. If there are no outstanding questions, please consider this a request to try to reproduce the problem with the latest software release, if one has been made since last contact. If we don't hear from you, this report will be closed. If you have information to add, BE SURE to reply to this message and include the apbugs@Apache.Org address so it will be attached to the problem report! State-Changed-From-To: feedback-open State-Changed-By: lars State-Changed-When: Sun Jun 13 04:56:02 PDT 1999 State-Changed-Why: issue still open Severity-Changed-From-To: serious-non-critical Severity-Changed-By: lars Severity-Changed-When: Sun Jun 13 04:56:02 PDT 1999 >Unformatted: >If the requested information has been provided, it wasn't >sent to the correct address. Please re-send it to >. I am closing this PR as a duplicate. Here it is: > >State-Changed-From-To: open-feedback >State-Changed-By: rse >State-Changed-When: Mon Aug 3 00:41:20 PDT 1998 >State-Changed-Why: >We've no SCO available for testing, so please provide >us with some more information: Send us the output >of the following two commands: >$ grep timeval /usr/include/* /usr/include/*/* /usr/include/utmpx.h: struct timeval ut_tv; /* time entry was made */ /usr/include/FS/FSlibos.h:struct timeval { /* BSD has in */ /usr/include/X11/Xos.h: * Get struct timeval /usr/include/X11/Xos.h:struct timeval { /usr/include/ods_30_compat/utmpx.h: struct timeval ut_tv; /* time entry was made */ /usr/include/oldstyle/utmpx.h: struct timeval ut_tv; /* time entry was made */ /usr/include/protocols/timed.h: struct timeval tspu_time; /usr/include/rpc/clnt.h: * struct timeval timeout; /usr/include/rpc/clnt.h:#define CLSET_TIMEOUT 1 /* set timeout (timeval) */ /usr/include/rpc/clnt.h:#define CLGET_TIMEOUT 2 /* get timeout (timeval) */ /usr/include/rpc/clnt.h:#define CLSET_RETRY_TIMEOUT 4 /* set retry timeout (timeval) */ /usr/include/rpc/clnt.h:#define CLGET_RETRY_TIMEOUT 5 /* get retry timeout (timeval) */ /usr/include/rpc/clnt.h: * struct timeval wait; /usr/include/rpc/clnt.h: * struct timeval wait; /usr/include/rpcsvc/ether.h: struct timeval e_time; /usr/include/rpcsvc/ether.h: struct timeval e_time; /usr/include/rpcsvc/ether.x:struct ethertimeval { /usr/include/rpcsvc/ether.x: ethertimeval e_time; /usr/include/rpcsvc/ether.x: ethertimeval e_time; /usr/include/rpcsvc/rstat.h: struct timeval boottime /usr/include/rpcsvc/rstat.h: struct timeval boottime; /usr/include/rpcsvc/rstat.h: struct timeval curtime; /usr/include/rpcsvc/spray.h: struct timeval clock; /usr/include/rpcsvc/spray.x:struct spraytimeval { /usr/include/rpcsvc/spray.x: spraytimeval clock; /usr/include/snmp/snmp.h:struct timeval global_tv; /usr/include/snmp/snmp.h:struct timeval global_tv; /usr/include/sys/itimer.h: * N.b. `struct timeval' defined in /usr/include/sys/itimer.h: struct timeval it_interval; /* timer interval */ /usr/include/sys/itimer.h: struct timeval it_value; /* current value */ /usr/include/sys/itimer.h: * Operations on timevals. /usr/include/sys/itimer.h: * timeval's are normalized (i.e., 0 <= tv_usec < 1000000). /usr/include/sys/pmmsg.h: struct timeval when; /* Time of this event or error */ /usr/include/sys/pmmsg.h:extern int pm_setetime(struct timeval *); /usr/include/sys/resource.h: struct timeval ru_utime; /* user time used */ /usr/include/sys/resource.h: struct timeval ru_stime; /* system time used */ /usr/include/sys/rtc.h:#include /* Defines struct timeval */ /usr/include/sys/rtc.h: struct timeval sys; /* System time (GMT); 0 = Epoch */ /usr/include/sys/rtc.h: struct timeval adj; /* Adjustment */ /usr/include/sys/rtc.h:extern void set_time_adj(const struct timeval *, long); /* Lock set */ /usr/include/sys/rtc.h:extern long get_time_adj(struct timeval *); /* Lock */ /usr/include/sys/select.h:struct timeval { /usr/include/sys/select.h:extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); /usr/include/sys/time.h:#include /* defines struct timeval */ /usr/include/sys/time.h:extern int adjtime (struct timeval *, struct timeval *); /usr/include/sys/time.h:extern int gettimeofday (struct timeval *, struct timezone *); /usr/include/sys/time.h:extern int settimeofday (struct timeval *, struct timezone *); /usr/include/xpg4plus/utmpx.h: struct timeval ut_tv; /* time entry was made */ >$ grep _FILENO /usr/include/* /usr/include/*/* /usr/include/sys/unistd.h:#define STDIN_FILENO 0 /* The standard input file descriptor */ /usr/include/sys/unistd.h:#define STDOUT_FILENO 1 /* The standard output file descriptor */ /usr/include/sys/unistd.h:#define STDERR_FILENO 2 /* The standard error output file descriptor */ [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]