Number: 1285
Title: malloc.c:408: error: return type is an incomplete type
Submitter: Terry Rankine
Date: Fri Feb 1 00:24:29 2008
Subsys: Build/Installation
Version: 2.16.1
System: x86-Linux-suse 9.3 i586
Severity: minor

-bash-3.00$ ./configure --prefix=/tools/graphviz/2.16.1
-bash-3.00$ make
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib/ast -I../../lib/sfio -I/tools/graphviz/2.16.1/include  -g -O2 -Wno-unused-parameter -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT malloc.lo -MD -MP -MF ".deps/malloc.Tpo" -c -o malloc.lo malloc.c; 
then mv -f ".deps/malloc.Tpo" ".deps/malloc.Plo"; else rm -f ".deps/malloc.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/ast -I../../lib/sfio -I/tools/graphviz/2.16.1/include -g -O2 -Wno-unused-parameter -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c malloc.c  -fPIC -DPIC -o .libs/malloc.o
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 `/work/ran110/graphviz-2.16.1/lib/vmalloc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/work/ran110/graphviz-2.16.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/ran110/graphviz-2.16.1'
make: *** [all] Error 2

[ellson] I don't understand how this occurs? malloc.c:408 is inside an: #if _lib_mstats but I don't see _lib_mstats being defined anywhere?

Can you see where it is defined on your system?

This problem doesn't occur on Fedora, Centos, Solaris, IRIX, MacOS, ... so what is different about SuSE?

[terry] there is another bug logged that matches this desc.

the place that i found it defined was in FEATURE/vmalloc

I also noticed that this file was not 'regenerated' when you do a configure
Owner: ellson
Status: *