php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25765 main/reentrancy.c:192: too few arguments to function `readdir_r'
Submitted: 2003-10-06 14:46 UTC Modified: 2003-10-06 18:13 UTC
From: sweede at insightbb dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.3 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2003-10-06 14:46 UTC] sweede at insightbb dot com
Description:
------------
/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/main/reentrancy.c: In function `php_readdir_r':
/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/main/reentrancy.c:192: too few arguments to function `readdir_r'
make: *** [main/reentrancy.lo] Error 1


php config.nice; 
CFLAGS='-march=pentium3 -O3 -pipe' \
CXXFLAGS='-march=pentium3 -O3 -pipe' \
LIBS=' -lxmlparse -lxmltok' \
CC='gcc' \
CXX='g++' \
'./configure' '--prefix=/usr' '--host=i686-pc-linux-gnu' \
'--mandir=/usr/share/man' '--infodir=/usr/share/info' \
'--datadir=/usr/share' '--sysconfdir=/etc' \
'--localstatedir=/var/lib' '--without-readline' \
'--with-apxs=/usr/sbin/apxs' '--with-ndbm' \
'--with-db4=/usr' '--with-mcrypt=/usr' \
'--with-mhash' '--with-ming=/usr' \
'--with-swf=/usr' '--with-mcal=/usr' \
'--without-pgsql' '--with-snmp' \
'--enable-ucd-snmp-hack' '--with-pdflib=/usr' \
'--with-gd' '--enable-gd-native-ttf' \
'--with-png-dir=/usr' '--with-jpeg' \
'--with-jpeg-dir=/usr' '--enable-exif' \
'--with-tiff-dir=/usr' '--with-mysql=/usr' \
'--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-ttf' '--with-t1lib' \
'--with-gettext' '--without-qtdom' \
'--with-pspell' '--with-openssl' \
'--with-imap' '--with-ldap' \
'--with-dom' '--with-dom-xslt' \
'--with-dom-exslt' '--without-kerberos' \
'--with-pam' '--disable-memory-limit' \
'--disable-ipv6' '--with-curlwrappers' \
'--with-curl' '--enable-dbx' \
'--with-imap-ssl' '--with-zlib' \
'--with-zlib-dir=/usr/lib' '--with-sablot=/usr' \
'--enable-xslt' '--with-xslt-sablot' \
'--with-xmlrpc' '--enable-wddx' \
'--with-xml' '--enable-mbstring=all' \
'--enable-mbregex' '--with-bz2' \
'--with-crack' '--with-cdb' \
'--enable-bcmath' '--enable-calendar' \
'--enable-dbase' '--enable-filepro' \
'--enable-ftp' '--with-mime-magic' \
'--enable-sockets' '--enable-sysvsem' \
'--enable-sysvshm' '--enable-sysvipc' \
'--with-iconv' '--enable-shmop' \
'--enable-dio' '--enable-inline-optimization' \
'--enable-track-vars' '--enable-trans-sid' \
'--enable-versioning' '--with-config-file-path=/etc/php/apache1-php4' "$@"


 gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs
Configured with: /var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext
Thread model: posix
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)

glibc 2.3.2 

I have recompiled glibc, gcc with no avail.

The only possible solution involved adding &result to line 192 of reentrancy.c , the compile finished correctly with this warning 

/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/main/reentrancy.c: In function `php_readdir_r':
/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/main/reentrancy.c:192: warning: passing arg 3 of `readdir_r' from incompatible pointer type



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-06 16:27 UTC] sweede at insightbb dot com
the snapshot appears to compile correctly now with the same configure line as above.

Any idea what would of caused this ?
 [2003-10-06 18:13 UTC] sniper@php.net
Apparently fixed then.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 29 06:00:02 2025 UTC