[...]
gcc -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src
-I/usr/src/redhat/BUILD/emacs-22.0.50/lib-src
-I/usr/src/redhat/BUILD/emacs-22.0.50/lib-src/../src -Wl,-znocombreloc
-L/usr/X11R6/lib -D_BSD_SOURCE -DMAIL_USE_LOCKF -O2 -Wall -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -m32 -march=athlon
/usr/src/redhat/BUILD/emacs-22.0.50/lib-src/emacsclient.c getopt.o getopt1.o
-DVERSION="\"22.0.50\"" -lc -o emacsclient
/usr/src/redhat/BUILD/emacs-22.0.50/lib-src/emacsclient.c:45:15: error: macro
"getcwd" requires 2 arguments, but only 1 given
/usr/src/redhat/BUILD/emacs-22.0.50/lib-src/emacsclient.c:45: error: 'getcwd'
redeclared as different kind of symbol
/usr/include/unistd.h:449: error: previous declaration of 'getcwd' was here
/usr/src/redhat/BUILD/emacs-22.0.50/lib-src/emacsclient.c: In function 'main':
/usr/src/redhat/BUILD/emacs-22.0.50/lib-src/emacsclient.c:458: error: called
object 'getcwd' is not a function
make[1]: *** [emacsclient] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/emacs-22.0.50/lib-src'
make: *** [lib-src] Error 2