Trouble with installation from source

Upon issuing the “make” command, I receive the following errors:

kain@iesfnet:~/root$ make
gcc -O2 -pipe -Wall -m64 -fPIC -Iinclude  -pthread -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".o\" -o build/rmkdepend/cppsetup.o -c build/rmkdepend/cppsetup.c
In file included from build/rmkdepend/cppsetup.c:30:
build/rmkdepend/def.h:35:19: error: stdio.h: No such file or directory
build/rmkdepend/def.h:37:20: error: string.h: No such file or directory
build/rmkdepend/def.h:39:19: error: ctype.h: No such file or directory
build/rmkdepend/def.h:40:23: error: sys/types.h: No such file or directory
build/rmkdepend/def.h:41:19: error: fcntl.h: No such file or directory
build/rmkdepend/def.h:42:22: error: sys/stat.h: No such file or directory
build/rmkdepend/def.h:127:20: error: stdlib.h: No such file or directory
build/rmkdepend/cppsetup.c: In function ‘my_if_errors’:
build/rmkdepend/cppsetup.c:149: warning: implicit declaration of function ‘sprintf’
build/rmkdepend/cppsetup.c:149: warning: incompatible implicit declaration of built-in function ‘sprintf’
build/rmkdepend/cppsetup.c:150: warning: implicit declaration of function ‘strlen’
build/rmkdepend/cppsetup.c:150: warning: incompatible implicit declaration of built-in function ‘strlen’
build/rmkdepend/cppsetup.c:151: warning: implicit declaration of function ‘fprintf’
build/rmkdepend/cppsetup.c:151: warning: incompatible implicit declaration of built-in function ‘fprintf’
build/rmkdepend/cppsetup.c:151: error: ‘stderr’ undeclared (first use in this function)
build/rmkdepend/cppsetup.c:151: error: (Each undeclared identifier is reported only once
build/rmkdepend/cppsetup.c:151: error: for each function it appears in.)
build/rmkdepend/cppsetup.c:154: warning: implicit declaration of function ‘putc’
build/rmkdepend/cppsetup.c:160: error: ‘NULL’ undeclared (first use in this function)
build/rmkdepend/cppsetup.c: In function ‘lookup_variable’:
build/rmkdepend/cppsetup.c:178: warning: implicit declaration of function ‘strncpy’
build/rmkdepend/cppsetup.c:178: warning: incompatible implicit declaration of built-in function ‘strncpy’
build/rmkdepend/cppsetup.c:180: error: ‘NULL’ undeclared (first use in this function)
build/rmkdepend/cppsetup.c: In function ‘my_eval_variable’:
build/rmkdepend/cppsetup.c:211: warning: implicit declaration of function ‘isalpha’
build/rmkdepend/cppsetup.c:213: warning: incompatible implicit declaration of built-in function ‘strlen’
build/rmkdepend/cppsetup.c:216: warning: implicit declaration of function ‘strtol’
build/rmkdepend/cppsetup.c:216: error: ‘NULL’ undeclared (first use in this function)
make: *** [build/rmkdepend/cppsetup.o] Error 1

I’m not sure why it can’t find the standard C++ libraries… any help would be appreciated

PS: I’m trying to build it on an AMD64 Kubuntu 5.10 version.

Okay, fixed that problem (issue with the make essentials). Now it looks like there are some X11 components missing, I get this error message:

bin/rmkdepend -R -fx11/src/GX11Gui.d -Y -w 1000 -- -pipe -Wall -m64 -fPIC -Iinclude  -pthread -D__cplusplus -- x11/src/GX11Gui.cxx
g++ -O2 -pipe -Wall -m64 -fPIC -Iinclude  -pthread -DUSEPCH -include precompile.h -o x11/src/GX11Gui.o -c x11/src/GX11Gui.cxx
x11/src/GX11Gui.cxx:41:34: error: X11/extensions/shape.h: No such file or directory
x11/src/GX11Gui.cxx: In member function ‘virtual void TGX11::ShapeCombineMask(Window_t, Int_t, Int_t, Pixmap_t)’:
x11/src/GX11Gui.cxx:2631: error: ‘ShapeBounding’ was not declared in this scope
x11/src/GX11Gui.cxx:2632: error: ‘ShapeSet’ was not declared in this scope
x11/src/GX11Gui.cxx:2632: error: ‘XShapeCombineMask’ was not declared in this scope
make: *** [x11/src/GX11Gui.o] Error 1
rm utils/src/RStl_tmp.cxx utils/src/rootcint_tmp.cxx

Again, any help would be useful. Thanks in advance.[/code]