🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #232506

błedy polecenia pecl install cairo-0.3.2

#232506
From: RM
Date: Tue, 29 Oct 2019 12:24
279 lines
14848 bytes
Przy instalacji PHP-GTK dowiedziałem się że potzrebuję mieć 
zainstalowane rozszerzenie php o nazwie cairo-0.3.2. Wydanie polecenia:
  sudo pecl install cairo-0.3.2
wywala mi błędy, nie wiem co zrobić.


In file included from /tmp/pear/temp/Cairo/cairo.c:34:0:
/tmp/pear/temp/Cairo/php_cairo.h:536:8: error: unknown type name 
‘zend_object_value’
  extern zend_object_value cairo_surface_object_new(zend_class_entry *ce 
TSRMLS_DC);
         ^
In file included from /tmp/pear/temp/Cairo/cairo.c:34:0:
/tmp/pear/temp/Cairo/php_cairo.h:544:8: error: unknown type name 
‘zend_object_value’
  extern zend_object_value cairo_font_face_object_new(zend_class_entry 
*ce TSRMLS_DC);
         ^
/tmp/pear/temp/Cairo/php_cairo.h: In function ‘cairo_context_object_get’:
/tmp/pear/temp/Cairo/php_cairo.h:601:34: warning: implicit declaration 
of function ‘zend_object_store_get_object’ [-Wimplicit-function-declaration]
      cairo_context_object *pobj = zend_object_store_get_object(zobj 
TSRMLS_CC);
                                   ^
/tmp/pear/temp/Cairo/php_cairo.h:601:34: warning: initialization makes 
pointer from integer without a cast [-Wint-conversion]
/tmp/pear/temp/Cairo/php_cairo.h: In function ‘cairo_path_object_get’:
/tmp/pear/temp/Cairo/php_cairo.h:610:31: warning: initialization makes 
pointer from integer without a cast [-Wint-conversion]
      cairo_path_object *pobj = zend_object_store_get_object(zobj 
TSRMLS_CC);
                                ^
/tmp/pear/temp/Cairo/php_cairo.h: In function ‘cairo_pattern_object_get’:
/tmp/pear/temp/Cairo/php_cairo.h:619:34: warning: initialization makes 
pointer from integer without a cast [-Wint-conversion]
      cairo_pattern_object *pobj = zend_object_store_get_object(zobj 
TSRMLS_CC);
                                   ^
/tmp/pear/temp/Cairo/php_cairo.h: In function ‘cairo_matrix_object_get’:
/tmp/pear/temp/Cairo/php_cairo.h:628:33: warning: initialization makes 
pointer from integer without a cast [-Wint-conversion]
      cairo_matrix_object *mobj = zend_object_store_get_object(zobj 
TSRMLS_CC);
                                  ^
/tmp/pear/temp/Cairo/php_cairo.h: In function ‘cairo_surface_object_get’:
/tmp/pear/temp/Cairo/php_cairo.h:637:34: warning: initialization makes 
pointer from integer without a cast [-Wint-conversion]
      cairo_surface_object *pobj = zend_object_store_get_object(zobj 
TSRMLS_CC);
                                   ^
/tmp/pear/temp/Cairo/php_cairo.h: In function ‘cairo_font_face_object_get’:
/tmp/pear/temp/Cairo/php_cairo.h:646:36: warning: initialization makes 
pointer from integer without a cast [-Wint-conversion]
      cairo_font_face_object *pobj = zend_object_store_get_object(zobj 
TSRMLS_CC);
                                     ^
/tmp/pear/temp/Cairo/php_cairo.h: In function 
‘cairo_scaled_font_object_get’:
/tmp/pear/temp/Cairo/php_cairo.h:655:38: warning: initialization makes 
pointer from integer without a cast [-Wint-conversion]
      cairo_scaled_font_object *pobj = zend_object_store_get_object(zobj 
TSRMLS_CC);
                                       ^
/tmp/pear/temp/Cairo/php_cairo.h: In function 
‘cairo_font_options_object_get’:
/tmp/pear/temp/Cairo/php_cairo.h:664:39: warning: initialization makes 
pointer from integer without a cast [-Wint-conversion]
      cairo_font_options_object *pobj = 
zend_object_store_get_object(zobj TSRMLS_CC);
                                        ^
/tmp/pear/temp/Cairo/cairo.c: In function ‘php_cairo_get_ft_error’:
/tmp/pear/temp/Cairo/cairo.c:618:38: warning: initialization discards 
‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   php_cairo_ft_error *current_error = php_cairo_ft_errors;
                                       ^
/tmp/pear/temp/Cairo/cairo.c: In function ‘zif_cairo_version_string’:
/tmp/pear/temp/Cairo/cairo.c:666:41: error: macro "RETURN_STRING" passed 
2 arguments, but takes just 1
   RETURN_STRING(cairo_version_string(), 1);
                                          ^
/tmp/pear/temp/Cairo/cairo.c:666:2: error: ‘RETURN_STRING’ undeclared 
(first use in this function)
   RETURN_STRING(cairo_version_string(), 1);
   ^
/tmp/pear/temp/Cairo/cairo.c:666:2: note: each undeclared identifier is 
reported only once for each function it appears in
/tmp/pear/temp/Cairo/cairo.c: In function ‘zim_Cairo_versionString’:
/tmp/pear/temp/Cairo/cairo.c:681:41: error: macro "RETURN_STRING" passed 
2 arguments, but takes just 1
   RETURN_STRING(cairo_version_string(), 1);
                                          ^
/tmp/pear/temp/Cairo/cairo.c:681:2: error: ‘RETURN_STRING’ undeclared 
(first use in this function)
   RETURN_STRING(cairo_version_string(), 1);
   ^
/tmp/pear/temp/Cairo/cairo.c: In function ‘zif_cairo_available_surfaces’:
/tmp/pear/temp/Cairo/cairo.c:694:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"IMAGE",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:696:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"PNG",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:699:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"PDF",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:702:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"PS",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:705:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"SVG",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:708:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"XLIB",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c: In function ‘zim_Cairo_availableSurfaces’:
/tmp/pear/temp/Cairo/cairo.c:731:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"IMAGE",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:733:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"PNG",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:736:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"PDF",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:739:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"PS",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:742:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"SVG",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:745:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"XLIB",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:754:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"RECORDING",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c: In function ‘zif_cairo_available_fonts’:
/tmp/pear/temp/Cairo/cairo.c:769:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"FREETYPE",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:778:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"USER",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c: In function ‘zim_Cairo_availableFonts’:
/tmp/pear/temp/Cairo/cairo.c:796:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"FREETYPE",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c:805:2: error: too many arguments to 
function ‘add_next_index_string’
   add_next_index_string(return_value,"USER",1);
   ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                  from /tmp/pear/temp/Cairo/cairo.c:32:
/usr/include/php/20151012/Zend/zend_API.h:433:14: note: declared here
  ZEND_API int add_next_index_string(zval *arg, const char *str);
               ^
/tmp/pear/temp/Cairo/cairo.c: In function ‘zif_cairo_status_to_string’:
/tmp/pear/temp/Cairo/cairo.c:820:49: error: macro "RETURN_STRING" passed 
2 arguments, but takes just 1
   RETURN_STRING(cairo_status_to_string(status), 1);
                                                  ^
/tmp/pear/temp/Cairo/cairo.c:820:2: error: ‘RETURN_STRING’ undeclared 
(first use in this function)
   RETURN_STRING(cairo_status_to_string(status), 1);
   ^
/tmp/pear/temp/Cairo/cairo.c: In function ‘zim_Cairo_statusToString’:
/tmp/pear/temp/Cairo/cairo.c:838:49: error: macro "RETURN_STRING" passed 
2 arguments, but takes just 1
   RETURN_STRING(cairo_status_to_string(status), 1);
                                                  ^
/tmp/pear/temp/Cairo/cairo.c:838:2: error: ‘RETURN_STRING’ undeclared 
(first use in this function)
   RETURN_STRING(cairo_status_to_string(status), 1);
   ^
/tmp/pear/temp/Cairo/cairo.c: In function ‘zm_startup_cairo’:
/tmp/pear/temp/Cairo/cairo.c:1220:65: error: ‘ZEND_ACC_FINAL_CLASS’ 
undeclared (first use in this function)
   cairo_ce_cairo->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | 
ZEND_ACC_FINAL_CLASS;
                                                                  ^
Makefile:194: polecenia dla obiektu 'cairo.lo' nie powiodły się
make: *** [cairo.lo] Błąd 1
ERROR: `make' failed
Technical Details
Message-ID: <qp9b2o$2i2i1$1@portraits.wsisiz.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.user-5-173-153-241.play-internet.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.user-5-173-153-241.play-internet.pl!not-for-mail
From: RM <robert_magdziarz@wp.pl>
Newsgroups: pl.comp.lang.php
Subject: błedy polecenia pecl install cairo-0.3.2
Date: Tue, 29 Oct 2019 13:24:55 +0100
Organization: http://www.wit.edu.pl
Message-ID: <qp9b2o$2i2i1$1@portraits.wsisiz.edu.pl>
Mime-Version: 1.0
Injection-Date: Tue, 29 Oct 2019 12:24:56 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="user-5-173-153-241.play-internet.pl:5.173.153.241"; logging-data="2689601"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
X-Mozilla-News-Host: news://news.icp.pl:119
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit