[CentOS] Compile error on CentOS 4.6

Wed Jun 4 22:08:14 UTC 2008
Dongyoon Lee <dongyoon at gmail.com>

I am installing SPLASH(http://www-flash.stanford.edu/SPLASH/) benchmark
codes on CentOS 4.6. And there is compile error during make..
Here is the error messages. Does it come from the gcc library?  Should I
update the gcc or other library?

[root at localhost barnes]# make BARNES
make: Warning: File `code.C' has modification time 6e+02 s in the future
m4 -s -Ulen -Uindex
/mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null code.C
> code.c
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded
-Winline -Wpointer-arith -Wsign-compare -Wendif-labels code.c
m4 -s -Ulen -Uindex
/mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null
code_io.C > code_io.c
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded
-Winline -Wpointer-arith -Wsign-compare -Wendif-labels code_io.c
m4 -s -Ulen -Uindex
/mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null load.C
> load.c
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded
-Winline -Wpointer-arith -Wsign-compare -Wendif-labels load.c
m4 -s -Ulen -Uindex
/mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null grav.C
> grav.c
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded
-Winline -Wpointer-arith -Wsign-compare -Wendif-labels grav.c
m4 -s -Ulen -Uindex
/mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null
getparam.C > getparam.c
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded
-Winline -Wpointer-arith -Wsign-compare -Wendif-labels getparam.c
m4 -s -Ulen -Uindex
/mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null util.C
> util.c
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded
-Winline -Wpointer-arith -Wsign-compare -Wendif-labels util.c
gcc code.o code_io.o load.o grav.o getparam.o util.o -O3 -pthread
-D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded
-Winline -Wpointer-arith -Wsign-compare -Wendif-labels -o BARNES -lm
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [BARNES] Error 1

FYI, here is the gcc version info.
[root at localhost barnes]# gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080604/a0f27ad5/attachment-0004.html>