You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Martyn Johnson <Ma...@cl.cam.ac.uk> on 1999/03/12 18:41:16 UTC

general/4050: Top level Makefile contains platform dependency in the part that determines the platform.

>Number:         4050
>Category:       general
>Synopsis:       Top level Makefile contains platform dependency in the part that determines the platform.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Mar 12 09:50:01 PST 1999
>Last-Modified:
>Originator:     Martyn.Johnson@cl.cam.ac.uk
>Organization:
apache
>Release:        1.3.4
>Environment:
APACI configuration using --shadow
(generic problem)
>Description:
When doing a multi-platform configuration using --shadow, the configure
script generates a top level Makefile which is used on all platforms.

Unfortunately this Makefile contains a platform dependency, namely the
location of "awk" in this line:

GNUTRIPLE=`src/helpers/GuessOS | sed -e 's:/:-:g' | /bin/gawk '{ printf("%s",$$1); }'`

If awk is in a different location on other platforms, the make will not work.
>How-To-Repeat:
./configure --shadow

on two platforms in turn, where the location of the "best" awk on the
first system does not correspond to a working awk on the second.

My example is Digital Unix where /bin/nawk is chosen, followed by RedHat
Linux where /bin/nawk does not exist and /bin/gawk is best.
>Fix:
Try to avoid needing awk in the platform-independent bits? 
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]