ID:               25765
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sweede at insightbb dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: Gentoo Linux
 PHP Version:      4.3.3
 New Comment:

Apparently fixed then.



Previous Comments:
------------------------------------------------------------------------

[2003-10-06 16:27:56] 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 15:13:09] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2003-10-06 15:02:08] sweede at insightbb dot com

I beleive i've found a temp solution.

When i add &result , the compile completes as it should but i get that
warning and php segfaults when using any of the readdir based php
functions.

I removed the &, so it is just result, compiles normally and no longer
segfaults.

Hopefully this bug report will also help others who have similar
problems.

------------------------------------------------------------------------

[2003-10-06 14:48:13] sweede at insightbb dot com

Wrong version, correct one is 4.3.3

------------------------------------------------------------------------

[2003-10-06 14:46:59] 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




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25765&edit=1

Reply via email to