From:             sweede at insightbb dot com
Operating system: Gentoo Linux
PHP version:      4.3.4RC1
PHP Bug Type:     Compile Failure
Bug description:  main/reentrancy.c:192: too few arguments to function `readdir_r'

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



-- 
Edit bug report at http://bugs.php.net/?id=25765&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25765&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25765&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25765&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25765&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25765&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25765&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25765&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25765&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25765&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25765&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25765&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25765&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25765&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25765&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25765&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25765&r=float

Reply via email to