Bug #80197 [NEW]: implicit declaration of function 'magic_stream' is invalid

From: Date: Wed, 07 Oct 2020 11:45:20 +0000
Subject: Bug #80197 [NEW]: implicit declaration of function 'magic_stream' is invalid
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229442@lists.php.net to get a copy of this message
From: mkoula Operating system: macOS Catalina 10.15.7 PHP version: 8.0.0rc1 Package: PHP options/info functions Bug Type: Bug Bug description:implicit declaration of function 'magic_stream' is invalid Description: ------------ I previously compiled 8.0.0beta3 and worked fine. Today I run the same configuration on 8.0.0rc1 and configure went through fine and then when I ran make command it died with the message: /Users/mIREK/compile/php8/php-8.0.0rc1/ext/fileinfo/fileinfo.c:429:24: error: implicit declaration of function 'magic_stream' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ret_val = (char *) magic_stream(magic, stream); ^ /Users/mIREK/compile/php8/php-8.0.0rc1/ext/fileinfo/fileinfo.c:429:24: note: did you mean 'magic_setparam'? /opt/local/include/magic.h:153:5: note: 'magic_setparam' declared here int magic_setparam(magic_t, int, const void *); ^ /Users/mIREK/compile/php8/php-8.0.0rc1/ext/fileinfo/fileinfo.c:429:15: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] ret_val = (char *) magic_stream(magic, stream); ^ /Users/mIREK/compile/php8/php-8.0.0rc1/ext/fileinfo/fileinfo.c:477:25: error: implicit declaration of function 'magic_stream' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ret_val = (char *)magic_stream(magic, stream); ^ /Users/mIREK/compile/php8/php-8.0.0rc1/ext/fileinfo/fileinfo.c:477:17: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] ret_val = (char *)magic_stream(magic, stream); ^ 2 warnings and 2 errors generated. make: *** [ext/fileinfo/fileinfo.lo] Error 1 As a configure I used this, which for beta worked fine: ./configure \ --prefix=/opt/local \ --sysconfdir=/opt/local/php80 \ --program-suffix=80 \ --with-config-file-path=/opt/local/etc/php80 \ --with-config-file-scan-dir=/opt/local/etc/php80/conf.d \ --enable-bcmath \ --enable-calendar \ --enable-exif \ --enable-ftp \ --enable-fpm \ --enable-gd \ --enable-intl \ --enable-mbregex \ --enable-mbstring \ --enable-mysqlnd \ --enable-pcntl \ --enable-soap \ --enable-sockets \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --enable-opcache \ --with-curl \ --with-fpm-user=_www \ --with-fpm-group=_www \ --with-freetype \ --with-iconv=/opt/local \ --with-libxml \ --with-jpeg \ --with-layout=GNU \ --with-mysql-sock=/tmp/mysql.sock \ --with-openssl \ --with-pdo-mysql=mysqlnd \ --with-pdo-pgsql=/opt/local/lib/postgresql12 \ --with-pdo-sqlite \ --with-pgsql=/opt/local/lib/postgresql12 \ --with-pic \ --with-sqlite3 \ --with-webp \ --with-xsl \ --with-zip \ --with-zlib -- Edit bug report at https://bugs.php.net/bug.php?id=80197&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80197&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80197&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80197&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80197&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80197&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80197&r=support Expected behavior: https://bugs.php.net/fix.php?id=80197&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80197&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80197&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80197&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80197&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80197&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80197&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80197&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80197&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80197&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80197&r=mysqlcfg

« previous php.bugs (#229442) next »