Solved [Solved] lang/php5: error compiling php5-5.4.23 port

I was trying to compile the php5-5.4.23 port today and received the following error:
Code:
  lqqqqqqqqqqqqqqqqqqqqqqqqqqqq php5-5.4.23 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
  x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
  x x [x] CLI        Build CLI version                                   x x
  x x [x] CGI        Build CGI version                                   x x
  x x [ ] FPM        Build FPM version                                   x x
  x x [x] APACHE     Build Apache module                                 x x
  x x [ ] AP2FILTER  Use Apache 2.x filter interface (experimental)      x x
  x x [ ] EMBED      Build embedded library                              x x
  x x [ ] DEBUG      Enable debug                                        x x
  x x [ ] DTRACE     Enable DTrace support                               x x
  x x [x] IPV6       Enable ipv6 support                                 x x
  x x [x] MAILHEAD   Enable mail header patch                            x x
  x x [ ] LINKTHR    Link thread lib (for threaded extensions)           x x
  x x [ ] ZTS        Force Zend Thread Safety (ZTS) build                x x
  x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x
  tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
  x                     <  OK  >           <Cancel>                        x
  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

root@aloha:/usr/ports/lang/php5 # make install clean
===>  Installing for php5-5.4.23
===>   php5-5.4.23 depends on file: /usr/local/sbin/apxs - found
===>   php5-5.4.23 depends on shared library: libpcre.so - found
===>   php5-5.4.23 depends on shared library: libxml2.so - found
===>  Checking if lang/php5 already installed
===>   Registering installation for php5-5.4.23
pkg-static: lstat(/usr/ports/lang/php5/work/stage/usr/local/include/php/sapi/cli/): No such file or directory
pkg-static: lstat(/usr/ports/lang/php5/work/stage/usr/local/include/php/sapi/): No such file or directory
*** Error code 74

Stop.
make[1]: stopped in /usr/ports/lang/php5
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/php5
I ran the make earlier and it failed, so I have included the different configuration options. I am running
Code:
FreeBSD aloha 10.0-RC3 FreeBSD 10.0-RC3 #0 r259778: Tue Dec 24 04:35:46 UTC 2013     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
Any ideas on how to compile the port successfully?
 
Re: lang/php5: error compiling php5-5.4.23 port

This looks very much like a staging issue @cpm guided me past earlier today with another port. Try putting:
Code:
NO_STAGE=        yes
in the lang/php5/Makefile declarative section to get around it. Right after
Code:
DESTDIRNAME=      INSTALL_ROOT
will be good. Be sure to use tabs in the Makefile to align, not spaces.
 
Last edited by a moderator:
Back
Top