Bug#977658: mapserver: FTBFS with php8.0

Bas Couwenberg sebastic at xs4all.nl
Fri Dec 18 10:21:21 GMT 2020


Source: mapserver
Version: 7.6.2-1
Severity: important
Tags: ftbfs upstream
Control: block 976811 by -1
Control: forwarded -1 https://github.com/MapServer/MapServer/issues/6201

Dear Maintainer,

Your package FTBFS with php8.0 from experimental:

 In file included from /build/mapserver-7.6.2/mapscript/php/mapscript_error.c:32:
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:783:95: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   783 |                                    void *internal_object, MAPSCRIPT_ZVAL_P php_object_storage TSRMLS_DC);
       |                                                                                               ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:784:94: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   784 | extern void mapscript_create_color(colorObj *color, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                              ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:785:95: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   785 | extern void mapscript_create_rect(rectObj *rect, parent_object php_parent, zval *return_value TSRMLS_DC);
       |                                                                                               ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:786:106: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   786 | extern void mapscript_create_hashtable(hashTableObj *hashtable, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                                          ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:787:94: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   787 | extern void mapscript_create_label(labelObj *label, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                              ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:788:94: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   788 | extern void mapscript_create_style(styleObj *style, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                              ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:789:97: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   789 | extern void mapscript_create_symbol(symbolObj *symbol, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                                 ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:790:94: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   790 | extern void mapscript_create_class(classObj *class, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                              ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:798:46: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   798 |     parent_object parent, zval *return_value TSRMLS_DC);
       |                                              ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:800:78: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   800 |                                     parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                              ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:801:103: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   801 | extern void mapscript_create_scalebar(scalebarObj *scalebar, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                                       ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:802:87: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   802 | extern void mapscript_create_owsrequest(cgiRequestObj *cgirequest, zval *return_value TSRMLS_DC);
       |                                                                                       ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:803:72: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   803 | extern void mapscript_create_image(imageObj *image, zval *return_value TSRMLS_DC);
       |                                                                        ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:804:88: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   804 | extern void mapscript_create_web(webObj *web, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                        ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:805:97: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   805 | extern void mapscript_create_legend(legendObj *legend, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                                 ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:806:115: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   806 | extern void mapscript_create_outputformat(outputFormatObj *outputformat, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                                                   ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:807:103: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   807 | extern void mapscript_create_querymap(queryMapObj *querymap, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                                       ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:808:96: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   808 | extern void mapscript_create_grid(graticuleObj *grid, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                                ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:809:72: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   809 | extern void mapscript_create_error(errorObj *error, zval *return_value TSRMLS_DC);
       |                                                                        ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:810:115: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   810 | extern void mapscript_create_referencemap(referenceMapObj *referenceMap, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                                                   ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:811:94: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   811 | extern void mapscript_create_point(pointObj *point, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                              ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:813:82: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   813 |                                         parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                  ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:814:91: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   814 | extern void mapscript_create_line(lineObj *line, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                           ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:815:123: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   815 | extern void mapscript_create_shape(shapeObj *shape, parent_object parent, php_layer_object *php_layer, zval *return_value TSRMLS_DC);
       |                                                                                                                           ^~~~~~~~~
 In file included from /build/mapserver-7.6.2/mapscript/php/mapscript_error.c:32:
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:816:84: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   816 | extern void mapscript_create_shapefile(shapefileObj *shapefile, zval *return_value TSRMLS_DC);
       |                                                                                    ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:817:94: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   817 | extern void mapscript_create_layer(layerObj *layer, parent_object parent, zval *return_value TSRMLS_DC);
       |                                                                                              ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:818:66: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   818 | extern void mapscript_create_map(mapObj *map, zval *return_value TSRMLS_DC);
       |                                                                  ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:819:104: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   819 | extern void mapscript_create_cluster(clusterObj *cluster, parent_object php_parent, zval *return_value TSRMLS_DC);
       |                                                                                                        ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:824:61: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   824 | extern zend_object * mapscript_throw_exception(char *format TSRMLS_DC, ...);
       |                                                             ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:830:70: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   830 | extern zend_object* mapscript_throw_mapserver_exception(char *format TSRMLS_DC, ...);
       |                                                                      ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:834:61: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   834 | extern void mapscript_report_mapserver_error(int error_type TSRMLS_DC);
       |                                                             ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/php_mapscript.h:835:69: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   835 | extern void mapscript_report_php_error(int error_type, char *format TSRMLS_DC, ...);
       |                                                                     ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/mapscript_error.c:41:53: error: expected ';', ',' or ')' before 'TSRMLS_DC'
    41 | zend_object* mapscript_throw_exception(char *format TSRMLS_DC, ...)
       |                                                     ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/mapscript_error.c:56:63: error: expected ';', ',' or ')' before 'TSRMLS_DC'
    56 | zend_object* mapscript_throw_mapserver_exception(char *format TSRMLS_DC, ...)
       |                                                               ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/mapscript_error.c:82:62: error: expected ';', ',' or ')' before 'TSRMLS_DC'
    82 | void mapscript_report_php_error(int error_type, char *format TSRMLS_DC, ...)
       |                                                              ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/mapscript_error.c:93:54: error: expected ';', ',' or ')' before 'TSRMLS_DC'
    93 | void mapscript_report_mapserver_error(int error_type TSRMLS_DC)
       |                                                      ^~~~~~~~~
 /build/mapserver-7.6.2/mapscript/php/mapscript_error.c: In function 'zm_startup_mapscript_error':
 /build/mapserver-7.6.2/mapscript/php/mapscript_error.c:114:101: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRM_H'?
   114 |   mapscript_ce_mapscriptexception = zend_register_internal_class_ex(&ce, zend_exception_get_default(TSRMLS_C));
       |                                                                                                     ^~~~~~~~
       |                                                                                                     TSRM_H
 /build/mapserver-7.6.2/mapscript/php/mapscript_error.c:114:101: note: each undeclared identifier is reported only once for each function it appears in
 /build/mapserver-7.6.2/mapscript/php/mapscript_error.c:114:74: error: too many arguments to function 'zend_exception_get_default'
   114 |   mapscript_ce_mapscriptexception = zend_register_internal_class_ex(&ce, zend_exception_get_default(TSRMLS_C));
       |                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
 In file included from /build/mapserver-7.6.2/mapscript/php/mapscript_error.c:33:
 /usr/include/php/20200930/Zend/zend_exceptions.h:51:28: note: declared here
    51 | ZEND_API zend_class_entry *zend_exception_get_default(void);
       |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

Kind Regards,

Bas



More information about the Pkg-grass-devel mailing list