[EMAIL PROTECTED] wrote:
>Thank you very much for your problem report.
>It has the internal identification `os-os2/4269'.
>The individual assigned to look at your
>report is: apache. 
>
>>Category:       os-os2
>>Responsible:    apache
>>Synopsis:       make install fails on os/2
>>Arrival-Date:   Sun Apr 18 20:50:00 PDT 1999
>

I got cut off in the middle, but here's the body of my report:

`make install` fails on os/2 with three different problems.
1) an outright bug in Makefile.tmpl in install-include causes an
error when OSDIR starts with 'os' :) producing this error:

% make install-include
===> [include: Installing Apache C header files]
cp ./src/include/*.h /usr/local/apache/include/
cp ./src/os2/os.h /usr/local/apache/include/
cp: ./src/os2/os.h: No such file or directory
cp ./src/os2/os-inline.c /usr/local/apache/include/
cp: ./src/os2/os-inline.c: No such file or directory
make: *** [install-include] Error 1

See patch below for fix.


2) Due to the presence of the INSTALL file in the distribution, make "fails"
on a non case-sensitive file system such as HPFS:

% make install
make: `install' is up to date.

As a workaround, INSTALL can be renamed or deleted.
For a permanent fix, the 'install' target should have as a dependency a
file that is pretty much guaranteed to exist and to be newer than INSTALL.
For instance, Makefile itself.  See patch below.


3) Install tries to install the programs as httpd, htdigest, htpasswd, etc.
These of course have been built with an .exe extension, so the install
doesn't exactly work.  As a workaround I modified install.sh to take an
-e parameter to add an extension to the src and dst filenames (see patch
below) and added "-e .exe" to IFLAGS_PROGRAM and IFLAGS_CORE in the
Makefile.  (STRIPPROG also needed to be set to "emxbind -s")  To automate
this change to Makefile for os2, top level Configure needs to become
os-aware, which it currently isn't except for for shadowing purposes.
A patch to Configure is forthcoming.

--- /apache_1.3.6/Makefile.tmpl Mon Mar 15 17:38:28 1999
+++ ./Makefile.tmpl     Sun Apr 18 19:36:52 1999
@@ -201,7 +201,7 @@
 #   the install target for installing the complete Apache
 #   package. This is implemented by running subtargets for the
 #   separate parts of the installation process.
-install:
+install: Makefile
        @if [ ! -f $(TOP)/$(SRC)/.apaci.build.ok ]; then \
                $(MAKE) -f $(TOP)/$(MKF) $(MFLAGS) $(MFWD) build; \
        else \
@@ -367,7 +367,7 @@
 install-include:
        @echo "===> [include: Installing Apache C header files]"
        $(CP) $(TOP)/$(SRC)/include/*.h $(root)$(includedir)/
-       @osdir=`grep '^OSDIR=' $(TOP)/$(SRC)/Makefile.config | sed -e 
's:^OSDIR=.*/os:os:'`; \
+       @osdir=`grep '^OSDIR=' $(TOP)/$(SRC)/Makefile.config | sed -e 
's:^OSDIR=.*/os/:os/:'`; \
                echo "$(CP) $(TOP)/$(SRC)/$${osdir}/os.h 
$(root)$(includedir)/"; \
                $(CP) $(TOP)/$(SRC)/$${osdir}/os.h $(root)$(includedir)/; \
                echo "$(CP) $(TOP)/$(SRC)/$${osdir}/os-inline.c 
$(root)$(includedir)/"; \


--- /apache_1.3.6/src/helpers/install.sh        Wed Feb 10 05:09:12 1999
+++ ./install.sh        Thu Apr  8 22:00:52 1999
@@ -32,6 +32,7 @@
 chowncmd=""
 chgrpcmd=""
 stripcmd=""
+addsuffix=""
 rmcmd="$rmprog -f"
 mvcmd="$mvprog"
 src=""
@@ -56,6 +57,9 @@
         -S) stripcmd="$stripprog $2"
             shift; shift; continue
             ;;
+        -e) addsuffix="$2"
+            shift; shift; continue
+            ;;
         *)  if [ "x$src" = "x" ]; then
                 src=$1
             else
@@ -86,6 +90,13 @@
 #  Make a temp file name in the proper directory.
 dstdir=`dirname $dst`
 dsttmp=$dstdir/#inst.$$#
+
+#  Add a suffix (such as ".exe") to the src and dst
+
+if [ "x$addsuffix" != "x" ]; then
+     src="$src$addsuffix"
+     dst="$dst$addsuffix"
+fi
 
 #  Move or copy the file name to the temp name
 $instcmd $src $dsttmp

Reply via email to