Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <779F20BCCE5AD31186A50008C75D997917174C@silldn_mail1.sanwaint.com> From: "Fifer, Eric" To: "'McDermott, Alastair'" , cygwin AT sourceware DOT cygnus DOT com Subject: RE: Apache 2.0 on Cygwin Date: Wed, 19 Jul 2000 13:22:56 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01BFF17C.0E0F9D2A" ------_=_NextPart_000_01BFF17C.0E0F9D2A Content-Type: text/plain; charset="iso-8859-1" >Is there currently an effort in place to port 2.0 to Cygwin? Where can I >find more information/discussion on this? The basic Apache 2.0a4 builds relatively cleanly on Cygwin. Attached are a build script and two patch files that will build a prefork version. A few caveats: I don't watch the Apache developers list and I wasn't involved with the previous efforts building Apache on Cygwin. And, I haven't seen any discussions regarding porting the latest Apache alphas to Cygwin. To get a fully functional Apache on Cygwin I think a fair amount of work would be necessary, particularly getting POSIX threads fully implemented on Cygwin. Regards, Eric Fifer ------_=_NextPart_000_01BFF17C.0E0F9D2A Content-Type: application/octet-stream; name="apache-build.sh" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="apache-build.sh" set -e=0A= =0A= tar zxf apache_2.0a4.tar.gz=0A= cd apache_2.0a4/src=0A= =0A= # NOTE: some minor tweaks ...=0A= # lib/apr/file_io/unix/pipe.c, no mkfifo=0A= # main/util.c, workaround problem in find_fqdn=0A= # lib/pcre/pcre.in, dllimport not needed=0A= # support/logresolve.c, h_errno=0A= # Makefile.in, helpers/install.sh, lib/pcre/Makefile.in, = install/.exe=0A= patch -p2 <../../apache.patch=0A= =0A= # NOTE: buildconf requires autoconf and libtool=0A= # autoconf can be downloaded from cygutils.netpedia.net=0A= # libtool you'll need to build yourself=0A= ./buildconf=0A= =0A= # NOTE: autoheader fails when it tries to rename an open file=0A= if [ -f autoh* ]=0A= then=0A= mv autoh* include/ap_config_auto.h.in=0A= mv lib/apr/autoh* lib/apr/include/apr_private.h.in=0A= fi=0A= =0A= # NOTE: tweak configure's mmap test=0A= # fix "test: =3D=3D: unknown operand" with s/=3D=3D/=3D/ (ash v. = bash)=0A= patch <../../apache.conf.patch=0A= =0A= ./configure --prefix=3D/usr/local/apache --with-mpm=3Dprefork=0A= =0A= make=0A= =0A= make install=0A= ------_=_NextPart_000_01BFF17C.0E0F9D2A Content-Type: application/octet-stream; name="apache.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="apache.patch" diff -upr apache_2.0a4.orig/src/Makefile.in = apache_2.0a4/src/Makefile.in=0A= --- apache_2.0a4.orig/src/Makefile.in Tue May 16 11:57:27 2000=0A= +++ apache_2.0a4/src/Makefile.in Fri Jul 14 16:44:14 2000=0A= @@ -65,11 +65,11 @@ install-support:=0A= @echo Installing Support Binaries=0A= @test -d $(bindir) || $(mkinstalldirs) $(bindir)=0A= @cp -p $(srcdir)/support/httpd.exp $(bindir)=0A= - @cp -p $(builddir)/support/htpasswd $(bindir)=0A= - @cp -p $(builddir)/support/htdigest $(bindir)=0A= - @cp -p $(builddir)/support/rotatelogs $(bindir)=0A= - @cp -p $(builddir)/support/logresolve $(bindir)=0A= - @cp -p $(builddir)/support/ab $(bindir)=0A= + @install $(builddir)/support/htpasswd $(bindir)=0A= + @install $(builddir)/support/htdigest $(bindir)=0A= + @install $(builddir)/support/rotatelogs $(bindir)=0A= + @install $(builddir)/support/logresolve $(bindir)=0A= + @install $(builddir)/support/ab $(bindir)=0A= =0A= install-other:=0A= @test -d $(logdir) || $(mkinstalldirs) $(logdir)=0A= diff -upr apache_2.0a4.orig/src/helpers/install.sh = apache_2.0a4/src/helpers/install.sh=0A= --- apache_2.0a4.orig/src/helpers/install.sh Tue Aug 24 06:50:38 = 1999=0A= +++ apache_2.0a4/src/helpers/install.sh Fri Jul 14 16:44:14 2000=0A= @@ -88,6 +88,7 @@ if [ -d $dst ]; then=0A= fi=0A= =0A= # Add a possible extension (such as ".exe") to src and dst=0A= +if [ -f $src.exe ]; then ext=3D".exe"; fi=0A= src=3D"$src$ext"=0A= dst=3D"$dst$ext"=0A= =0A= diff -upr apache_2.0a4.orig/src/lib/apr/file_io/unix/pipe.c = apache_2.0a4/src/lib/apr/file_io/unix/pipe.c=0A= --- apache_2.0a4.orig/src/lib/apr/file_io/unix/pipe.c Sun Apr 30 = 22:17:55 2000=0A= +++ apache_2.0a4/src/lib/apr/file_io/unix/pipe.c Fri Jul 14 16:44:14 = 2000=0A= @@ -127,9 +127,12 @@ ap_status_t ap_create_namedpipe(char *fi=0A= {=0A= mode_t mode =3D ap_unix_get_fileperms(perm);=0A= =0A= +#if 0=0A= if (mkfifo(filename, mode) =3D=3D -1) {=0A= return errno;=0A= }=0A= +#endif=0A= + return ENOSYS;=0A= return APR_SUCCESS;=0A= } =0A= =0A= diff -upr apache_2.0a4.orig/src/lib/pcre/Makefile.in = apache_2.0a4/src/lib/pcre/Makefile.in=0A= --- apache_2.0a4.orig/src/lib/pcre/Makefile.in Tue May 16 11:57:28 = 2000=0A= +++ apache_2.0a4/src/lib/pcre/Makefile.in Fri Jul 14 16:44:14 2000=0A= @@ -174,7 +174,7 @@ install: all=0A= echo $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(LIBDIR) -lpcre = -lpcreposix; \=0A= $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(LIBDIR) -lpcre = -lpcreposix; \=0A= fi=0A= - $(INSTALL) pgrep $(BINDIR)/pgrep=0A= + $(INSTALL) pgrep.exe $(BINDIR)/pgrep.exe=0A= $(INSTALL) pcre-config $(BINDIR)/pcre-config=0A= =0A= # We deliberately omit dftables and chartables.c from 'make clean'; = once made=0A= diff -upr apache_2.0a4.orig/src/lib/pcre/pcre.in = apache_2.0a4/src/lib/pcre/pcre.in=0A= --- apache_2.0a4.orig/src/lib/pcre/pcre.in Sat May 6 00:28:22 2000=0A= +++ apache_2.0a4/src/lib/pcre/pcre.in Fri Jul 14 16:44:14 2000=0A= @@ -13,7 +13,7 @@=0A= =0A= /* Win32 uses DLL by default */=0A= =0A= -#ifdef _WIN32=0A= +#if defined(_WIN32) && !defined(__CYGWIN__)=0A= # ifdef STATIC=0A= # define PCRE_DL_IMPORT=0A= # else=0A= diff -upr apache_2.0a4.orig/src/main/util.c = apache_2.0a4/src/main/util.c=0A= --- apache_2.0a4.orig/src/main/util.c Sun May 21 06:31:07 2000=0A= +++ apache_2.0a4/src/main/util.c Fri Jul 14 16:44:14 2000=0A= @@ -1951,7 +1951,9 @@ static char *find_fqdn(ap_pool_t *a, str=0A= (!strncasecmp(p->h_aliases[x], p->h_name, strlen(p->h_name))))=0A= return ap_pstrdup(a, p->h_aliases[x]);=0A= }=0A= +#if 0=0A= return NULL;=0A= +#endif=0A= }=0A= return ap_pstrdup(a, (void *) p->h_name);=0A= }=0A= diff -upr apache_2.0a4.orig/src/support/logresolve.c = apache_2.0a4/src/support/logresolve.c=0A= --- apache_2.0a4.orig/src/support/logresolve.c Thu Apr 27 05:22:57 = 2000=0A= +++ apache_2.0a4/src/support/logresolve.c Fri Jul 14 17:21:41 2000=0A= @@ -98,8 +98,10 @@ struct nsrec {=0A= * statistics - obvious=0A= */=0A= =0A= +#if 0=0A= #ifndef h_errno=0A= extern int h_errno; /* some machines don't have this in their headers = */=0A= +#endif=0A= #endif=0A= =0A= /* largest value for h_errno */=0A= ------_=_NextPart_000_01BFF17C.0E0F9D2A Content-Type: application/octet-stream; name="apache.conf.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="apache.conf.patch" --- configure.orig Fri Jul 14 14:07:30 2000=0A= +++ configure Fri Jul 14 14:08:33 2000=0A= @@ -3776,7 +3776,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST example"=0A= - if test "example" =3D=3D "so"; then=0A= + if test "example" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -5490,6 +5490,7 @@=0A= int fd;=0A= =0A= pagesize =3D getpagesize();=0A= + pagesize =3D 65536;=0A= =0A= /*=0A= * First, make a file with some known garbage in it.=0A= @@ -5516,6 +5517,7 @@=0A= if (fd < 0)=0A= exit(1);=0A= data2 =3D malloc(2 * pagesize);=0A= + data2 +=3D 10000 * pagesize;=0A= if (!data2)=0A= exit(1);=0A= data2 +=3D (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - = 1);=0A= @@ -5570,6 +5572,7 @@=0A= fi=0A= =0A= =0A= + ac_cv_func_mmap=3Dyes=0A= echo $ac_n "checking which shared memory mechanism to use""... = $ac_c" 1>&6=0A= echo "configure:5575: checking which shared memory mechanism to use" = >&5=0A= if test "$ac_cv_func_shmget" =3D "yes" ; then=0A= @@ -5776,7 +5779,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST vhost_alias"=0A= - if test "vhost_alias" =3D=3D "so"; then=0A= + if test "vhost_alias" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -5835,7 +5838,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST env"=0A= - if test "env" =3D=3D "so"; then=0A= + if test "env" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -5894,7 +5897,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST config_log"=0A= - if test "log_config" =3D=3D "so"; then=0A= + if test "log_config" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -5953,7 +5956,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST mime_magic"=0A= - if test "mime_magic" =3D=3D "so"; then=0A= + if test "mime_magic" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6012,7 +6015,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST mime"=0A= - if test "mime" =3D=3D "so"; then=0A= + if test "mime" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6071,7 +6074,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST negotiation"=0A= - if test "negotiation" =3D=3D "so"; then=0A= + if test "negotiation" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6130,7 +6133,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST status"=0A= - if test "status" =3D=3D "so"; then=0A= + if test "status" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6189,7 +6192,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST includes"=0A= - if test "include" =3D=3D "so"; then=0A= + if test "include" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6248,7 +6251,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST autoindex"=0A= - if test "autoindex" =3D=3D "so"; then=0A= + if test "autoindex" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6307,7 +6310,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST dir"=0A= - if test "dir" =3D=3D "so"; then=0A= + if test "dir" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6366,7 +6369,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST cgi"=0A= - if test "cgi" =3D=3D "so"; then=0A= + if test "cgi" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6425,7 +6428,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST cgid"=0A= - if test "cgid" =3D=3D "so"; then=0A= + if test "cgid" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6484,7 +6487,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST asis"=0A= - if test "asis" =3D=3D "so"; then=0A= + if test "asis" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6543,7 +6546,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST imap"=0A= - if test "imap" =3D=3D "so"; then=0A= + if test "imap" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6602,7 +6605,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST action"=0A= - if test "actions" =3D=3D "so"; then=0A= + if test "actions" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6661,7 +6664,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST speling"=0A= - if test "speling" =3D=3D "so"; then=0A= + if test "speling" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6720,7 +6723,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST userdir"=0A= - if test "userdir" =3D=3D "so"; then=0A= + if test "userdir" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6779,7 +6782,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST alias"=0A= - if test "alias" =3D=3D "so"; then=0A= + if test "alias" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6838,7 +6841,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST rewrite"=0A= - if test "rewrite" =3D=3D "so"; then=0A= + if test "rewrite" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6897,7 +6900,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST access"=0A= - if test "access" =3D=3D "so"; then=0A= + if test "access" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -6956,7 +6959,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST auth"=0A= - if test "auth" =3D=3D "so"; then=0A= + if test "auth" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7015,7 +7018,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST auth_anon"=0A= - if test "auth_anon" =3D=3D "so"; then=0A= + if test "auth_anon" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7074,7 +7077,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST auth_dbm"=0A= - if test "auth_dbm" =3D=3D "so"; then=0A= + if test "auth_dbm" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7134,7 +7137,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST auth_db"=0A= - if test "auth_db" =3D=3D "so"; then=0A= + if test "auth_db" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7277,7 +7280,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST auth_digest"=0A= - if test "auth_digest" =3D=3D "so"; then=0A= + if test "auth_digest" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7336,7 +7339,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST cern_meta"=0A= - if test "cern_meta" =3D=3D "so"; then=0A= + if test "cern_meta" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7395,7 +7398,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST expires"=0A= - if test "expires" =3D=3D "so"; then=0A= + if test "expires" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7454,7 +7457,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST headers"=0A= - if test "headers" =3D=3D "so"; then=0A= + if test "headers" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7514,7 +7517,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST usertrack"=0A= - if test "usertrack" =3D=3D "so"; then=0A= + if test "usertrack" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7574,7 +7577,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST unique_id"=0A= - if test "unique_id" =3D=3D "so"; then=0A= + if test "unique_id" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7633,7 +7636,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST setenvif"=0A= - if test "setenvif" =3D=3D "so"; then=0A= + if test "setenvif" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7692,7 +7695,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST echo"=0A= - if test "echo" =3D=3D "so"; then=0A= + if test "echo" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7758,7 +7761,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST so"=0A= - if test "so" =3D=3D "so"; then=0A= + if test "so" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= @@ -7818,7 +7821,7 @@=0A= shared=3Dyes;;=0A= *)=0A= MODLIST=3D"$MODLIST so"=0A= - if test "so" =3D=3D "so"; then=0A= + if test "so" =3D "so"; then=0A= echo "so"=0A= sharedobjs=3Dyes=0A= fi=0A= ------_=_NextPart_000_01BFF17C.0E0F9D2A Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com ------_=_NextPart_000_01BFF17C.0E0F9D2A--