From:             semnanweb at gmail dot com
Operating system: debian 10
PHP version:      8.0.2
Package:          fribidi
Bug Type:         Bug
Bug description:fribidi not compile with new version of php

Description:
------------
try to compipe: 

# apt-cache show libfribidi-dev
Package: libfribidi-dev
Source: fribidi
Version: 1.0.5-3.1+deb10u1
Installed-Size: 313
Maintainer: Debian Hebrew Packaging Team
<team+heb...@tracker.debian.org>
Architecture: amd64
Depends: libfribidi0 (= 1.0.5-3.1+deb10u1)
Description: Development files for FreeBidi library
Description-md5: 4dddf6b79d76d215e47387fa37ab5e90
Multi-Arch: same
Homepage: http://www.fribidi.org/
Tag: culture::arabic, culture::hebrew, devel::lang:c, devel::library,
 implemented-in::c, role::devel-lib, works-with::unicode
Section: libdevel
Priority: optional
Filename:
pool/main/f/fribidi/libfribidi-dev_1.0.5-3.1+deb10u1_amd64.deb
Size: 100620
MD5sum: f5f7174eea3664e7d83116c4e2dcb9cd
SHA256:
fe16e4954c6bb2c6fa34968cac6508a4d5cfe87d6429d77fa037217b7008d230

checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash
/tmp/pear/temp/pear-build-defaultuserjzZopr/fribidi-1.2/libtool
--mode=compile cc -I. -I/tmp/pear/temp/fribidi
-I/tmp/pear/temp/pear-build-defaultuserjzZopr/fribidi-1.2/include
-I/tmp/pear/temp/pear-build-defaultuserjzZopr/fribidi-1.2/main
-I/tmp/pear/temp/fribidi -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM
-I/usr/local/include/php/Zend -I/usr/local/include/php/ext
-I/usr/local/include/php/ext/date/lib -I/usr/include/fribidi 
-DHAVE_CONFIG_H  -g -O2    -c /tmp/pear/temp/fribidi/fribidi.c -o
fribidi.lo
mkdir .libs
 cc -I. -I/tmp/pear/temp/fribidi
-I/tmp/pear/temp/pear-build-defaultuserjzZopr/fribidi-1.2/include
-I/tmp/pear/temp/pear-build-defaultuserjzZopr/fribidi-1.2/main
-I/tmp/pear/temp/fribidi -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM
-I/usr/local/include/php/Zend -I/usr/local/include/php/ext
-I/usr/local/include/php/ext/date/lib -I/usr/include/fribidi
-DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/fribidi/fribidi.c  -fPIC -DPIC
-o .libs/fribidi.o
/tmp/pear/temp/fribidi/fribidi.c: In function '_direction_is_validate':
/tmp/pear/temp/fribidi/fribidi.c:106:1: warning: type of 'direction'
defaults to 'int' [-Wimplicit-int]
 _direction_is_validate(direction)
 ^~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c: In function '_charset_is_validate':
/tmp/pear/temp/fribidi/fribidi.c:128:1: warning: type of 'charset'
defaults to 'int' [-Wimplicit-int]
 _charset_is_validate(charset)
 ^~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c: In function 'zif_fribidi_log2vis':
/tmp/pear/temp/fribidi/fribidi.c:191:44: error: expected ')' before
'TSRMLS_CC'
  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sll",
&logical_str, &logical_str_len, &direction, &charset) == FAILURE)
                                            ^~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:191:6: error: too few arguments to
function 'zend_parse_parameters'
  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sll",
&logical_str, &logical_str_len, &direction, &charset) == FAILURE)
      ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
 ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const
char *type_spec, ...);
                      ^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:122:25: error: expected ')' before
'TSRMLS_CC'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown direction."); \
                         ^~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:193:2: note: in expansion of macro
'_validate_direction'
  _validate_direction(direction);
  ^~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:122:3: error: too few arguments to
function 'php_error_docref'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown direction."); \
   ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:193:2: note: in expansion of macro
'_validate_direction'
  _validate_direction(direction);
  ^~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/main/php.h:341:23: note: declared here
 PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type,
const char *format, ...)
                       ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:145:25: error: expected ')' before
'TSRMLS_CC'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown charset."); \
                         ^~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:194:2: note: in expansion of macro
'_validate_charset'
  _validate_charset(charset);
  ^~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:145:3: error: too few arguments to
function 'php_error_docref'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown charset."); \
   ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:194:2: note: in expansion of macro
'_validate_charset'
  _validate_charset(charset);
  ^~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/main/php.h:341:23: note: declared here
 PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type,
const char *format, ...)
                       ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:219:46: error: macro "RETURN_STRINGL"
passed 3 arguments, but takes just 2
  RETURN_STRINGL(visual_str, visual_str_len, 0);
                                              ^
/tmp/pear/temp/fribidi/fribidi.c:219:2: error: 'RETURN_STRINGL'
undeclared (first use in this function)
  RETURN_STRINGL(visual_str, visual_str_len, 0);
  ^~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:219:2: note: each undeclared identifier
is reported only once for each function it appears in
/tmp/pear/temp/fribidi/fribidi.c: In function
'zif_fribidi_charset_info':
/tmp/pear/temp/fribidi/fribidi.c:230:44: error: expected ')' before
'TSRMLS_CC'
  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &charset) ==
FAILURE)
                                            ^~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:230:6: error: too few arguments to
function 'zend_parse_parameters'
  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &charset) ==
FAILURE)
      ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
 ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const
char *type_spec, ...);
                      ^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:145:25: error: expected ')' before
'TSRMLS_CC'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown charset."); \
                         ^~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:232:2: note: in expansion of macro
'_validate_charset'
  _validate_charset(charset);
  ^~~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:145:3: error: too few arguments to
function 'php_error_docref'
   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown charset."); \
   ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:232:2: note: in expansion of macro
'_validate_charset'
  _validate_charset(charset);
  ^~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/main/php.h:341:23: note: declared here
 PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type,
const char *format, ...)
                       ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:237:45: error: macro "add_assoc_string"
passed 4 arguments, but takes just 3
    (char *)fribidi_char_set_name(charset), 1);
                                             ^
/tmp/pear/temp/fribidi/fribidi.c:236:2: error: 'add_assoc_string'
undeclared (first use in this function); did you mean
'add_assoc_string_ex'?
  add_assoc_string(return_value, "name",
  ^~~~~~~~~~~~~~~~
  add_assoc_string_ex
/tmp/pear/temp/fribidi/fribidi.c:239:46: error: macro "add_assoc_string"
passed 4 arguments, but takes just 3
    (char *)fribidi_char_set_title(charset), 1);
                                              ^
/tmp/pear/temp/fribidi/fribidi.c:242:46: error: macro "add_assoc_string"
passed 4 arguments, but takes just 3
     (char *)fribidi_char_set_desc(charset), 1);
                                              ^
/tmp/pear/temp/fribidi/fribidi.c: In function
'zif_fribidi_get_charsets':
/tmp/pear/temp/fribidi/fribidi.c:251:2: error: too many arguments to
function 'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_UTF8,     
"FRIBIDI_CHARSET_UTF8",    1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char
*str);
               ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:252:2: error: too many arguments to
function 'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_ISO8859_6,
"FRIBIDI_CHARSET_8859_6",  1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char
*str);
               ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:253:2: error: too many arguments to
function 'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_ISO8859_8,
"FRIBIDI_CHARSET_8859_8",  1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char
*str);
               ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:254:2: error: too many arguments to
function 'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_CP1255,   
"FRIBIDI_CHARSET_CP1255",  1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char
*str);
               ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:255:2: error: too many arguments to
function 'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_CP1256,   
"FRIBIDI_CHARSET_CP1256",  1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char
*str);
               ^~~~~~~~~~~~~~~~
/tmp/pear/temp/fribidi/fribidi.c:256:2: error: too many arguments to
function 'add_index_string'
  add_index_string(return_value, FRIBIDI_CHAR_SET_CAP_RTL,  
"FRIBIDI_CHARSET_CAP_RTL", 1);
  ^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/fribidi/fribidi.c:27:
/usr/local/include/php/Zend/zend_API.h:466:15: note: declared here
 ZEND_API void add_index_string(zval *arg, zend_ulong index, const char
*str);
               ^~~~~~~~~~~~~~~~
make: *** [Makefile:209: fribidi.lo] Error 1
ERROR: `make' failed


-- 
Edit bug report at https://bugs.php.net/bug.php?id=80760&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80760&r=fixed
Fixed in release:                 
https://bugs.php.net/fix.php?id=80760&r=alreadyfixed
Need backtrace:                   
https://bugs.php.net/fix.php?id=80760&r=needtrace
Need Reproduce Script:            
https://bugs.php.net/fix.php?id=80760&r=needscript
Try newer version:                
https://bugs.php.net/fix.php?id=80760&r=oldversion
Not developer issue:              
https://bugs.php.net/fix.php?id=80760&r=support
Expected behavior:                
https://bugs.php.net/fix.php?id=80760&r=notwrong
Not enough info:                  
https://bugs.php.net/fix.php?id=80760&r=notenoughinfo
Submitted twice:                  
https://bugs.php.net/fix.php?id=80760&r=submittedtwice
register_globals:                 
https://bugs.php.net/fix.php?id=80760&r=globals
PHP version support discontinued: 
https://bugs.php.net/fix.php?id=80760&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80760&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80760&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80760&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80760&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80760&r=nozend
MySQL Configuration Error:        
https://bugs.php.net/fix.php?id=80760&r=mysqlcfg

-- 
PECL development discussion Mailing List (https://pecl.php.net/)
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to