[MacPorts] #71488: php83-rar: rararch.c:547:12: error: conflicting types for 'rararch_count_elements'

MacPorts noreply at macports.org
Sun Dec 8 05:08:45 UTC 2024


#71488: php83-rar: rararch.c:547:12: error: conflicting types for
'rararch_count_elements'
---------------------------+-----------------------
 Reporter:  slightlybeige  |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:  2.10.5
 Keywords:                 |       Port:  php83-rar
---------------------------+-----------------------
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_php_php-
 rar/php83-rar/work/rar-4.2.0/rararch.c:547:12: error: conflicting types
 for 'rararch_count_elements'
   547 | static int rararch_count_elements(handler_this_t *object, long
 *count TSRMLS_DC)
       |            ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_php_php-
 rar/php83-rar/work/rar-4.2.0/rararch.c:109:26: note: previous declaration
 is here
   109 | static ZEND_RESULT_CODE *rararch_count_elements(handler_this_t
 *object, long *count TSRMLS_DC);
       |                          ^
 1 error generated.


 ----

 I was able to get the package to build by changing:
 static int rararch_count_elements(handler_this_t *object, long *count
 TSRMLS_DC)
 to:
 static int rararch_count_elements(handler_this_t *object, zend_long *count
 TSRMLS_DC)

 on lines 109 and 547 of
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_php_php-
 rar/php83-rar/work/rar-4.2.0/rararch.c

-- 
Ticket URL: <https://trac.macports.org/ticket/71488>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list