Number: 1180
Title: malloc.c:408: error: return type is an incomplete type
Submitter: Sami Farin
Date: Sat Aug 25 11:40:27 2007
Subsys: Build/Installation
Version: 2.14.1
System: x86-Linux-FC8
Severity: major
Problem:
Does not compile. I have gcc-4.1.2-19 and glibc-2.6-4 on IA32 Fedora.

make[3]: Entering directory `/usr/src/redhat/BUILD/graphviz-2.14.1/lib/vmalloc'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I../../lib/ast -I../../lib/sfio   -O2 -g -march=i386 -mcpu=i686 -ffast-math -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -c -o malloc.lo malloc.c
 gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/ast -I../../lib/sfio -O2 -g -march=i386 -mcpu=i686 -ffast-math -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -c malloc.c  -fPIC -DPIC -o .libs/malloc.o
malloc.c: In function 'mallopt':
malloc.c:368: warning: unused parameter 'cmd'
malloc.c:368: warning: unused parameter 'value'
malloc.c: At top level:
malloc.c:408: error: return type is an incomplete type
malloc.c: In function 'mstats':
malloc.c:410: error: storage size of 'ms' isn't known
malloc.c:421: warning: 'return' with a value, in function returning void
malloc.c:410: warning: unused variable 'ms'
make[3]: *** [malloc.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/graphviz-2.14.1/lib/vmalloc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/graphviz-2.14.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/graphviz-2.14.1'
make: *** [all] Error 2

Comments:
Offending file at http://safari.iki.fi/graphviz-malloc.i
Owner: ellson
Status: *