[MacPorts] #25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: -----------------------------------+---------------------------------------- php52 fails to compile on my box when specifying the pear variant. I did some analysis and it seems the error occurs during the "make install-pear" section of the make file with the following errors. {{{ Installing PEAR environment: /opt/local/lib/php/ Notice: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 Notice: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 Notice: Unknown: Unable to find the wrapper "php" - did you forget to enable it when you configured PHP? in Unknown on line 0 Fatal error: Call to undefined function in_array() in /Volumes/StorageHD/opt/local/var/macports/build/_Volumes_StorageHD_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_php52/work/php-5.2.13/pear /install-pear-nozlib.phar on line 393 }}} Altering the php Makefile in the work directory to use the default php binaries at /usr/bin/php was able to complete the build. However, apache module libphp.so segfaults on my machine. So I don't believe this is the right thing to do. I've attached my logs. -- Ticket URL: <http://trac.macports.org/ticket/25231> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: -----------------------------------+---------------------------------------- Comment(by ugo.enyioha@…): Additional info. The install command used was {{{port install php52 +mysql5 +sqlite +pear +postgresql84 +snmp +tidy +dbase +mysql5 +sockets +readline +imap +pspell +apache2 +t1lib +gmp +pcntl +mssql +ipc}}} However even a reduced variant list {{{port install php52 +apache2 +mysql5 +pear +sqlite}}} runs into the same problem as expected. -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Changes (by macsforever2000@…): * cc: jwa@… (added) * owner: macports-tickets@… => ryandesign@… * port: => php52 -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by snc@…): I was able to build `php52 +no_web +pear` successfully. -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by snc@…): And I just built `php52 +apache2 +mysql5 +pear +sqlite` successfully. Perhaps since you're building across hard drives it hit a snag? -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by compconsultant@…): I am not building across drives, have a new install of SL server (10.6.4), and, got the same error. Downloaded macports today. I am using: port install php52 +no_web +imap +ipc +mssql +mysql5 +pcntl +pear +readline +sockets +sqlite If I remove the +pear, it installs just fine. If I follow that success up with: port upgrade --enforce-variants php52 +no_web +imap +ipc +mssql +mysql5 +pcntl +pear +readline +sockets +sqlite It DOES install. I suspect it worked for you as you already had the necessary stuff on your machine, whatever that turns out to be. But, on a new install of SLS, it does not work. There must be something out of sequence. -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by chrisbloom7@…): I ran into the same issue on my MBP (10.6.4) running sudo port install php52 +mysql5 +sqlite +pear +apache2 +postgresql84 I already had mysql and postgresql installed. It failed at the same place with the same errors. -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by ryandesign@…): Has duplicate #25784. I'm unable to reproduce the issue, even when I don't have any MacPorts PHP installed yet. I don't know what to suggest, other than upgrading to PHP 5.3 and/or not using PEAR (or installing PEAR manually, not using MacPorts). -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by ryandesign@…): [http://d.hatena.ne.jp/fujisan3776/20100708/1278564058 Here] is a Japanese blog post about the problem. Even with Google Translate's help it's predictably bizarre to read, but the gist seems to be that in their case anyway gawk is crashing for some reason when configure runs via MacPorts, but not when configure is run with the same arguments manually. I don't see a gawk crash in the log attached here. But I can still suggest you check if your gawk works, and try rebuilding gawk to see if that changes anything. {{{ sudo port clean gawk php52 sudo port -n upgrade --force gawk }}} If it still fails, please attach your config.log so I can compare it with mine. -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by axolx@…): I ran into the same problem. The issue in my case was also with setting up PEAR during the staging phase. I reverted the php52 portfile to rev 62445 and it installed fine with PEAR and everything I needed, so my 5 cents is that the issue occurs in portfiles after rev 62445 -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by axolx@…): I was able to install the latest portfile via compconsultant@yahoo.com's suggestion. I first installed without the +pear option and that avoided the staging issue and then did a port upgrade --enforce-variants that added the +pear option, which staged just fine. phew... -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by bernhard.fuerst@…): Replying to [comment:9 ryandesign@…]: {{{ sudo port clean gawk php52 sudo port -n upgrade --force gawk }}} That did solve the problem for me - thanks! -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by ryandesign@…): Has duplicate #26296. -- Ticket URL: <http://trac.macports.org/ticket/25231#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by compconsultant@…): Upgraded to 5.2.14, and, problem still there. Had to also force uninstall before re-installing to make it work. -- Ticket URL: <https://trac.macports.org/ticket/25231#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by julian.simpson@…): I'm running into the same thing and I'd like to point out one very important part of the puzzle. No scripts are working when run properly in CLI. Not even just <?php phpinfo(); ?> This will result in PHP Fatal error: Call to undefined function phpinfo(). (preceded by the same warnings about wrapper "php" above) I believe the fact that this is coming up when installing the pear variant to be a red herring to the actual issue. The pear variant undoubtedly attempts to run the php-go.phar script under CLI and fails at the very first php method. The actual issue is that PHP CLI isn't working. -- Ticket URL: <https://trac.macports.org/ticket/25231#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server -----------------------------------+---------------------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: php52 -----------------------------------+---------------------------------------- Comment(by compconsultant@…): I think you are right Julian. Installed php52 on a brand new Snow Leopard Macbook, without pear, and, same result, the part about unable to find the wrapper. I think it more has to do with the second go around on the install. That the enforce variants upgrade works, is because the php stuff is still there and somehow, that matters to the script. So, still a problem with php52, current version of the port. At least it compiles quicker now on the new machine! -- Ticket URL: <https://trac.macports.org/ticket/25231#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25231: php52-5.2.13 error compiling php52 with +pear variant on Snow Leopard Server ----------------------------+-------------------------- Reporter: ugo.enyioha@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Resolution: | Keywords: Port: php52 | ----------------------------+-------------------------- Comment (by paul.borel@…): It will install php52 without +pear. I have a problem with pear ? or not works ? I'm using Mac Os x 10.6. -- Ticket URL: <https://trac.macports.org/ticket/25231#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts