[pocket-linux] Error compiling bash 3.0
Ricardo Oliveira
picaoao at gmail.com
Mon Feb 6 09:54:45 PST 2006
Greetings,
I'm following the "Pocket PC Linux Guide" and I've got stuck when I began
the process of building bash.
I downloaded the source code, and executed:
$ ./configure --enable-static-link --enable-minimal-config
...and no errors where reported.
After that, I ran:
$ make
...and it reported a fatal error:
...
...
gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob
-L./lib/tilde -L./lib/malloc -L./lib/sh -static -static -rdynamic -g -O2 -o
bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o
execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o nojobs.o subst.o
hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o
test.o version.o alias.o array.o arrayfunc.o braces.o bracecomp.o bashhist.o
bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o
pcomplib.o syntax.o xmalloc.o -lbuiltins -lsh -lglob -ltilde -lmalloc
./lib/tilde/libtilde.a(tilde.o): In function `tilde_expand_word':
/home/pica/Desktop/bash-3.0/lib/tilde/tilde.c:350: warning: Using 'getpwnam'
in statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
shell.o: In function `get_current_user_info':
/home/pica/Desktop/bash-3.0/shell.c:1580: warning: Using 'getpwuid' in
statically linked applications requires at runtime the shared libraries from
the glibc version used for linking
/home/pica/Desktop/bash-3.0/shell.c:1596: warning: Using 'endpwent' in
statically linked applications requires at runtime the shared libraries from
the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib/libc.a(malloc.o): In
function `free':
: multiple definition of `free'
./lib/malloc/libmalloc.a(malloc.o):/home/pica/Desktop/bash-3.0/lib/malloc/malloc.c:1209:
first defined here
/usr/bin/ld: Warning: size of symbol `free' changed from 23 in
./lib/malloc/libmalloc.a(malloc.o) to 165 in
/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib/libc.a(malloc.o)
/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib/libc.a(malloc.o): In
function `malloc':
: multiple definition of `malloc'
./lib/malloc/libmalloc.a(malloc.o):/home/pica/Desktop/bash-3.0/lib/malloc/malloc.c:1194:
first defined here
/usr/bin/ld: Warning: size of symbol `malloc' changed from 23 in
./lib/malloc/libmalloc.a(malloc.o) to 419 in
/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib/libc.a(malloc.o)
/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib/libc.a(malloc.o): In
function `realloc':
: multiple definition of `realloc'
./lib/malloc/libmalloc.a(malloc.o):/home/pica/Desktop/bash-3.0/lib/malloc/malloc.c:1202:
first defined here
/usr/bin/ld: Warning: size of symbol `realloc' changed from 31 in
./lib/malloc/libmalloc.a(malloc.o) to 532 in
/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib/libc.a(malloc.o)
collect2: ld returned 1 exit status
make: *** [bash] Error 1
Can you help me finding out where the problem is ?
I know if I try to build bash without static linking, it works.
Thanks,
Ricardo Oliveira.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tastytronic.net/pipermail/pocket-linux/attachments/20060206/e5944abf/attachment.html
More information about the Pocket-Linux
mailing list