Bug #61234 [Fbk->NoF]: PHP 5.4.0 fails to build on OpenBSD 5.0; possibly related to --enable-mbstring

From: Date: Sun, 20 Jun 2021 04:22:13 +0000
Subject: Bug #61234 [Fbk->NoF]: PHP 5.4.0 fails to build on OpenBSD 5.0; possibly related to --enable-mbstring
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234530@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61234&edit=1

 ID:               61234
 Updated by:       php-bugs@lists.php.net
 Reported by:      stolen dot data dot net at gmail dot com
 Summary:          PHP 5.4.0 fails to build on OpenBSD 5.0; possibly
                   related to --enable-mbstring
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          Compile Failure
 Operating System: OpenBSD 5.0
 PHP Version:      5.4.0
 Assigned To:      cmb
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2021-06-10 12:48:52] cmb@php.net

Is that still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>

------------------------------------------------------------------------
[2013-10-13 07:44:58] hirokawa@php.net

It is caused by extra double-quotation in configure (like -I/lib").
This problem is probably not mbstring issue, because it is also
caused without --enable-mbstring.
It might be an autotool issue on OpenBSD.
Do you have the same issue on other environment like Linux ?

------------------------------------------------------------------------
[2012-03-27 23:58:54] stolen dot data dot net at gmail dot com

Here's a temporary workaround to the problem in order to get 5.4.0 to compile 
with --enable-mbstring...

diff for configure:

--- configure.orig	Wed Mar 28 00:01:42 2012
+++ configure	Wed Mar 28 03:12:01 2012
@@ -21106,7 +21106,7 @@
 
     ep_dir="echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'"
 
-    ep_realdir="(cd \"$ep_dir\" && pwd)"
+    ep_realdir="(cd $ep_dir && pwd)"
     ai_p="$ep_realdir/basename \"$ext_builddir/lib\""
   fi
 
@@ -59293,7 +59293,7 @@
 
     ep_dir="echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'"
 
-    ep_realdir="(cd \"$ep_dir\" && pwd)"
+    ep_realdir="(cd $ep_dir && pwd)"
     ai_p="$ep_realdir/basename \"$ext_builddir/$dir\""
   fi



Then supply missing include paths when calling configure:

CFLAGS="-Iext/mbstring/oniguruma/ -Iext/mbstring/libmbfl/mbfl" CPPFLAGS="-
Iext/mbstring/oniguruma/ -Iext/mbstring/libmbfl/mbfl" ./configure --your-usual-
flags

------------------------------------------------------------------------
[2012-03-02 21:46:29] stolen dot data dot net at gmail dot com

./configure[59443]: cd: /usr/opt/php-5.4.0/"ext/mbstring" - No such file or 
directory
./configure[59443]: cd: /usr/opt/php-5.4.0/"ext/mbstring" - No such file or 
directory
./configure[59443]: cd: /usr/opt/php-5.4.0/"ext/mbstring/libmbfl" - No such file 
or directory

------------------------------------------------------------------------
[2012-03-02 02:12:06] stolen dot data dot net at gmail dot com

The problem with --enable-mbstring seems to be that a lot of files have been moved 
around in ext/mbstring/oniguruma/ and ext/mbstring/libmbfl/ breaking the paths for 
a number of includes. A stray quote appears to be the reason for the Makefile's 
failure when --enable-mbstring isn't supplied.

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


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=61234


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


Thread (9 messages)

« previous php.bugs (#234530) next »