Bug 201465

Summary: archivers/php5-zip: Freebsd 10.1 in jail fails installing php5-zip v. 5.4.42
Product: Ports & Packages Reporter: hop
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: junovitch, ports-bugs
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description hop 2015-07-10 23:30:36 UTC
In my jail I have php 5.6.9 installed.  Am installing archivers/php5-zip and getting this error when building:
make[1]: stopped in /var/ports/basejail/usr/ports/archivers/php5-zip/work/php-5.4.42/ext/zip
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

So I run make with the MAKE_JOBS_UNSAFE=yes and get this error:
--- php_zip.lo ---
/var/ports/basejail/usr/ports/archivers/php5-zip/work/php-5.4.42/ext/zip/php_zip.c:904:71: error: too few arguments to function call, expected 4, have 3
                retval = std_hnd->get_property_ptr_ptr(object, member, key TSRMLS_CC);
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                              ^

I have installed phpmyfaq and it requires php5-zip.  Dead in the water on this install until I can get this working.

Rather than post irrelevant install details, please let me know what additional information (if any) you need.

Any help would be greatly appreciated.

Thank you
Comment 1 Jason Unovitch freebsd_committer freebsd_triage 2015-07-11 02:49:12 UTC
(In reply to hop from comment #0)
The PHP versions must match.

Either:
pkg install php56-zip
# or #
cd /usr/ports/archivers/php56-zip && make install
Comment 2 hop 2015-07-11 17:24:12 UTC
Jason - Yikesss... of course it needs to be the same version.  My apologies for creating such a stupid ticket.  At any rate - thanks! for the sanity check and the rapid response.

Installed as operating as expected.

See ya
Brian