even if i remove -Werror
mkdir lubheap/posix/.libs
gcc -DHAVE_CONFIG_H -I. -I. -ansi -pedantic -Wall
-D_POSIX_C_SOURCE=199309 -g -O2 -MT
lubheap/posix/sysheap.lo -MD -MP -MF
lubheap/posix/.deps/sysheap.Tpo -c
lubheap/posix/sysheap.c -fPIC -DPIC -o
lubheap/posix/.libs/sysheap.o
lubheap/posix/sysheap.c: In function
`sysheap_segment_alloc':
lubheap/posix/sysheap.c:55: warning: implicit
declaration of function `sbrk'
lubheap/posix/sysheap.c:55: warning: return makes
pointer from integer without a cast
lubheap/posix/sysheap.c: At top level:
lubheap/posix/sysheap.c:292: error: conflicting types
for `valloc'
/usr/include/stdlib.h:186: error: previous declaration
of `valloc'
*** Error code 1
Stop in /usr/firewall/src/clish-0.7.1.
*** Error code 1
the fix is obvious: to remove (make conditiomal) valloc
since it is obsoleted in most modern systems.
-lpthread is also required to link test/heap.
and there is one suggestion: make static binary as an
option. it is sometimes desirable to run in chroot, etc
etc.