Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 5132 invoked by uid 6000); 5 Jul 1999 02:10:05 -0000 Received: (qmail 5049 invoked by uid 2001); 5 Jul 1999 02:10:01 -0000 Received: (qmail 14825 invoked by uid 2012); 5 Jul 1999 00:54:50 -0000 Message-Id: <19990705005450.14824.qmail@hyperreal.org> Date: 5 Jul 1999 00:54:50 -0000 From: Martien Verbruggen Reply-To: mgjv@comdyn.com.au To: apbugs@hyperreal.org X-Send-Pr-Version: 3.2 Subject: os-solaris/4692: STD*_FILENO not defined after configuration Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 4692 >Category: os-solaris >Synopsis: STD*_FILENO not defined after configuration >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Jul 4 19:10:00 PDT 1999 >Last-Modified: >Originator: mgjv@comdyn.com.au >Organization: apache >Release: 1.3.6 >Environment: > uname -a SunOS yukon 5.6 Generic_105181-13 sun4u sparc SUNW,Ultra-5_10 > gcc --version 2.8.1 >Description: (Also see Bug PR# 2796) After running src/Configure with no arguments, compilation of src/alloc.c fails: gcc -c -I../os/unix -I../include -DSOLARIS2=260 alloc.c alloc.c: In function `spawn_child_core': alloc.c:2170: `STDOUT_FILENO' undeclared (first use in this function) alloc.c:2170: (Each undeclared identifier is reported only once alloc.c:2170: for each function it appears in.) alloc.c:2176: `STDIN_FILENO' undeclared (first use in this function) alloc.c:2182: `STDERR_FILENO' undeclared (first use in this function) >How-To-Repeat: Unpack standard installation on SunOS 5.6 go to src directory $ ./Configure $ make >Fix: Since these constants are defined in /usr/include/unistd.h, the problem seems to be that this header file isn't included. The simplest fix is to edit src/include/ap_config.h, and add #define HAVE_UNISTD_H to the solaris2 section. Context diff: *** include/ap_config.h Mon Jul 5 10:49:47 1999 --- /tmp/ap_config.h Mon Jul 5 10:50:21 1999 *************** *** 188,193 **** --- 188,194 ---- int gethostname(char *name, int namelen); #define HAVE_SYSLOG 1 #define SYS_SIGLIST _sys_siglist + #define HAVE_UNISTD_H #elif defined(IRIX) #undef HAVE_GMTOFF >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]