PHP build failing readdir_r
too few arguments to function call, expected 3, have 2 readdir_r(dirp, entry);
Some people have reloaded Xcode.
But you only need to execute this command before installation:
Command
export CFLAGS="-Wno-implicit-function-declaration"