Assembla home | Assembla project page
 

PortLog: sys-devel/sparse

http://www.kernel.org/pub/software/devel/sparse/

version 0.4.1 / git master

R5untested
BONEuntested
Haikuunstable

work-in-progress (andreasf) - [Haiku]

Compilation fails:

In file included from /boot/home/sparse-0.4.1/test-lexing.c:18:
/boot/home/sparse-0.4.1/token.h:59: field `name' has incomplete type
/boot/home/sparse-0.4.1/token.h:140: field `data' has incomplete type

Those lines have char name[]; and char data[]; respectively.

Same here:

In file included from /boot/home/sparse-0.4.1/parse.c:23:
/boot/home/sparse-0.4.1/allocate.h:7: field `data' has incomplete type
/boot/home/sparse-0.4.1/lib.c:42: `__GNUC_PATCHLEVEL__' undeclared here (not in a function)

Defining it to 0.

/boot/home/sparse-0.4.1/evaluate.c: In function `usual_conversions':
/boot/home/sparse-0.4.1/evaluate.c:173: `left' redeclared as different kind of symbol
/boot/home/sparse-0.4.1/evaluate.c:527: previous declaration of `left'
/boot/home/sparse-0.4.1/evaluate.c:171: `right' redeclared as different kind ofsymbol
/boot/home/sparse-0.4.1/evaluate.c:527: previous declaration of `right'

Renaming labels to lleft and lright.

Linking fails:

libsparse.a(compat-linux.o): In function `blob_free':
/boot/home/sparse-0.4.1/compat/mmap-blob.c:35: undefined reference to `mprotect'
libsparse.a(compat-linux.o): In function `string_to_ld':
/boot/home/sparse-0.4.1/compat/strtold.c:5: undefined reference to `strtold'

In Makefile comment out CFLAGS += -DDEBUG. In compat/strtold.c I replaced strtold with strtod for now.

Patch

49 tests pass, 8 fail. Failures appear to be due to unexpected error output.