php-h3
php-h3 copied to clipboard
Error on make install Ubuntu 20.04
make install
/bin/bash /var/www/docker/php-h3/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/var/www/docker/php-h3 -DPHP_ATOM_INC -I/var/www/docker/php-h3/include -I/var/www/docker/php-h3/main -I/var/www/docker/php-h3 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -lh3 -std=c99 -c /var/www/docker/php-h3/distance.c -o distance.lo
libtool: compile: cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/var/www/docker/php-h3 -DPHP_ATOM_INC -I/var/www/docker/php-h3/include -I/var/www/docker/php-h3/main -I/var/www/docker/php-h3 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -lh3 -std=c99 -c /var/www/docker/php-h3/distance.c -fPIC -DPIC -o .libs/distance.o
/var/www/docker/php-h3/distance.c: In function ‘zif_h3Distance’:
/var/www/docker/php-h3/distance.c:19:20: warning: implicit declaration of function ‘h3Distance’; did you mean ‘gridDistance’? [-Wimplicit-function-declaration]
19 | int distance = h3Distance(*origin, *h3);
| ^~~~~~~~~~
| gridDistance
/bin/bash /var/www/docker/php-h3/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/var/www/docker/php-h3 -DPHP_ATOM_INC -I/var/www/docker/php-h3/include -I/var/www/docker/php-h3/main -I/var/www/docker/php-h3 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -lh3 -std=c99 -c /var/www/docker/php-h3/h3.c -o h3.lo
libtool: compile: cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/var/www/docker/php-h3 -DPHP_ATOM_INC -I/var/www/docker/php-h3/include -I/var/www/docker/php-h3/main -I/var/www/docker/php-h3 -I/usr/include/php/20180731 -I/usr/include/php/20180731/main -I/usr/include/php/20180731/TSRM -I/usr/include/php/20180731/Zend -I/usr/include/php/20180731/ext -I/usr/include/php/20180731/ext/date/lib -DHAVE_CONFIG_H -g -O2 -lh3 -std=c99 -c /var/www/docker/php-h3/h3.c -fPIC -DPIC -o .libs/h3.o
/var/www/docker/php-h3/h3.c: In function ‘zif_h3FromLong’:
/var/www/docker/php-h3/h3.c:65:60: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
65 | zend_resource *index_resource = zend_register_resource(indexed, le_h3_index);
| ^~~~~~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_h3ToLong’:
/var/www/docker/php-h3/h3.c:79:25: warning: initialization of ‘zend_long’ {aka ‘long int’} from ‘H3Index *’ {aka ‘long unsigned int *’} makes integer from pointer without a cast [-Wint-conversion]
79 | zend_long h3_long = indexed;
| ^~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_geoToH3’:
/var/www/docker/php-h3/h3.c:93:5: error: unknown type name ‘GeoCoord’
93 | GeoCoord location;
| ^~~~~~~~
/var/www/docker/php-h3/h3.c:94:13: error: request for member ‘lat’ in something not a structure or union
94 | location.lat = degsToRads(lat);
| ^
/var/www/docker/php-h3/h3.c:95:13: error: request for member ‘lon’ in something not a structure or union
95 | location.lon = degsToRads(lon);
| ^
/var/www/docker/php-h3/h3.c:97:23: warning: implicit declaration of function ‘geoToH3’; did you mean ‘zif_geoToH3’? [-Wimplicit-function-declaration]
97 | H3Index indexed = geoToH3(&location, resolution);
| ^~~~~~~
| zif_geoToH3
/var/www/docker/php-h3/h3.c:98:60: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
98 | zend_resource *index_resource = zend_register_resource(indexed, le_h3_index);
| ^~~~~~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_h3ToGeoBoundary’:
/var/www/docker/php-h3/h3.c:113:5: error: unknown type name ‘GeoBoundary’; did you mean ‘CellBoundary’?
113 | GeoBoundary boundary;
| ^~~~~~~~~~~
| CellBoundary
/var/www/docker/php-h3/h3.c:114:5: warning: implicit declaration of function ‘h3ToGeoBoundary’; did you mean ‘zif_h3ToGeoBoundary’? [-Wimplicit-function-declaration]
114 | h3ToGeoBoundary(indexed, &boundary);
| ^~~~~~~~~~~~~~~
| zif_h3ToGeoBoundary
/var/www/docker/php-h3/h3.c:120:33: error: request for member ‘numVerts’ in something not a structure or union
120 | for (int v = 0; v < boundary.numVerts; v++) {
| ^
In file included from /usr/include/php/20180731/Zend/zend.h:27,
from /usr/include/php/20180731/main/php.h:34,
from /var/www/docker/php-h3/h3.c:25:
/var/www/docker/php-h3/h3.c:125:46: error: request for member ‘verts’ in something not a structure or union
125 | ZVAL_DOUBLE(&lat, radsToDegs(boundary.verts[v].lat));
| ^
/usr/include/php/20180731/Zend/zend_types.h:751:19: note: in definition of macro ‘ZVAL_DOUBLE’
751 | Z_DVAL_P(__z) = d; \
| ^
/var/www/docker/php-h3/h3.c:126:46: error: request for member ‘verts’ in something not a structure or union
126 | ZVAL_DOUBLE(&lon, radsToDegs(boundary.verts[v].lon));
| ^
/usr/include/php/20180731/Zend/zend_types.h:751:19: note: in definition of macro ‘ZVAL_DOUBLE’
751 | Z_DVAL_P(__z) = d; \
| ^
/var/www/docker/php-h3/h3.c: In function ‘zif_h3ToGeo’:
/var/www/docker/php-h3/h3.c:152:5: error: unknown type name ‘GeoCoord’
152 | GeoCoord center;
| ^~~~~~~~
/var/www/docker/php-h3/h3.c:153:5: warning: implicit declaration of function ‘h3ToGeo’; did you mean ‘zif_h3ToGeo’? [-Wimplicit-function-declaration]
153 | h3ToGeo(indexed, ¢er);
| ^~~~~~~
| zif_h3ToGeo
In file included from /usr/include/php/20180731/Zend/zend.h:27,
from /usr/include/php/20180731/main/php.h:34,
from /var/www/docker/php-h3/h3.c:25:
/var/www/docker/php-h3/h3.c:156:45: error: request for member ‘lat’ in something not a structure or union
156 | ZVAL_DOUBLE(&lat_zval, radsToDegs(center.lat));
| ^
/usr/include/php/20180731/Zend/zend_types.h:751:19: note: in definition of macro ‘ZVAL_DOUBLE’
751 | Z_DVAL_P(__z) = d; \
| ^
/var/www/docker/php-h3/h3.c:157:45: error: request for member ‘lon’ in something not a structure or union
157 | ZVAL_DOUBLE(&lon_zval, radsToDegs(center.lon));
| ^
/usr/include/php/20180731/Zend/zend_types.h:751:19: note: in definition of macro ‘ZVAL_DOUBLE’
751 | Z_DVAL_P(__z) = d; \
| ^
/var/www/docker/php-h3/h3.c: In function ‘zif_h3GetResolution’:
/var/www/docker/php-h3/h3.c:176:22: warning: implicit declaration of function ‘h3GetResolution’; did you mean ‘getResolution’? [-Wimplicit-function-declaration]
176 | int resolution = h3GetResolution(indexed);
| ^~~~~~~~~~~~~~~
| getResolution
/var/www/docker/php-h3/h3.c: In function ‘zif_h3GetBaseCell’:
/var/www/docker/php-h3/h3.c:190:33: warning: implicit declaration of function ‘h3GetBaseCell’; did you mean ‘zif_h3GetBaseCell’? [-Wimplicit-function-declaration]
190 | int base_cell = base_cell = h3GetBaseCell(indexed);
| ^~~~~~~~~~~~~
| zif_h3GetBaseCell
/var/www/docker/php-h3/h3.c: In function ‘zif_stringToH3’:
/var/www/docker/php-h3/h3.c:205:33: error: too few arguments to function ‘stringToH3’
205 | H3Index indexed = (H3Index) stringToH3(str);
| ^~~~~~~~~~
In file included from /var/www/docker/php-h3/h3.c:29:
/usr/local/include/h3/h3api.h:478:18: note: declared here
478 | DECLSPEC H3Error H3_EXPORT(stringToH3)(const char *str, H3Index *out);
| ^~~~~~~~~
/var/www/docker/php-h3/h3.c:208:45: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
208 | index_resource = zend_register_resource(indexed, le_h3_index);
| ^~~~~~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_h3IsValid’:
/var/www/docker/php-h3/h3.c:239:9: warning: implicit declaration of function ‘h3IsValid’; did you mean ‘zif_h3IsValid’? [-Wimplicit-function-declaration]
239 | if (h3IsValid(indexed) == 0) {
| ^~~~~~~~~
| zif_h3IsValid
/var/www/docker/php-h3/h3.c: In function ‘zif_h3IsResClassIII’:
/var/www/docker/php-h3/h3.c:256:9: warning: implicit declaration of function ‘h3IsResClassIII’; did you mean ‘isResClassIII’? [-Wimplicit-function-declaration]
256 | if (h3IsResClassIII(indexed) == 0) {
| ^~~~~~~~~~~~~~~
| isResClassIII
/var/www/docker/php-h3/h3.c: In function ‘zif_h3IsPentagon’:
/var/www/docker/php-h3/h3.c:272:20: warning: implicit declaration of function ‘h3IsPentagon’; did you mean ‘isPentagon’? [-Wimplicit-function-declaration]
272 | int is_valid = h3IsPentagon(indexed);
| ^~~~~~~~~~~~
| isPentagon
/var/www/docker/php-h3/h3.c: In function ‘zif_kRing’:
/var/www/docker/php-h3/h3.c:290:21: warning: implicit declaration of function ‘maxKringSize’ [-Wimplicit-function-declaration]
290 | int arr_count = maxKringSize(k);
| ^~~~~~~~~~~~
/var/www/docker/php-h3/h3.c:294:5: warning: implicit declaration of function ‘kRing’ [-Wimplicit-function-declaration]
294 | kRing(indexed, k, outs);
| ^~~~~
/var/www/docker/php-h3/h3.c:300:66: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
300 | zend_resource *out_resource = zend_register_resource(outs[i], le_h3_index);
| ~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_kRingDistances’:
/var/www/docker/php-h3/h3.c:340:5: warning: implicit declaration of function ‘kRingDistances’; did you mean ‘zif_kRingDistances’? [-Wimplicit-function-declaration]
340 | kRingDistances(*indexed, k, outs, distances);
| ^~~~~~~~~~~~~~
| zif_kRingDistances
/var/www/docker/php-h3/h3.c:347:66: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
347 | zend_resource *out_resource = zend_register_resource(outs[i], le_h3_index);
| ~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_hexRange’:
/var/www/docker/php-h3/h3.c:379:9: warning: implicit declaration of function ‘hexRange’; did you mean ‘zif_hexRange’? [-Wimplicit-function-declaration]
379 | if (hexRange(indexed, k, outs) != 0) {
| ^~~~~~~~
| zif_hexRange
/var/www/docker/php-h3/h3.c:387:66: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
387 | zend_resource *out_resource = zend_register_resource(outs[i], le_h3_index);
| ~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_hexRangeDistances’:
/var/www/docker/php-h3/h3.c:412:9: warning: implicit declaration of function ‘hexRangeDistances’; did you mean ‘zif_hexRangeDistances’? [-Wimplicit-function-declaration]
412 | if (hexRangeDistances(*indexed, k, outs, distances) != 0) {
| ^~~~~~~~~~~~~~~~~
| zif_hexRangeDistances
/var/www/docker/php-h3/h3.c:421:66: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
421 | zend_resource *out_resource = zend_register_resource(outs[i], le_h3_index);
| ~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_hexRanges’:
/var/www/docker/php-h3/h3.c:460:9: warning: implicit declaration of function ‘hexRanges’; did you mean ‘zif_hexRanges’? [-Wimplicit-function-declaration]
460 | if (hexRanges(*indexed, length, k, outs) != 0) {
| ^~~~~~~~~
| zif_hexRanges
/var/www/docker/php-h3/h3.c:468:66: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
468 | zend_resource *out_resource = zend_register_resource(outs[i], le_h3_index);
| ~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_hexRing’:
/var/www/docker/php-h3/h3.c:492:9: warning: implicit declaration of function ‘hexRing’; did you mean ‘zif_hexRing’? [-Wimplicit-function-declaration]
492 | if (hexRing(*indexed, k, outs) != 0) {
| ^~~~~~~
| zif_hexRing
/var/www/docker/php-h3/h3.c:500:66: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
500 | zend_resource *out_resource = zend_register_resource(outs[i], le_h3_index);
| ~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_h3ToParent’:
/var/www/docker/php-h3/h3.c:521:24: warning: implicit declaration of function ‘h3ToParent’; did you mean ‘zif_h3ToParent’? [-Wimplicit-function-declaration]
521 | H3Index h3Parent = h3ToParent(*indexed, parentRes);
| ^~~~~~~~~~
| zif_h3ToParent
/var/www/docker/php-h3/h3.c:523:60: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
523 | zend_resource *index_resource = zend_register_resource(h3Parent, le_h3_index);
| ^~~~~~~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_h3ToChildren’:
/var/www/docker/php-h3/h3.c:538:24: warning: implicit declaration of function ‘maxH3ToChildrenSize’; did you mean ‘cellToChildrenSize’? [-Wimplicit-function-declaration]
538 | int childrenSize = maxH3ToChildrenSize(*indexed, childrenRes);
| ^~~~~~~~~~~~~~~~~~~
| cellToChildrenSize
/var/www/docker/php-h3/h3.c:540:5: warning: implicit declaration of function ‘h3ToChildren’; did you mean ‘zif_h3ToChildren’? [-Wimplicit-function-declaration]
540 | h3ToChildren(*indexed, childrenRes, h3Childrens);
| ^~~~~~~~~~~~
| zif_h3ToChildren
/var/www/docker/php-h3/h3.c:546:80: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
546 | zend_resource *h3Children_resource = zend_register_resource(h3Childrens[i], le_h3_index);
| ~~~~~~~~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_h3Compact’:
/var/www/docker/php-h3/h3.c:589:9: warning: implicit declaration of function ‘compact’ [-Wimplicit-function-declaration]
589 | if (compact(indexed, outs, length) != 0) {
| ^~~~~~~
/var/www/docker/php-h3/h3.c:597:66: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
597 | zend_resource *out_resource = zend_register_resource(outs[i], le_h3_index);
| ~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_uncompact’:
/var/www/docker/php-h3/h3.c:632:27: warning: implicit declaration of function ‘maxUncompactSize’ [-Wimplicit-function-declaration]
632 | int uncompactedSize = maxUncompactSize(indexed, length, uncompactRes);
| ^~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c:634:9: warning: implicit declaration of function ‘uncompact’; did you mean ‘zif_uncompact’? [-Wimplicit-function-declaration]
634 | if (uncompact(indexed, compactedCount, outs, uncompactedSize, uncompactRes) != 0) {
| ^~~~~~~~~
| zif_uncompact
/var/www/docker/php-h3/h3.c:642:66: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
642 | zend_resource *out_resource = zend_register_resource(outs[i], le_h3_index);
| ~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_h3IndexesAreNeighbors’:
/var/www/docker/php-h3/h3.c:694:9: warning: implicit declaration of function ‘h3IndexesAreNeighbors’; did you mean ‘zif_h3IndexesAreNeighbors’? [-Wimplicit-function-declaration]
694 | if (h3IndexesAreNeighbors(*origin, *destination) == 1) {
| ^~~~~~~~~~~~~~~~~~~~~
| zif_h3IndexesAreNeighbors
/var/www/docker/php-h3/h3.c: In function ‘zif_getH3UnidirectionalEdge’:
/var/www/docker/php-h3/h3.c:718:60: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
718 | zend_resource *index_resource = zend_register_resource(index, le_h3_index);
| ^~~~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_h3UnidirectionalEdgeIsValid’:
/var/www/docker/php-h3/h3.c:733:9: warning: implicit declaration of function ‘h3UnidirectionalEdgeIsValid’; did you mean ‘zif_h3UnidirectionalEdgeIsValid’? [-Wimplicit-function-declaration]
733 | if (h3UnidirectionalEdgeIsValid(*edge) == 1) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| zif_h3UnidirectionalEdgeIsValid
/var/www/docker/php-h3/h3.c: In function ‘zif_getOriginH3IndexFromUnidirectionalEdge’:
/var/www/docker/php-h3/h3.c:750:21: warning: implicit declaration of function ‘getOriginH3IndexFromUnidirectionalEdge’; did you mean ‘zif_getOriginH3IndexFromUnidirectionalEdge’? [-Wimplicit-function-declaration]
750 | H3Index index = getOriginH3IndexFromUnidirectionalEdge(*edge);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| zif_getOriginH3IndexFromUnidirectionalEdge
/var/www/docker/php-h3/h3.c:752:60: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
752 | zend_resource *index_resource = zend_register_resource(index, le_h3_index);
| ^~~~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_getDestinationH3IndexFromUnidirectionalEdge’:
/var/www/docker/php-h3/h3.c:767:21: warning: implicit declaration of function ‘getDestinationH3IndexFromUnidirectionalEdge’; did you mean ‘zif_getDestinationH3IndexFromUnidirectionalEdge’? [-Wimplicit-function-declaration]
767 | H3Index index = getDestinationH3IndexFromUnidirectionalEdge(*edge);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| zif_getDestinationH3IndexFromUnidirectionalEdge
/var/www/docker/php-h3/h3.c:769:60: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
769 | zend_resource *index_resource = zend_register_resource(index, le_h3_index);
| ^~~~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_getH3IndexesFromUnidirectionalEdge’:
/var/www/docker/php-h3/h3.c:784:5: warning: implicit declaration of function ‘getH3IndexesFromUnidirectionalEdge’; did you mean ‘zif_getH3IndexesFromUnidirectionalEdge’? [-Wimplicit-function-declaration]
784 | getH3IndexesFromUnidirectionalEdge(*edge, originDestination);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| zif_getH3IndexesFromUnidirectionalEdge
/var/www/docker/php-h3/h3.c:790:93: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
790 | zend_resource *originDestination_resource = zend_register_resource(originDestination[i], le_h3_index);
| ~~~~~~~~~~~~~~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_getH3UnidirectionalEdgesFromHexagon’:
/var/www/docker/php-h3/h3.c:811:5: warning: implicit declaration of function ‘getH3UnidirectionalEdgesFromHexagon’; did you mean ‘zif_getH3UnidirectionalEdgesFromHexagon’? [-Wimplicit-function-declaration]
811 | getH3UnidirectionalEdgesFromHexagon(*edge, edges);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| zif_getH3UnidirectionalEdgesFromHexagon
/var/www/docker/php-h3/h3.c:817:69: warning: passing argument 1 of ‘zend_register_resource’ makes pointer from integer without a cast [-Wint-conversion]
817 | zend_resource *edges_resource = zend_register_resource(edges[i], le_h3_index);
| ~~~~~^~~
| |
| H3Index {aka long unsigned int}
In file included from /usr/include/php/20180731/Zend/zend_API.h:26,
from /usr/include/php/20180731/main/php.h:38,
from /var/www/docker/php-h3/h3.c:25:
/usr/include/php/20180731/Zend/zend_list.h:60:25: note: expected ‘void *’ but argument is of type ‘H3Index’ {aka ‘long unsigned int’}
60 | ZEND_API zend_resource *zend_register_resource(void *rsrc_pointer, int rsrc_type);
| ^~~~~~~~~~~~~~~~~~~~~~
/var/www/docker/php-h3/h3.c: In function ‘zif_getH3UnidirectionalEdgeBoundary’:
/var/www/docker/php-h3/h3.c:838:5: error: unknown type name ‘GeoBoundary’; did you mean ‘CellBoundary’?
838 | GeoBoundary boundary;
| ^~~~~~~~~~~
| CellBoundary
/var/www/docker/php-h3/h3.c:839:5: warning: implicit declaration of function ‘getH3UnidirectionalEdgeBoundary’; did you mean ‘zif_getH3UnidirectionalEdgeBoundary’? [-Wimplicit-function-declaration]
839 | getH3UnidirectionalEdgeBoundary(*edge, &boundary);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| zif_getH3UnidirectionalEdgeBoundary
/var/www/docker/php-h3/h3.c:845:33: error: request for member ‘numVerts’ in something not a structure or union
845 | for (int v = 0; v < boundary.numVerts; v++) {
| ^
In file included from /usr/include/php/20180731/Zend/zend.h:27,
from /usr/include/php/20180731/main/php.h:34,
from /var/www/docker/php-h3/h3.c:25:
/var/www/docker/php-h3/h3.c:850:46: error: request for member ‘verts’ in something not a structure or union
850 | ZVAL_DOUBLE(&lat, radsToDegs(boundary.verts[v].lat));
| ^
/usr/include/php/20180731/Zend/zend_types.h:751:19: note: in definition of macro ‘ZVAL_DOUBLE’
751 | Z_DVAL_P(__z) = d; \
| ^
/var/www/docker/php-h3/h3.c:851:46: error: request for member ‘verts’ in something not a structure or union
851 | ZVAL_DOUBLE(&lon, radsToDegs(boundary.verts[v].lon));
| ^
/usr/include/php/20180731/Zend/zend_types.h:751:19: note: in definition of macro ‘ZVAL_DOUBLE’
751 | Z_DVAL_P(__z) = d; \
| ^
/var/www/docker/php-h3/h3.c: In function ‘zif_hexAreaKm2’:
/var/www/docker/php-h3/h3.c:898:25: warning: implicit declaration of function ‘hexAreaKm2’; did you mean ‘cellAreaKm2’? [-Wimplicit-function-declaration]
898 | double kilometers = hexAreaKm2(res);
| ^~~~~~~~~~
| cellAreaKm2
/var/www/docker/php-h3/h3.c: In function ‘zif_hexAreaM2’:
/var/www/docker/php-h3/h3.c:911:21: warning: implicit declaration of function ‘hexAreaM2’; did you mean ‘cellAreaM2’? [-Wimplicit-function-declaration]
911 | double meters = hexAreaM2(res);
| ^~~~~~~~~
| cellAreaM2
/var/www/docker/php-h3/h3.c: In function ‘zif_edgeLengthKm’:
/var/www/docker/php-h3/h3.c:924:25: warning: implicit declaration of function ‘edgeLengthKm’; did you mean ‘zif_edgeLengthKm’? [-Wimplicit-function-declaration]
924 | double kilometers = edgeLengthKm(res);
| ^~~~~~~~~~~~
| zif_edgeLengthKm
/var/www/docker/php-h3/h3.c: In function ‘zif_edgeLengthM’:
/var/www/docker/php-h3/h3.c:937:21: warning: implicit declaration of function ‘edgeLengthM’; did you mean ‘zif_edgeLengthM’? [-Wimplicit-function-declaration]
937 | double meters = edgeLengthM(res);
| ^~~~~~~~~~~
| zif_edgeLengthM
/var/www/docker/php-h3/h3.c: In function ‘zif_numHexagons’:
/var/www/docker/php-h3/h3.c:950:35: warning: implicit declaration of function ‘numHexagons’; did you mean ‘zif_numHexagons’? [-Wimplicit-function-declaration]
950 | zend_long number_of_indexes = numHexagons(res);
| ^~~~~~~~~~~
| zif_numHexagons
make: *** [Makefile:197: h3.lo] Error 1