[README][INSTALL][関連情報][日本語マニュ アル][戻る]

apach_1.0.5をNEWS-OS Release 4.2.1Rでコンパイルするためのパッチです
展開したソースがあるディレクトリでpatch < apach_1.0.5.diffを実行し て下さい。

*** modules.c	Fri Dec  6 22:05:03 1996
--- ../../apache_1.0.5/src/modules.c	Sat Feb 17 17:36:33 1996
***************
*** 18,26 ****
  extern module common_log_module;
  extern module asis_module;
  extern module imap_module;
- extern module agent_log_module;
- extern module referer_log_module;
- extern module cookies_module;
  
  module *prelinked_modules[] = {
    &core_module,
--- 18,23 ----
***************
*** 36,43 ****
    &common_log_module,
    &asis_module,
    &imap_module,
-   &agent_log_module,
-   &referer_log_module,
-   &cookies_module,
    NULL
  };
--- 33,37 ----
*** Makefile	Fri Dec  6 22:05:48 1996
--- ../../apache_1.0.5/src/Makefile	Sat Feb 17 17:42:18 1996
***************
*** 1,35 ****
! # Makefile automatically generated from Makefile.tmpl
! # and configuration file by Apache config script. 
! # Hand-edited changes will be lost if the config script
! # is re-run.
! CC= gcc
! CFLAGS= -O2
! LFLAGS=
  EXTRA_LIBS=
- AUX_CFLAGS= -DNEXT
- MODULES=\
-   mod_mime.o \
-   mod_access.o \
-   mod_auth.o \
-   mod_negotiation.o \
-   mod_include.o \
-   mod_dir.o \
-   mod_cgi.o \
-   mod_userdir.o \
-   mod_alias.o \
-   mod_log_common.o \
-   mod_asis.o \
-   mod_imap.o \
-   mod_log_agent.o \
-   mod_log_referer.o \
-   mod_cookies.o \
-   strftime.o
  
! # Apache makefile template (well, suffix).
  
! # This is combined with the information in the "Configuration" file
! # by the configure script to make the actual Makefile.
  
  OBJS= alloc.o http_main.o http_core.o http_config.o http_request.o \
    http_log.o http_protocol.o rfc931.o util.o util_script.o modules.o $(MODULES)
  
--- 1,87 ----
! # Makefile for the Apache httpd. 
! 
! # For normal machines with ANSI compilers
! # CC= cc
! # For Suns or other non-ANSI platforms. Please make sure your gcc is
! # 2.0 or later, as 1.40 seems to create bad code for the Sun 4.
! CC= gcc -Wall
! 
! # CFLAGS, compile flags.
! 
! # If you want no reverse hostname resolution, use -DMINIMAL_DNS
! # If you want to have more secure hostname resolution at the cost of some 
! # performance, use -DMAXIMUM_DNS
! 
! #CFLAGS= -O2 
! CFLAGS= -g 
! 
! # Modules precompiled with the server.  Note that these must also be
! # in the list in modules.c in order to be active.
! 
! MODULES = mod_mime.o mod_access.o mod_alias.o mod_cgi.o mod_include.o \
! 	mod_dir.o mod_auth.o mod_auth_dbm.o mod_negotiation.o mod_userdir.o \
! 	mod_log_common.o mod_asis.o
! 
! # Place here any extra libraries you may need to link to. 
! # If you want DBM auth, -lndbm is commonly required.
  EXTRA_LIBS=
  
! # AUX_CFLAGS are system-specific control flags.
! # NOTE: IF YOU DO NOT CHOOSE ONE OF THESE, EDIT httpd.h AND CHOOSE
! # SETTINGS FOR THE SYSTEM FLAGS. IF YOU DON'T, BAD THINGS WILL HAPPEN.
  
! # For SunOS 4
! AUX_CFLAGS= -DSUNOS4
! # For Solaris 2.
! # AUX_CFLAGS= -DSOLARIS2 -DFCNTL_SERIALIZED_ACCEPT
! # EXTRA_LIBS= -lsocket -lnsl
! # For SGI IRIX. Use the EXTRA_LIBS line if you're using NIS and want
! # user-supported directories
! #AUX_CFLAGS= -DIRIX -DFCNTL_SERIALIZED_ACCEPT
! #EXTRA_LIBS= -lsun
! # For HP-UX
! #AUX_CFLAGS= -DHPUX
! # For AIX
! #AUX_CFLAGS= -DAIX -U__STR__
! # For Ultrix
! #AUX_CFLAGS= -DULTRIX
! # For DEC OSF/1
! #AUX_CFLAGS= -DOSF1
! # For NeXT
! #AUX_CFLAGS= -DNEXT
! # For Sequent
! #AUX_CFLAGS= -DSEQUENT
! # For Linux -m486 ONLY IF YOU HAVE 486 BINARY SUPPORT IN KERNEL
! #AUX_CFLAGS= -DLINUX -DFCNTL_SERIALIZED_ACCEPT
! # For A/UX
! #AUX_CFLAGS= -DAUX
! #EXTRA_LIBS= -lbsd -lposix -s
! # For SCO ODT
! # libcrypt_i available from sosco.sco.com, files /SLS/lng225b.Z and
! # /SLS/lng225b.ltr.Z
! #AUX_CFLAGS= -DSCO
! #EXTRA_LIBS= -lPW -lsocket -lmalloc -lcrypt_i
! # For SVR4
! #AUX_CFLAGS= -DSVR4
! #EXTRA_LIBS= -lsocket -lnsl -lc
! # For Amdahl UTS 2.1
! # -Xa enables ANSI mode, -eft is expanded types
! #AUX_CFLAGS= -Xa -eft -DUTS21
! #EXTRA_LIBS= -lsocket -lbsd -la
! # For HP/Apollo Domain/OS
! #AUX_CFLAGS= -DAPOLLO
! # For NetBSD/FreeBSD/BSDI 2.x
! # -m486 only if you are running on Intel 486/586
! #AUX_CFLAGS= -m486
! # BSDI doesn't need -lcrypt
! #EXTRA_LIBS= -lcrypt
  
+ # Place here any flags you may need upon linking, such as a flag to
+ # prevent dynamic linking (if desired)
+ LFLAGS= 
+ 
+ # You shouldn't have to edit anything else.
+ 
  OBJS= alloc.o http_main.o http_core.o http_config.o http_request.o \
    http_log.o http_protocol.o rfc931.o util.o util_script.o modules.o $(MODULES)
  
***************
*** 39,55 ****
  all: httpd
  
  httpd: $(OBJS)
! 	$(CC) $(LFLAGS) $(AUX_LFLAGS) -o httpd $(OBJS) $(EXTRA_LIBS) $(AUX_LIBS)
  
  clean:
  	rm -f httpd $(OBJS) *pure*
- 
- dist.tar: 
- 	# Assure a semi-sensible configuration going out...
- 	cp Makefile.orig Makefile
- 	cp modules.c.orig modules.c
- 	tar cvf dist.tar README INSTALL CHANGES TODO API.html \
- 		Configuration Configure Makefile.tmpl Makefile *.h *.c
  
  #Dependencies
  #Core code
--- 91,100 ----
  all: httpd
  
  httpd: $(OBJS)
! 	$(CC) $(LFLAGS) -o httpd $(OBJS) $(EXTRA_LIBS)
  
  clean:
  	rm -f httpd $(OBJS) *pure*
  
  #Dependencies
  #Core code
No differences encountered
*** conf.h	Thu Jul 18 00:02:22 1996
--- ../../apache_1.0.5/src/conf.h	Sat Feb 17 17:35:23 1996
***************
*** 67,73 ****
  #undef NO_KILLPG
  #undef NO_SETSID
  char *crypt(char *pw, char *salt);
! /* #define JMP_BUF sigjmp_buf */
  #define NEED_STRERROR
  #include <sys/time.h>     
  
--- 67,73 ----
  #undef NO_KILLPG
  #undef NO_SETSID
  char *crypt(char *pw, char *salt);
! #define JMP_BUF sigjmp_buf
  #define NEED_STRERROR
  #include <sys/time.h>     
  
***************
*** 132,138 ****
  #define tolower(c) (isupper(c) ? tolower(c) : c)
  
  #elif defined(NEXT)
! /* #include <libc.h> */
  typedef unsigned short mode_t;
  #define HAS_GMTOFF
  #undef NO_KILLPG
--- 132,138 ----
  #define tolower(c) (isupper(c) ? tolower(c) : c)
  
  #elif defined(NEXT)
! #include <libc.h>
  typedef unsigned short mode_t;
  #define HAS_GMTOFF
  #undef NO_KILLPG