php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43857 --program-suffix not always reflected everywhere
Submitted: 2008-01-15 17:02 UTC Modified: 2009-08-10 01:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: bjoern at xrow dot de Assigned: cellog (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 5.2.8 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bjoern at xrow dot de
New email:
PHP Version: OS:

 

 [2008-01-15 17:02 UTC] bjoern at xrow dot de
Description:
------------
Hi,

I used 

./configure --program-suffix=5 --prefix=/usr/local/php5

when i try to run stuff like bin/pecl it fails since the script created by the installer didn`t take the suffix in account for pecl

--------- lines from bin/pecl
  if test "/usr/local/php5/bin/php" = '@'php_bin'@'; then
    PHP=php
  else
    PHP="/usr/local/php5/bin/php"
  fi
------------

after fixing that manually i tryied it again and it seems also the correct path to phpize is missing with is phpize5

/usr/local/php5/bin/pecl install xdebug

^[[A^[[Adownloading xdebug-2.0.2.tgz ...
Starting to download xdebug-2.0.2.tgz (279,621 bytes)
.................done: 279,621 bytes
65 source files, building
running: phpize
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20050606
ERROR: `phpize' failed


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-18 11:05 UTC] jani@php.net
This is actually PEAR bug, but as it's quite tightly connected to PHP we can keep this here. I don't know where that pecl script is and I don't want to touch it either since there's some new installer cooking..so Greg, can you please fix it to use the provided php-config instead?
(note: php-config also might use the --program-prefix and --program-suffix options!)
 [2008-11-29 03:43 UTC] cellog@php.net
This is a very difficult problem to solve for all cases.  Most fixes I've tried thus far break many other cases.

For instance, the calls to "phpize" and "php-config" are done inside the source of PEAR/Builder.php.  If we manually modify the source of PEAR/Builder.php, the instant a user calls "pear config-set php_bin /path/to/some/other/php" the whole thing breaks.

So, what I am going to do is provide two new options to the "install" "upgrade" and "upgrade-all" commands which are designed to account for --program-suffix or --program-prefix being used, --program-suffix and --program-prefix which will programmatically append/prepend for the phpize/php-config commands.  I'll also provide 2 new config variables that can be set to make this automatic.

This new feature will not appear until PEAR 1.8.0 is released, which will hopefully be before PHP 5.3.0
 [2008-11-29 04:08 UTC] cellog@php.net
this is now fixed in PEAR CVS, but I will keep this open until the install phar in php's source is updated
 [2009-01-22 01:16 UTC] jani@php.net
Was the package updated for 5.2.8 or not..? (it's 5.2.9 soon..)
 [2009-04-20 04:43 UTC] cellog@php.net
this is about to be fixed some time this week, the PEAR version with the fix should be released any day now, and once its stability is verified, we'll update the phar.  I will update the Makefile.frag when this happens, and then change the status to Feedback to make sure it works for you (my preliminary testing has it working here)
 [2009-07-26 19:42 UTC] jani@php.net
Is this still not fixed? 
 [2009-08-02 19:11 UTC] svn@php.net
Automatic comment from SVN on behalf of cellog
Revision: http://svn.php.net/viewvc/?view=revision&revision=286687
Log: fix Bug #43857
 [2009-08-02 19:11 UTC] cellog@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-08-10 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 23:01:29 2024 UTC