You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by "Andrew N.McGuire" <an...@ce.mediaone.net> on 2000/06/18 02:01:20 UTC

general/6205: == test operator in Bourne shell configure script.

>Number:         6205
>Category:       general
>Synopsis:       == test operator in Bourne shell configure script.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Jun 17 17:10:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     anmcguire@ce.mediaone.net
>Release:        2.04a
>Organization:
apache
>Environment:
Operating System = Solaris ( and probably more )...
Compiler = Gcc 2.95 ( This is really a non factor )
SunOS falcon 5.7 Generic_106541-04 sun4u sparc
>Description:
I realize that Apache 2.04a is an alpha release, but I wanted to help
out just in case no one catches this before the final release.
On Solaris ( and other Unices I am sure ) there is no Bash shell ( by default ).
When you run the buildconf script to build your configure script,
it erroniously assumes that /bin/sh is bash.  Sadly, this is not
the case and the '==' comparison operators which are valid in Bash
are not valid in the Bourne shell.  As a result, the configure script
fails on syntax errors.
>How-To-Repeat:
To recreate the problem just run ./buildconf on Solaris from
the top level source directory, then run ./configure.  Unless
you have replace Solaris' /bin/sh with Bash, it will fail.
>Fix:
Change the '==' comparison operators generated by buildconf to '=',
which is valid syntax in both the Bourne shell and Bash.
>Release-Note:
>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 make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database 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!     ]