Trying to build PHP 4.1.1 on an Ultra-1 and Solaris 5.8 and I keep getting:

reentrancy.c: In function php_readdir_r':
reentrancy.c:130: too few arguments to function
readdir_r'
Error code 1
make: Fatal error: Command failed for target reentrancy.lo'
Current working directory /export/home2/php-4.1.1/main
*** Error code 1
make: Fatal error: Command failed for target
all-recursive'
Current working directory /export/home2/php-4.1.1/main
Error code 1
make: Fatal error: Command failed for target `all-recursive'

My searches keep telling this has been fixed since 4.0.3 or so.
My config command: ./configure --with-axps=/usr/apache/bin/axps

From another post, this might be of value (seems this might be a problem with the config script, what should be changed?)

% grep READDIR configure
#define HAVE_POSIX_READDIR_R 1
#define HAVE_OLD_READDIR_R 1
#define HAVE_READDIR_R

Thanks!

    5 days later

    For others who may see this, I got by this step by changing this line in configure:

    #define HAVE_OLD_READDIR_R 1

    to this:

    #define HAVE_POSIX_READDIR_R 1

    to force it not to use the old style readdir that accepts fewer args.

      Write a Reply...