In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes:
> Synopsis: Server fails to bind port when restarting after SIGHUP
> State-Changed-From-To: open-analyzed
> State-Changed-By: marc
> State-Changed-When: Fri Oct 31 22:27:13 PST 1997
> State-Changed-Why:
> The patch you appended did not make it; could you
> include it in a reply to this message?
Here it is. This is actually an enhanced version that also produces a
better build on Unixware 1 by building -DUW instead of -DSVR4 which
allows various extra features like shared memory scoreboards and mmaped
file serving on Unixware 1. It also adds -lgen on UW2 which is needed
for syslog (that has alredy been reported in a separate PR I think).
I've built servers with this patch on both 1.1 and 2.1 and they seem to
be working fine and doing everything asked of them.
*** Configure.orig Mon Oct 20 11:52:40 1997
--- Configure Tue Oct 21 10:14:00 1997
***************
*** 391,414 ****
*-unixware1)
DEF_WANTHSREGEX=yes
OS='Unixware'
! CFLAGS="$CFLAGS -DSVR4 -DNO_LINGCLOSE"
LIBS="$LIBS -lsocket -lnsl -lcrypt"
;;
*-unixware2)
DEF_WANTHSREGEX=yes
OS='Unixware'
! CFLAGS="$CFLAGS -DSVR4 -DNO_LINGCLOSE"
! LIBS="$LIBS -lsocket -lnsl -lcrypt"
;;
*-unixware211)
OS='Unixware 2.1.1'
! CFLAGS="$CFLAGS -DUW"
! LIBS="$LIBS -lsocket -lnsl -lcrypt"
;;
*-unixware212)
OS='Unixware 2.1.2'
! CFLAGS="$CFLAGS -DUW"
! LIBS="$LIBS -lsocket -lnsl -lcrypt"
DBM_LIB=""
;;
maxion-*-sysv4*)
--- 391,414 ----
*-unixware1)
DEF_WANTHSREGEX=yes
OS='Unixware'
! CFLAGS="$CFLAGS -DUW=100"
LIBS="$LIBS -lsocket -lnsl -lcrypt"
;;
*-unixware2)
DEF_WANTHSREGEX=yes
OS='Unixware'
! CFLAGS="$CFLAGS -DUW=200"
! LIBS="$LIBS -lsocket -lnsl -lcrypt -lgen"
;;
*-unixware211)
OS='Unixware 2.1.1'
! CFLAGS="$CFLAGS -DUW=211"
! LIBS="$LIBS -lsocket -lnsl -lcrypt -lgen"
;;
*-unixware212)
OS='Unixware 2.1.2'
! CFLAGS="$CFLAGS -DUW=212"
! LIBS="$LIBS -lsocket -lnsl -lcrypt -lgen"
DBM_LIB=""
;;
maxion-*-sysv4*)
*** main/conf.h.orig Tue Oct 21 10:26:40 1997
--- main/conf.h Tue Oct 21 10:29:14 1997
***************
*** 412,419 ****
--- 412,424 ----
#define HAVE_SYS_SELECT_H
#define HAVE_SYS_RESOURCE_H
#include <sys/time.h>
+ #if UW >= 200
#define _POSIX_SOURCE
+ #endif
#define NET_SIZE_T size_t
+ #if UW < 211
+ #define USE_FCNTL_SERIALIZED_ACCEPT
+ #endif
#define HAVE_SYSLOG
#elif defined(DGUX)
*** main/http_main.c.orig Mon Oct 20 11:54:00 1997
--- main/http_main.c Tue Oct 21 10:14:41 1997
***************
*** 2287,2292 ****
--- 2287,2296 ----
#define WORKAROUND_SOLARIS_BUG
#endif
+ #if defined (UW) && UW < 200
+ #define WORKAROUND_SOLARIS_BUG
+ #endif
+
#ifndef WORKAROUND_SOLARIS_BUG
s = ap_slack(s, AP_SLACK_HIGH);
--
Tom Hughes : [EMAIL PROTECTED] : [EMAIL PROTECTED]
Software Engineer, Cyberscience Corporation
Rawdon House, High Street, Hoddesdon, Hertfordshire EN11 8BD
... Feet Smell? Nose Run? Hey, you're upside down!