Asterisk-GUI intallation- C Compiler error

Hi Everyone,
I have an installation of Asterisk 1.4 in Kubuntu 7.10. I tried to install asterisk-gui but failed. I have managed to download it’s svn but I have a problem regarding ./configure because an error occurs. It says C compiler cannot create executables. I looked on the config.log and found this:

Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = markharoldr-laptop
uname -m = i686
uname -r = 2.6.22-14-generic
uname -s = Linux
uname -v = #1 SMP Sun Oct 14 23:05:12 GMT 2007

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games

-----------

Core tests.

-----------

configure:1700: checking build system type
configure:1718: result: i686-pc-linux-gnulibc1
configure:1740: checking host system type
configure:1755: result: i686-pc-linux-gnulibc1
configure:1892: checking for uname
configure:1910: found /bin/uname
configure:1922: result: /bin/uname
configure:2495: checking for gcc
configure:2511: found /usr/bin/gcc
configure:2522: result: gcc
configure:2760: checking for C compiler version
configure:2767: gcc --version >&5
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Copyright © 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2770: $? = 0
configure:2777: gcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: …/src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:2780: $? = 0
configure:2787: gcc -V >&5
gcc: ‘-V’ option must have argument
configure:2790: $? = 1
configure:2813: checking for C compiler default output file name
configure:2840: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2843: $? = 1
configure:2881: result:
configure: failed program was:
| /* confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| /
end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2888: error: C compiler cannot create executables
See `config.log’ for more details.

----------------

Cache variables.

----------------

ac_cv_build=i686-pc-linux-gnulibc1
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnulibc1
ac_cv_path_ac_pt_UNAME=/bin/uname
ac_cv_prog_ac_ct_CC=gcc

-----------------

Output variables.

-----------------

AR=’‘
BASENAME=’'
BUILD_CPU='i686’
BUILD_OS='linux-gnulibc1’
BUILD_PLATFORM='i686-pc-linux-gnulibc1’
BUILD_VENDOR=‘pc’
CC=‘gcc’
CFLAGS=’‘
CPP=’‘
CPPFLAGS=’‘
CXX=’‘
DEFS=’‘
ECHO_C=’‘
ECHO_N=’-n’
ECHO_T=’‘
EXEEXT=’‘
GNU_MAKE=’'
HOST_CPU='i686’
HOST_OS='linux-gnulibc1’
HOST_PLATFORM=‘i686-pc-linux-gnulibc1’
HOST_VENDOR=‘pc’
INSTALL_DATA=’‘
INSTALL_PROGRAM=’‘
INSTALL_SCRIPT=’‘
LD=’‘
LDFLAGS=’‘
LIBOBJS=’‘
LIBS=’‘
LTLIBOBJS=’‘
OBJEXT=’‘
OSARCH=‘linux-gnulibc1’
PACKAGE_BUGREPORT=’‘
PACKAGE_NAME=’‘
PACKAGE_STRING=’‘
PACKAGE_TARNAME=’‘
PACKAGE_VERSION=’‘
PATH_SEPARATOR=’:‘
PBX_OSREV=‘2.6.22-14-generic’
PBX_ZAPTEL=’‘
RANLIB=’‘
SHELL=’/bin/bash’
UNAME=’/bin/uname’
ZAPTEL_INCLUDE=’‘
ZAPTEL_LIB=’‘
ac_ct_CC=‘gcc’
bindir=’${exec_prefix}/bin’
build=‘i686-pc-linux-gnulibc1’
build_alias=’‘
build_cpu=‘i686’
build_os=‘linux-gnulibc1’
build_vendor=‘pc’
datadir=’${datarootdir}‘
datarootdir=’${prefix}/share’
docdir=’${datarootdir}/doc/${PACKAGE}‘
dvidir=’${docdir}‘
exec_prefix=‘NONE’
host=‘i686-pc-linux-gnulibc1’
host_alias=’‘
host_cpu=‘i686’
host_os=‘linux-gnulibc1’
host_vendor=‘pc’
htmldir=’${docdir}‘
includedir=’${prefix}/include’
infodir=’${datarootdir}/info’
libdir=’${exec_prefix}/lib’
libexecdir=’${exec_prefix}/libexec’
localedir=’${datarootdir}/locale’
localstatedir=’/var’
mandir=’${datarootdir}/man’
oldincludedir=’/usr/include’
pdfdir=’${docdir}‘
prefix=‘NONE’
program_transform_name=‘s,x,x,‘
psdir=’${docdir}‘
sbindir=’${exec_prefix}/sbin’
sharedstatedir=’${prefix}/com’
sysconfdir=’/etc’
target_alias=’’

-----------

confdefs.h.

-----------

#define PACKAGE_NAME “”
#define PACKAGE_TARNAME “”
#define PACKAGE_VERSION “”
#define PACKAGE_STRING “”
#define PACKAGE_BUGREPORT “”
#define _GNU_SOURCE 1

configure: exit 77

I am new to Linux and I have no idea what this error means. Is there any version of gcc compiler that I need to install? dependencies?. Hoping for your immediate reply.
Yours,
Mark Rivera