Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whont compile on PHP 7.2! #2

Open
mcarbonneaux opened this issue Aug 22, 2018 · 4 comments
Open

whont compile on PHP 7.2! #2

mcarbonneaux opened this issue Aug 22, 2018 · 4 comments

Comments

@mcarbonneaux
Copy link

mcarbonneaux commented Aug 22, 2018

they whont compile on php 7.2....

 cc -I. -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master -DPHP_ATOM_INC -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/include -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/main -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/main -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/TSRM -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/Zend -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/ext -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/ext/date/lib -DHAVE_CONFIG_H -I/usr/include/imap -c /mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c  -fPIC -DPIC -o .libs/radius.o
 cc -I. -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master -DPHP_ATOM_INC -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/include -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/main -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/main -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/TSRM -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/Zend -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/ext -I/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/ext/date/lib -DHAVE_CONFIG_H -I/usr/include/imap -c /mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radlib.c  -fPIC -DPIC -o .libs/radlib.o
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:52:20: error: unknown type name 'zend_rsrc_list_entry'
 void _radius_close(zend_rsrc_list_entry *rsrc TSRMLS_DC);
                    ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zm_startup_radius':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:129:48: error: '_radius_close' undeclared (first use in this function)
  le_radius = zend_register_list_destructors_ex(_radius_close, NULL, "rad_handle", module_number);
                                                ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:129:48: note: each undeclared identifier is reported only once for each function it appears in
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_close':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:199:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:200:2: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default]
  zend_list_delete(raddesc->id);
  ^
In file included from /mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/Zend/zend_API.h:28:0,
                 from /mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/include/php/main/php.h:39,
                 from /mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:38:
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/TMP/SFR-suhosin-zts-php72-7.2.9-build//product/php/moteur/php-7.2.9-7/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);
              ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_strerror':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:216:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:218:36: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
  RETURN_STRINGL(msg, strlen(msg), 1);
                                    ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:218:2: error: 'RETURN_STRINGL' undeclared (first use in this function)
  RETURN_STRINGL(msg, strlen(msg), 1);
  ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_config':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:234:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_add_server':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:261:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_create_request':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:282:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_put_string':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:307:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_put_int':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:332:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_put_attr':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:359:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_put_addr':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:388:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_put_vendor_string':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:420:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_put_vendor_int':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:445:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_put_vendor_attr':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:472:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_put_vendor_addr':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:500:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_send_request':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:529:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_get_attr':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:553:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:563:65: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
    add_assoc_stringl(return_value, "data", (char *) data, len, 1);
                                                                 ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:563:4: error: 'add_assoc_stringl' undeclared (first use in this function)
    add_assoc_stringl(return_value, "data", (char *) data, len, 1);
    ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_get_tagged_attr_data':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:588:37: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
  RETURN_STRINGL(attr + 1, len - 1, 1);
                                     ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:588:2: error: 'RETURN_STRINGL' undeclared (first use in this function)
  RETURN_STRINGL(attr + 1, len - 1, 1);
  ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_get_vendor_attr':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:631:69: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
   add_assoc_stringl(return_value, "data", (char *) data, data_len, 1);
                                                                     ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:631:3: error: 'add_assoc_stringl' undeclared (first use in this function)
   add_assoc_stringl(return_value, "data", (char *) data, data_len, 1);
   ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_cvt_addr':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:651:46: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
  RETURN_STRINGL(addr_dot, strlen(addr_dot), 1);
                                              ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:651:2: error: 'RETURN_STRINGL' undeclared (first use in this function)
  RETURN_STRINGL(addr_dot, strlen(addr_dot), 1);
  ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_cvt_string':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:685:36: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2
  RETVAL_STRINGL(val, strlen(val), 1);
                                    ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:685:2: error: 'RETVAL_STRINGL' undeclared (first use in this function)
  RETVAL_STRINGL(val, strlen(val), 1);
  ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_salt_encrypt_attr':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:704:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:713:43: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2
  RETVAL_STRINGL(salted.data, salted.len, 1);
                                           ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:713:2: error: 'RETVAL_STRINGL' undeclared (first use in this function)
  RETVAL_STRINGL(salted.data, salted.len, 1);
  ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_request_authenticator':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:730:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:736:29: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
   RETURN_STRINGL(buf, res, 1);
                             ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:736:3: error: 'RETURN_STRINGL' undeclared (first use in this function)
   RETURN_STRINGL(buf, res, 1);
   ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_server_secret':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:752:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:756:43: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
   RETURN_STRINGL(secret, strlen(secret), 1);
                                           ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:756:3: error: 'RETURN_STRINGL' undeclared (first use in this function)
   RETURN_STRINGL(secret, strlen(secret), 1);
   ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_demangle':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:776:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:785:38: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2
   RETVAL_STRINGL((char *) buf, len, 1);
                                      ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:785:3: error: 'RETVAL_STRINGL' undeclared (first use in this function)
   RETVAL_STRINGL((char *) buf, len, 1);
   ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: In function 'zif_radius_demangle_mppe_key':
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:806:31: error: expected expression before 'radius_descriptor'
  ZEND_FETCH_RESOURCE(raddesc, radius_descriptor *, &z_radh, -1, "rad_handle", le_radius);
                               ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:814:39: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2
   RETVAL_STRINGL((char *) buf, dlen, 1);
                                       ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:814:3: error: 'RETVAL_STRINGL' undeclared (first use in this function)
   RETVAL_STRINGL((char *) buf, dlen, 1);
   ^
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c: At top level:
/mnt/distributions/rpmbuilds_ng/build-rhel7/block-php/BUILD/php-radius-master/radius.c:844:20: error: unknown type name 'zend_rsrc_list_entry'
 void _radius_close(zend_rsrc_list_entry *rsrc TSRMLS_DC)
                    ^
@mcarbonneaux
Copy link
Author

in fact i've use the tar ball of 1.3.0 with php7 in place of 1.4.0b1 on the page https://pecl.php.net/package/radius...
if y retrieve the php7 version it's now ok...

@rjma30
Copy link

rjma30 commented May 6, 2019

Hi Sorry, what have you done to make work? Thanks!

@rjma30
Copy link

rjma30 commented May 6, 2019

Please ignore. Figured it out. Thanks!

@micbox
Copy link

micbox commented Feb 20, 2020

After long torments with php radius extenstion install, finally succeeded building the extension via phpbrew/pecl to php 7.3.14.
Short steps:
-- download pecl-compat lib (from https://github.com/flaupretre/pecl-compat.git)
-- copy contents of 'pecl-compat' directory to globally sought header file location, e.g. /usr/include/pecl-compat
-- phpbrew ext install github:LawnGnome/php-radius 1.4.0b1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants