php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71801 ps doesn't not compile
Submitted: 2016-03-11 17:06 UTC Modified: 2021-11-28 04:22 UTC
Votes:6
Avg. Score:4.2 ± 0.7
Reproduced:6 of 6 (100.0%)
Same Version:2 (33.3%)
Same OS:3 (50.0%)
From: rcybaniak at evertz dot com Assigned: steinm (profile)
Status: No Feedback Package: ps (PECL)
PHP Version: 7.0.4 OS: CentOS 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rcybaniak at evertz dot com
New email:
PHP Version: OS:

 

 [2016-03-11 17:06 UTC] rcybaniak at evertz dot com
Description:
------------
Using gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)

make produces this output:

/bin/sh /tmp/pear/install/ps-1.3.7/libtool --mode=compile cc  -I. -I/tmp/pear/install/ps-1.3.7 -DPHP_ATOM_INC -I/tmp/pear/install/ps-1.3.7/include -I/tmp/pear/install/ps-1.3.7/main -I/tmp/pear/install/ps-1.3.7 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/install/ps-1.3.7/ps.c -o ps.lo 
libtool: compile:  cc -I. -I/tmp/pear/install/ps-1.3.7 -DPHP_ATOM_INC -I/tmp/pear/install/ps-1.3.7/include -I/tmp/pear/install/ps-1.3.7/main -I/tmp/pear/install/ps-1.3.7 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/ps-1.3.7/ps.c  -fPIC -DPIC -o .libs/ps.o
/tmp/pear/install/ps-1.3.7/ps.c:188:27: error: unknown type name 'zend_rsrc_list_entry'
  static void _free_ps_doc(zend_rsrc_list_entry *rsrc TSRMLS_DC)
                           ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zm_startup_ps':
/tmp/pear/install/ps-1.3.7/ps.c:296:47: error: '_free_ps_doc' undeclared (first use in this function)
  le_psdoc = zend_register_list_destructors_ex(_free_ps_doc, NULL, "ps document", module_number);
                                               ^
/tmp/pear/install/ps-1.3.7/ps.c:296:47: note: each undeclared identifier is reported only once for each function it appears in
In file included from /tmp/pear/install/ps-1.3.7/ps.c:52:0:
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_set_info':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:332:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_close':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:351:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_begin_page':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:372:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_end_page':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:391:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_set_parameter':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:412:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_get_parameter':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:434:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c:443:24: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
  RETURN_STRING(value, 1);
                        ^
/tmp/pear/install/ps-1.3.7/ps.c:443:2: error: 'RETURN_STRING' undeclared (first use in this function)
  RETURN_STRING(value, 1);
  ^
In file included from /tmp/pear/install/ps-1.3.7/ps.c:52:0:
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_set_value':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:461:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_get_value':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:483:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_show':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:508:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_show2':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:530:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_show_xy':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:552:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_show_xy2':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:575:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_findfont':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:597:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_setfont':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:624:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_rotate':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:644:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_rect':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:664:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_setlinewidth':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:684:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_setoverprintmode':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:704:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_setdash':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:724:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_stroke':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:743:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_fill':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:762:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_fill_stroke':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:781:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_save':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:800:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_restore':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:819:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_lineto':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:839:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_moveto':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:859:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_closepath':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:878:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_closepath_stroke':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:897:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_translate':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:917:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_scale':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:937:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_setlinejoin':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:957:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_setlinecap':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:977:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_setmiterlimit':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:997:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_curveto':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1017:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_show_boxed':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1040:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_set_text_pos':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1060:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_continue_text':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1081:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_stringwidth':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1104:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_string_geometry':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1128:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_setflat':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1151:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_circle':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1171:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_arc':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1191:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_clip':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1270:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_add_bookmark':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1292:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_open_image_file':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1315:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_close_image':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1412:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_place_image':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1431:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_shading':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1454:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_shfill':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1474:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_shading_pattern':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1496:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_add_weblink':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1518:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_add_pdflink':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1541:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_set_border_style':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1563:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_set_border_color':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1583:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_set_border_dash':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1603:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_add_annotation':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1625:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_delete':
/tmp/pear/install/ps-1.3.7/ps.c:1652:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php/Zend/zend_API.h:249) [-Wdeprecated-declarations]
  if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
  ^
/tmp/pear/install/ps-1.3.7/ps.c:1656:2: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default]
  zend_list_delete(Z_LVAL_PP(arg1));
  ^
In file included from /usr/include/php/Zend/zend_API.h:28:0,
                 from /usr/include/php/main/php.h:39,
                 from /tmp/pear/install/ps-1.3.7/ps.c:25:
/usr/include/php/Zend/zend_list.h:59:14: note: expected 'struct zend_resource *' but argument is of type 'int'
 ZEND_API int zend_list_delete(zend_resource *res);
              ^
In file included from /tmp/pear/install/ps-1.3.7/ps.c:52:0:
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_open_file':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1675:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_get_buffer':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1704:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c:1708:40: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
  RETURN_STRINGL((char *)buffer, size, 1);
                                        ^
/tmp/pear/install/ps-1.3.7/ps.c:1708:2: error: 'RETURN_STRINGL' undeclared (first use in this function)
  RETURN_STRINGL((char *)buffer, size, 1);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_setpolydash':
/tmp/pear/install/ps-1.3.7/ps.c:1722:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php/Zend/zend_API.h:249) [-Wdeprecated-declarations]
  if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
  ^
/tmp/pear/install/ps-1.3.7/ps.c:1726:26: error: expected expression before 'PSDoc'
  ZEND_FETCH_RESOURCE(ps, PSDoc *, arg1, -1, "ps document", le_psdoc);
                          ^
/tmp/pear/install/ps-1.3.7/ps.c:1728:2: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default]
  convert_to_array_ex(arg2);
  ^
In file included from /usr/include/php/Zend/zend.h:31:0,
                 from /usr/include/php/main/php.h:35,
                 from /tmp/pear/install/ps-1.3.7/ps.c:25:
/usr/include/php/Zend/zend_types.h:326:38: note: expected 'const struct zval *' but argument is of type 'struct zval **'
 static zend_always_inline zend_uchar zval_get_type(const zval* pz) {
                                      ^
/tmp/pear/install/ps-1.3.7/ps.c:1728:2: warning: passing argument 1 of 'convert_to_array' from incompatible pointer type [enabled by default]
  convert_to_array_ex(arg2);
  ^
In file included from /usr/include/php/Zend/zend.h:341:0,
                 from /usr/include/php/main/php.h:35,
                 from /tmp/pear/install/ps-1.3.7/ps.c:25:
/usr/include/php/Zend/zend_operators.h:249:29: note: expected 'struct zval *' but argument is of type 'struct zval **'
 ZEND_API void ZEND_FASTCALL convert_to_array(zval *op);
                             ^
/tmp/pear/install/ps-1.3.7/ps.c:1729:8: warning: assignment makes pointer from integer without a cast [enabled by default]
  array = Z_ARRVAL_PP(arg2);
        ^
/tmp/pear/install/ps-1.3.7/ps.c:1739:58: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1
   zend_hash_get_current_data(array, (void **) &keydataptr);
                                                          ^
/tmp/pear/install/ps-1.3.7/ps.c:1739:3: error: 'zend_hash_get_current_data' undeclared (first use in this function)
   zend_hash_get_current_data(array, (void **) &keydataptr);
   ^
/tmp/pear/install/ps-1.3.7/ps.c:1741:14: error: 'zval' has no member named 'type'
   if (keydata->type == IS_DOUBLE) {
              ^
/tmp/pear/install/ps-1.3.7/ps.c:1743:21: error: 'zval' has no member named 'type'
   } else if (keydata->type == IS_LONG) {
                     ^
In file included from /tmp/pear/install/ps-1.3.7/ps.c:52:0:
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_open_image':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1833:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_include_file':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1891:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_add_note':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1913:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_add_locallink':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1935:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_add_launchlink':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1956:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_setcolor':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1977:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_makespotcolor':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:1998:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_arcn':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2016:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_begin_pattern':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2092:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_end_pattern':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2114:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_begin_template':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2135:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_end_template':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2154:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_begin_font':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2180:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_end_font':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2207:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_begin_glyph':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2229:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_end_glyph':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2253:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_add_kerning':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2276:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_add_ligature':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2298:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_hyphenate':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2321:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_symbol':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2353:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_symbol_width':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2375:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_symbol_name':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2397:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c:2401:28: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
  RETURN_STRING(glyphname, 1);
                            ^
/tmp/pear/install/ps-1.3.7/ps.c:2401:2: error: 'RETURN_STRING' undeclared (first use in this function)
  RETURN_STRING(glyphname, 1);
  ^
In file included from /tmp/pear/install/ps-1.3.7/ps.c:52:0:
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_glyph_show':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2418:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_glyph_width':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2439:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c: In function 'zif_ps_glyph_list':
/tmp/pear/install/ps-1.3.7/php_ps.h:157:66: error: expected expression before 'PSDoc'
 #define PSDOC_FROM_ZVAL(psdoc, zv)    ZEND_FETCH_RESOURCE(psdoc, PSDoc *, zv, -1, "ps document", le_psdoc)
                                                                  ^
/tmp/pear/install/ps-1.3.7/ps.c:2460:2: note: in expansion of macro 'PSDOC_FROM_ZVAL'
  PSDOC_FROM_ZVAL(ps, &zps);
  ^
/tmp/pear/install/ps-1.3.7/ps.c:2465:4: error: too many arguments to function 'add_index_string'
    add_index_string(return_value, i, glyphlist[i], 0);
    ^
In file included from /usr/include/php/main/php.h:39:0,
                 from /tmp/pear/install/ps-1.3.7/ps.c:25:
/usr/include/php/Zend/zend_API.h:422:14: note: declared here
 ZEND_API int add_index_string(zval *arg, zend_ulong idx, const char *str);
              ^
make: *** [ps.lo] Error 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-13 17:42 UTC] cmb@php.net
> error: unknown type name 'zend_rsrc_list_entry'

Apparently, ps is not yet ready for PHP 7.
 [2020-05-04 15:00 UTC] bhuisman at evertz dot com
Still seeing this issue making pslib against PHP 7.4.5 on CentOS 7 although the error output is not the code attached to this issue but of the marked duplicate #74759.

running: make
/bin/sh /var/tmp/pear-build-rootpA5e6Z/ps-1.4.1/libtool --mode=compile cc  -I. -I/var/tmp/ps -DPHP_ATOM_INC -I/var/tmp/pear-build-rootpA5e6Z/ps-1.4.1/include -I/var/tmp/pear-build-rootpA5e6Z/ps-1.4.1/main -I/var/tmp/ps -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/ps/ps.c -o ps.lo
libtool: compile:  cc -I. -I/var/tmp/ps -DPHP_ATOM_INC -I/var/tmp/pear-build-rootpA5e6Z/ps-1.4.1/include -I/var/tmp/pear-build-rootpA5e6Z/ps-1.4.1/main -I/var/tmp/ps -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/ps/ps.c  -fPIC -DPIC -o .libs/ps.o
In file included from /usr/include/php/Zend/zend.h:27:0,
                 from /usr/include/php/main/php.h:33,
                 from /var/tmp/ps/ps.c:25:
/var/tmp/ps/ps.c: In function 'zif_ps_open_memory_image':
/usr/include/php/Zend/zend_types.h:719:31: error: request for member 'value' in something not a structure or union
 #define Z_RES(zval)     (zval).value.res
                               ^
/usr/include/php/Zend/zend_types.h:720:28: note: in expansion of macro 'Z_RES'
 #define Z_RES_P(zval_p)    Z_RES(*zval_p)
                            ^
/var/tmp/ps/ps.c:1350:42: note: in expansion of macro 'Z_RES_P'
  if ((ps = (PSDoc *) zend_fetch_resource(Z_RES_P(arg1), "ps document", le_psdoc)) == NULL) { RETURN_FALSE; }
                                          ^
/usr/include/php/Zend/zend_types.h:719:31: error: request for member 'value' in something not a structure or union
 #define Z_RES(zval)     (zval).value.res
                               ^
/usr/include/php/Zend/zend_types.h:720:28: note: in expansion of macro 'Z_RES'
 #define Z_RES_P(zval_p)    Z_RES(*zval_p)
                            ^
/var/tmp/ps/ps.c:1356:45: note: in expansion of macro 'Z_RES_P'
  if ((im = (gdImagePtr) zend_fetch_resource(Z_RES_P(arg2), "Image", le_gd)) == NULL) { RETURN_FALSE; }
                                             ^
make: *** [ps.lo] Error 1
ERROR: `make' failed


Seems like it must be some kind of simple pointer fix?
 [2021-11-18 17:34 UTC] cmb@php.net
-Assigned To: +Assigned To: steinm
 [2021-11-18 17:34 UTC] cmb@php.net
Huh, I wonder where the up-to-date source repos is.  Uwe, could
you please clarify?
 [2021-11-19 07:12 UTC] steinm@php.net
Try https://github.com/steinm/ps

The pecl entry hasn't been updated yet
 [2021-11-19 13:26 UTC] cmb@php.net
-Status: Assigned +Status: Feedback
 [2021-11-19 13:26 UTC] cmb@php.net
Thanks!  I have updated the PECL page to point to the repo.

Anyhow, it seems to me this issue has been resolved in the
meantime.  The ps extension builds fine with PHP-7.4 for me.  Or
does anybody still have trouble building the extension?
 [2021-11-28 04:22 UTC] pecl-dev at lists dot php dot net
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.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Nov 26 14:05:54 2022 UTC