From: Operating system: Solaris 10 PHP version: 5.3.6 Package: Compile Failure Bug Type: Bug Bug description:Error Compiling: too many arguments to function `ctime_r'
Description: ------------ /prog/src/php-5.3.6/main/reentrancy.c: In function `php_ctime_r': /prog/src/php-5.3.6/main/reentrancy.c:63: error: too many arguments to function `ctime_r' /prog/src/php-5.3.6/main/reentrancy.c: In function `php_asctime_r': /prog/src/php-5.3.6/main/reentrancy.c:70: error: too many arguments to function `asctime_r' gmake: *** [main/reentrancy.lo] Error 1 Using gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) on SunOS 5.10 i386 with CFLAGS=-O3 -m64 Following configure options were used, also --disable-all did produce the error. Configure went through without problems. ./configure --prefix=/prog/apps/php-5.3.6 \ --with-config-file-path=/prog/etc/php \ --sysconfdir=/prog/etc/php \ --with-apxs2=/prog/apps/apache-2.2.18/bin/apxs \ --with-ldap=/prog/apps/openldap-2.4.23 \ --with-openssl=/prog/apps/openssl-1.0.0d \ --with-mysql=/prog/apps/mysql-5.5.12 \ --with-mysqli \ --with-pear \ --with-gettext=/prog/apps/gettext \ --with-jpeg-dir=/prog/apps/jpeg-8c \ --with-png-dir=/prog/apps/libpng-1.5.2 \ --with-zlib=/prog/apps/zlib \ --with-zlib-dir=/prog/apps/zlib \ --with-libxml-dir=/prog/apps/libxml2 \ --with-iconv=/prog/apps/libiconv \ --with-gd=/prog/apps/gd \ --with-mcrypt=/prog/apps/libmcrypt \ --with-imap=/prog/apps/imap-2007e \ --with-imap-ssl=/prog/apps/openssl-1.0.0a \ --with-curl=/prog/apps/curl-7.21.6 \ --with-curlwrappers \ --with-pgsql \ --with-pgsql=/usr/postgres/8.3 \ --enable-ftp \ --with-regex=php \ --enable-zip \ --enable-mbstring \ --enable-ctype \ --enable-sysvshm \ --enable-calendar \ --enable-exif \ --enable-gd-native-ttf \ --enable-sockets \ --enable-safe-mode Removing third argument '26' of ctime_r() and asctime_r() in line 63 and 70 fixes this error. -- Edit bug report at http://bugs.php.net/bug.php?id=55014&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=55014&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=55014&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=55014&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=55014&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=55014&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=55014&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=55014&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=55014&r=needscript Try newer version: http://bugs.php.net/fix.php?id=55014&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=55014&r=support Expected behavior: http://bugs.php.net/fix.php?id=55014&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=55014&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=55014&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=55014&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=55014&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=55014&r=dst IIS Stability: http://bugs.php.net/fix.php?id=55014&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=55014&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=55014&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=55014&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=55014&r=mysqlcfg