php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46509 make: Fatal error: Command failed for target `main/reentrancy.lo'
Submitted: 2008-11-06 15:18 UTC Modified: 2008-11-07 15:01 UTC
From: jangh at bhphotovideo dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.6 OS: Solaris 5.10 Generic_137111-03
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jangh at bhphotovideo dot com
New email:
PHP Version: OS:

 

 [2008-11-06 15:18 UTC] jangh at bhphotovideo dot com
Description:
------------
Hello.

Trying to compile php-5.2.6
I am using gcc version 3.4.6

configure was done without any options.
And was completed.

make fails with following error.

/tmp/php-5.2.6/main/reentrancy.c: In function `php_ctime_r':
/tmp/php-5.2.6/main/reentrancy.c:63: error: too many arguments to function `ctime_r'
/tmp/php-5.2.6/main/reentrancy.c: In function `php_asctime_r':
/tmp/php-5.2.6/main/reentrancy.c:70: error: too many arguments to function `asctime_r'
/tmp/php-5.2.6/main/reentrancy.c: In function `php_readdir_r':
/tmp/php-5.2.6/main/reentrancy.c:139: error: too few arguments to function `readdir_r'
*** Error code 1
make: Fatal error: Command failed for target `main/reentrancy.lo'



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-06 18:03 UTC] jani@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #40310
 [2008-11-07 15:01 UTC] jangh at bhphotovideo dot com
I went to check Bug #40310. It is not the same error as what I have.
Bug #40310 is related to library files and mysql.
And there was no resolution to this bug ID.

My compilation used configure without any options and still fails.

Here's the result I got when used --disable-all option

# ./configure --disable-all

# make test
/bin/sh /tmp/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/standard/ -I/tmp/php-5.2.6/ext/standard/ -DPHP_ATOM_INC -I/tmp/php-5.2.6/include -I/tmp/php-5.2.6/main -I/tmp/php-5.2.6 -I/tmp/php-5.2.6/ext/date/lib -I/tmp/php-5.2.6/TSRM -I/tmp/php-5.2.6/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g -O2  -c /tmp/php-5.2.6/ext/standard/info.c -o ext/standard/info.lo
/bin/sh /tmp/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc  -Imain/ -I/tmp/php-5.2.6/main/ -DPHP_ATOM_INC -I/tmp/php-5.2.6/include -I/tmp/php-5.2.6/main -I/tmp/php-5.2.6 -I/tmp/php-5.2.6/ext/date/lib -I/tmp/php-5.2.6/TSRM -I/tmp/php-5.2.6/Zend  -D_POSIX_PTHREAD_SEMANTICS  -g -O2  -c /tmp/php-5.2.6/main/reentrancy.c -o main/reentrancy.lo
/tmp/php-5.2.6/main/reentrancy.c: In function `php_ctime_r':
/tmp/php-5.2.6/main/reentrancy.c:63: error: too many arguments to function `ctime_r'
/tmp/php-5.2.6/main/reentrancy.c: In function `php_asctime_r':
/tmp/php-5.2.6/main/reentrancy.c:70: error: too many arguments to function `asctime_r'
/tmp/php-5.2.6/main/reentrancy.c: In function `php_readdir_r':
/tmp/php-5.2.6/main/reentrancy.c:139: error: too few arguments to function `readdir_r'
*** Error code 1
make: Fatal error: Command failed for target `main/reentrancy.lo'
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 20:01:35 2025 UTC