Bug #65088 [PATCH]: configure script (and compile) fails, perhaps due to BSD differences in SH

From: Date: Sat, 22 Jun 2013 23:54:08 +0000
Subject: Bug #65088 [PATCH]: configure script (and compile) fails, perhaps due to BSD differences in SH
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-179703@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65088&edit=1

 ID:                 65088
 Patch added by:     aharvey@php.net
 Reported by:        stolen dot data dot net at gmail dot com
 Summary:            configure script (and compile) fails, perhaps due to
                     BSD differences in SH
 Status:             Feedback
 Type:               Bug
 Package:            Compile Failure
 Operating System:   OpenBSD 5.3 (possibly all BSDs)
 PHP Version:        5.5.0
 Block user comment: N
 Private report:     N

 New Comment:

The following patch has been added/updated:

Patch Name: bug65088
Revision:   1371945248
URL:        https://bugs.php.net/patch-display.php?bug=65088&patch=bug65088&revision=1371945248


Previous Comments:
------------------------------------------------------------------------
[2013-06-22 23:53:20] aharvey@php.net

Can you try applying the patch I'm about to upload, then rebuilding configure by 
running ./buildconf, please? (You may need to use ./buildconf --force if you're 
using a release tarball; note that you'll require autoconf 2.59 or later.)

------------------------------------------------------------------------
[2013-06-22 23:02:43] fa@php.net

Addendum: This is my shell version:

# echo $SH_VERSION
@(#)PD KSH v5.2.14 99/07/13.2

------------------------------------------------------------------------
[2013-06-22 22:56:18] fa@php.net

Just tried this on:
OpenBSD puffy.lan 4.9 GENERIC#477 amd64

bash-4.1# /bin/sh
# /bin/sh
# cd /root/
# pwd
/root
# cd /usr/"local"
# pwd
/usr/local

------------------------------------------------------------------------
[2013-06-22 22:50:08] rasmus@php.net

So, a quick test on FreeBSD:

$ /bin/sh
$ cd /usr/"local"
$ pwd
/usr/local

That doesn't work on your machine?

We can't just remove the quotes there because it would break directory names 
with spaces and other shell-special characters in them. cd is a built-in in the 
shell and should support quoted literals. autoconf obviously relies on this 
being the case. Have you done something interesting to your /bin/sh on this box?

------------------------------------------------------------------------
[2013-06-22 22:36:21] rasmus@php.net

So basically autoconf generates a configure script that doesn't work on OpenBSD? 
That sounds a bit suspicious and I wonder why nobody else has reported it.

Anything special about your environment?

And can you reproduce just with just running the ./configure script with no args 
that comes with the php-5.5.0 tarball?

I just tested it again on FreeBSD 9.0 and it worked flawlessly, so it is not a 
generic BSD issue. It is either OpenBSD-specific or specific to your 
environment.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=65088


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65088&edit=1


Thread (15 messages)

« previous php.bugs (#179703) next »