www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@Mch.SNI.De>
Subject config/851: Default switches for SNI machines should be improved
Date Thu, 10 Jul 1997 15:20:02 GMT

>Number:         851
>Category:       config
>Synopsis:       Default switches for SNI machines should be improved
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Thu Jul 10 08:20:01 1997
>Originator:     Martin.Kraemer@Mch.SNI.De
>Organization:
apache
>Release:        1.2.1
>Environment:
SINIX 5.4 (SVR4) on different platforms
SINIX-D 5.41 i386
SINIX-N 5.43 MIPS R4000 / ReliantUNIX 
/opt/bin/cc or /usr/ccs/bin/cc or gcc
>Description:
Apache compiles (almost) painlessly under SVR4,
except for the gettimeofday() call, which was broken by the SYSV people:

mod_usertrack.c   150: [error]:   CFE1140 too many arguments in function call
      gettimeofday(&tv, &tz);
                        ^

The system has the following definition for gettimeofday(), and apparently
does NOT define _XPG_IV by default....:

> #if defined(_XPG_IV)
> int gettimeofday(struct timeval *, void *);
> #else
> int gettimeofday(struct timeval *);
> #endif /* defined(_XPG_IV) */

>How-To-Repeat:

>Fix:
The following patch fixes this problem for SINIX (this is the current
SVR4 version of SIEMENS NIXDORF (=SNI)).
It also defines the shared memory flags which work correctly in SINIX
versions.

--- Configure.orig	Thu Jul  3 07:59:43 1997
+++ Configure	Thu Jul 10 16:53:16 1997
@@ -423,7 +423,7 @@
 	;;
     *-sni-sysv4*)
 	OS='SVR4'
-	CFLAGS="$CFLAGS -DSVR4"
+	CFLAGS="$CFLAGS -DSVR4 -D_XPG_IV -DHAVE_MMAP -DHAVE_SHMGET"
 	DEF_WANTHSREGEX=yes
 	LIBS="$LIBS -lsocket -lnsl -lc"
 	;;
 
%0
>Audit-Trail:
>Unformatted:



Mime
View raw message