[BusyBox] tar.c compilation fails
David Morel
david.morel at amakuru.net
Wed Nov 26 14:34:06 UTC 2003
Le mer 26/11/2003 à 15:17, David Morel a écrit :
> Hi,
>
> I can't get to compile busybox (either pre3 or latest cvs snapshot)
> which invariably fails with :
>
> gcc -I./include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wshadow -Os
> -march=i386 -mpreferred-stack-boundary=2 -malign-functions=0
> -malign-jumps=0 -malign-loops=0 -fomit-frame-pointer -D_GNU_SOURCE
> -DNDEBUG -march=i686 -O2 -c -o archival/tar.o archival/tar.c
> archival/tar.c: In function `exclude_file':
> archival/tar.c:329: warning: implicit declaration of function `fnmatch'
> archival/tar.c:330: `FNM_LEADING_DIR' undeclared (first use in this
> function)
> archival/tar.c:330: (Each undeclared identifier is reported only once
> archival/tar.c:330: for each function it appears in.)
> archival/tar.c: In function `tar_main':
> archival/tar.c:773: warning: variable `gzipFlag' might be clobbered by
> `longjmp' or `vfork'
> archival/tar.c:791: warning: variable `gzip' might be clobbered by
> `longjmp' or `vfork'
> make: *** [archival/tar.o] Error 1
>
> gcc -v output:
> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
> gcc version 2.95.4 20011002 (Debian prerelease)
>
> if that's any help
>
> Any clue?
i get it:
FNM_PATHNAME is defined in fnmatch.h but FNM_LEADING_DIR is not, so
function exclude_file fails to build. Removing the --exclude option from
tar solved it.
--
***********************************************
david.morel at amakuru.net
OpenPGP public key: http://www.amakuru.net/dmorel.asc
28192ef126bc871757cb7d97f4a44536
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
Url : http://lists.busybox.net/pipermail/busybox/attachments/20031126/63bcbe09/attachment-0002.pgp
More information about the busybox
mailing list