[BusyBox] bunzip problem, texinfo-4.6.tar.bz2

Rob Landley rob at landley.net
Tue Oct 28 21:14:48 UTC 2003


On Tuesday 28 October 2003 14:57, Rob Landley wrote:
> On Tuesday 28 October 2003 09:55, Manuel Novoa III wrote:
> > Glenn,
> >
> > On Tue, Oct 28, 2003 at 10:33:15PM +1100, Glenn McGrath wrote:
> > > Playing around in a busybox build environment, was about to try
> > > texinfo, however it doesnt extract with the new bunzip.
> > >
> > > # bunzip2 texinfo-4.6.tar.bz2
> > > # echo $?
> > > 1
> > >
> > > It works with the official bunzip2, the file in question is.
> > >
> > > # md5sum texinfo-4.6.tar.bz2
> > > d6a771de9e05efd8c1c9152f8b8686d6  texinfo-4.6.tar.bz2
> >
> > I tested this with the bunzip-4.c code I posted and it decompressed
> > the file with no problems.
> >
> > Manuel
>
> I just tested it with the bunzip-4.1.c I sent in, and that worked fine too.
> Maybe there was some kind of strange merge conflict,  lemme download
> busybox cvs and see how that does...

diff -u shows that decompress_bunzip2.c from last night's cvs snapshot and 
bunzip-4.1.c in my slush pile are identical.  (And I extracted busybox with 
my bunzip 4.1 test program)...

Compile, compile, compile...  You know, it might be nice if the dependency 
calculation included libbb someday.  I'm fairly certain that calculating ipv6 
values, syslog_msg_with_name, and whatever the heck "obscure.o" is for, are 
not actually an important part of compiling a version of busybox that only 
includes bunzip functionality.  Oh well...

It worked fine.

cat ../../texinfo-4.6.tar.bz2 | ./busybox bunzip2 | tar tv

Tar didn't complain, and the error return code was 0.

Now let's see about building tar support into busybox...  Ah.  This is 
apparently not yet an option:

gcc -s -Wl,-warn-common -o busybox -Wl,--start-group ./applets/applets.a 
./archival/archival.a ./archival/libunarchive/libunarchive.a 
./coreutils/coreutils.a ./console-tools/console-tools.a 
./debianutils/debianutils.a ./editors/editors.a ./findutils/findutils.a 
./init/init.a ./miscutils/miscutils.a ./modutils/modutils.a 
./networking/networking.a ./networking/libiproute/libiproute.a 
./networking/udhcp/udhcp.a ./procps/procps.a ./loginutils/loginutils.a 
./shell/shell.a ./sysklogd/sysklogd.a ./util-linux/util-linux.a 
./libpwdgrp/libpwdgrp.a ./coreutils/libcoreutils/libcoreutils.a 
./libbb/libbb.a  -Wl,--end-group
./archival/libunarchive/libunarchive.a(get_header_tar_bz2.o)(.text+0xd): In 
function `get_header_tar_bz2':
: undefined reference to `BZ2_bzReadOpen'
./archival/libunarchive/libunarchive.a(get_header_tar_bz2.o)(.text+0x14): In 
function `get_header_tar_bz2':
: undefined reference to `read_bz2'
./archival/libunarchive/libunarchive.a(get_header_tar_bz2.o)(.text+0x35): In 
function `get_header_tar_bz2':
: undefined reference to `BZ2_bzReadClose'
collect2: ld returned 1 exit status
make: *** [busybox] Error 1

Rob




More information about the busybox mailing list