When I compile gnash with dmalloc enable I have this error :
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I.. -I../server -I
/usr/include -I/usr/include/libxml2 -I/usr/include/SDL -I/usr/include/SDL -DQT_T
HREAD_SUPPORT -D_REENTRANT -I.. -I. -I.. -I../server -I/usr/include -I/usr/inclu
de/libxml2 -I/usr/include/SDL -I/usr/include/SDL -O2 -mcpu=i686 -pipe -ansi -Wal
l -MT utility.lo -MD -MP -MF .deps/utility.Tpo -c utility.cpp -fPIC -DPIC -o .l
ibs/utility.o
utility.cpp: In function `void dump_memory_stats(const char*, int, const char*)
':
utility.cpp:81: error: aggregate `mallinfo mi' has incomplete type and cannot
be defined
utility.cpp:85: error: invalid use of undefined type `struct mallinfo'
utility.cpp:81: error: forward declaration of `struct mallinfo'
utility.cpp:82: warning: unused variable `int allocated'
make: *** [ utility.lo] Erreur 1
I think this comes from a typo here (libbase/utility.cpp : 81 ) :
// This does not work with DMALLOC, since the internal data structures
// differ.
#ifdef HAVE_DMALLOC
#ifdef HAVE_MALLINFO
struct mallinfo mi;
static int allocated = 0;
static int freeb = 0;
mi = mallinfo();
Instead of :
#ifndef HAVE_DMALLOC
If I disable dmalloc, gnash compiles fine.
Sincerely,
Fred.
_______________________________________________ Gnash mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnash
