[BusyBox] zlib: conflicting types

Nick Fedchik fnm at fusion.ukrsat.com
Sat Mar 15 05:45:03 UTC 2003


I try to port cramfs tools to BusyBox.
Problem:

# make
gcc -I../include -Wall -Wstrict-prototypes -Wshadow -Os -march=i386
-mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0
-falign-loops=0 -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG     -c
-o ../util-linux/fsck_cram.o ../util-linux/fsck_cram.c
In file included from ../include/busybox.h:43,
                 from ../util-linux/fsck_cram.c:65:
../include/libbb.h:233: conflicting types for `uncompress'
/usr/include/zlib.h:639: previous declaration of `uncompress'
../include/libbb.h:234: conflicting types for `inflate'
/usr/include/zlib.h:314: previous declaration of `inflate'
../util-linux/fsck_cram.c: In function `uncompress_block':
../util-linux/fsck_cram.c:333: warning: passing arg 1 of `inflate' makes
integer from pointer without a cast
make: *** [../util-linux/fsck_cram.o] Error 1


and

# gcc -E fsck_cram.c -I ../include | grep inflate
...
# 314 "/usr/include/zlib.h" 3
extern int inflate (z_streamp strm, int flush);
...
# 89 "../include/libbb.h"
...
extern int inflate(int in, int out);


The fsck_cram.c code has only "busybox.h" added.

Any suggestions?

-- 
Nick Fedchik, FNM3-RIPE(UANIC)
Internet Dept./ISP UkrSat, Kiev, Ukraine



More information about the busybox mailing list