|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-10-30 19:40 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 13:00:01 2025 UTC |
make fails with the following error: "reentrancy.c", line 106: prototype mismatch: 2 args passed, 3 expected cc: acomp failed for reentrancy.c *** Error code 1 The bug is in the test program in the configure script. Because the `entry' array is not initialized to zeroes the readdir_r call causes a core dump. A quick fix is to make it a global variable. Here's a patch: *** Oconfigure Sun Oct 15 06:47:10 2000 --- configure Sun Oct 29 12:23:04 2000 *************** *** 6879,6888 **** #include <sys/types.h> #include <dirent.h> main() { DIR *dir; ! char entry[sizeof(struct dirent)+257]; ! struct dirent *pentry = (struct dirent *) &entry; dir = opendir("/"); if (!dir) --- 6879,6888 ---- #include <sys/types.h> #include <dirent.h> + char entry[sizeof(struct dirent)+257]; main() { DIR *dir; ! struct dirent *pentry; dir = opendir("/"); if (!dir)