As part of studying for the LPIC-1 certification I'm following my guide's example and compiling GNU bash 2.03 from source. I'm aware that there are easier ways to install it, but my intent is to become familiar with the compilation process.
I'm running Ubuntu 8.10 32-bit with all of the latest updates. I've installed build-essential through Synaptic.
I downloaded the package from ftp://ftp.gnu.org/gnu/bash/bash-2.03.tar.gz
and extracted it to a directory under my home folder. I ran ./configure which seemed to complete fine. I then ran make, which came up with the errors below.
How should I troubleshoot this?
make: Entering directory `/home/student/bash-2.03/lib/malloc'
gcc -I. -I../.. -I../.. -I../../lib -DHAVE_CONFIG_H -DSHELL -g -O2 -DRCHECK -Dbotch=programming_error -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -c malloc.c
malloc.c:522: error: conflicting types for malloc
malloc.c: In function free:
malloc.c:645: warning: argument mem doesnt match built-in prototype
malloc.c: At top level:
malloc.c:697: warning: conflicting types for built-in function realloc
malloc.c:799: error: conflicting types for calloc
malloc.c: In function print_malloc_stats:
malloc.c:883: warning: format %12lu expects type long unsigned int, but argument 3 has type u_int32_t
make: *** [malloc.o] Error 1
make: Leaving directory `/home/student/bash-2.03/lib/malloc'
make: *** [lib/malloc/libmalloc.a] Error 1