[pocket-linux] Error compiling bash 3.0

Ricardo Oliveira picaoao at gmail.com
Tue Feb 7 06:54:54 PST 2006


Thanks, that will help. Though I read a few more pages in advance in the
guide, and figured out that the next steps do not require bash to be
compiled statically and by that it's possible to skip the first bash build,
I can always use the pre-compiled file you indicated.

Thanks for the support and quick response,


Ricardo Oliveira



On 2/7/06, David Horton <dhorton at speakeasy.net> wrote:
>
> If it won't compile, try downloading a precompiled binary from
> http://www.happy-monkey.net/architect/bin-pkgs/.  bash-static-2.05a
> will do the trick even though it's an older version.
>
> Dave
>
>
> > -----Original Message-----
> > From: Ricardo Oliveira [mailto:picaoao at gmail.com]
> > Sent: Monday, February 6, 2006 05:54 PM
> > To: pocket-linux at ufo.chicago.il.us
> > Subject: [pocket-linux] Error compiling bash 3.0
> >
> > 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.
> >
>
> _______________________________________________
> Pocket-Linux mailing list
> Pocket-Linux at ufo.chicago.il.us
> http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/pocket-linux
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tastytronic.net/pipermail/pocket-linux/attachments/20060207/3e4d096a/attachment.html


More information about the Pocket-Linux mailing list