Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136333 - net-www/gnash-0.7.1_p20060528 build fails with type errors related to "struct mallinfo" in utility.cpp
Summary: net-www/gnash-0.7.1_p20060528 build fails with type errors related to "struct...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-10 16:06 UTC by Joe Wells
Modified: 2006-06-14 16:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of "emerge -info" on my system. (emerge-info-output,8.25 KB, text/plain)
2006-06-10 16:07 UTC, Joe Wells
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Wells 2006-06-10 16:06:27 UTC
I just tried emerging gnash (net-www/gnash-0.7.1_p20060528). The build
fails with type errors related to "struct mallinfo" in utility.cpp.
The error messages are these:

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'

Help?

Here is a slightly larger portion of the log file that includes the
error messages:

----------------------------------------------------------------------
if /bin/sh ../libtool --tag=CXX --mode=compile 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_THREAD_SUPPORT  -D_REENTRANT -I.. -I. -I.. -I../server -I/usr/include  -I/usr/include/libxml2  -I/usr/include/SDL -I/usr/include/SDL    -march=pentium4 -O2 -pipe -ggdb     -ansi     -Wall      -MT utility.lo -MD -MP -MF ".deps/utility.Tpo" -c -o utility.lo utility.cpp; \
	then mv -f ".deps/utility.Tpo" ".deps/utility.Plo"; else rm -f ".deps/utility.Tpo"; exit 1; fi
 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_THREAD_SUPPORT -D_REENTRANT -I.. -I. -I.. -I../server -I/usr/include -I/usr/include/libxml2 -I/usr/include/SDL -I/usr/include/SDL -march=pentium4 -O2 -pipe -ggdb -ansi -Wall -MT utility.lo -MD -MP -MF .deps/utility.Tpo -c utility.cpp  -fPIC -DPIC -o .libs/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 'allocated'
make[2]: *** [utility.lo] Error 1
make[2]: Leaving directory `/extra/var/tmp/portage/gnash-0.7.1_p20060528/work/gnash/libbase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/extra/var/tmp/portage/gnash-0.7.1_p20060528/work/gnash'
make: *** [all] Error 2

!!! ERROR: net-www/gnash-0.7.1_p20060528 failed.
----------------------------------------------------------------------
Comment 1 Joe Wells 2006-06-10 16:07:14 UTC
Created attachment 88864 [details]
Output of "emerge -info" on my system.
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-10 16:16:47 UTC
I cannot see it, but I assume you are using USE=dmalloc, please try without
Comment 3 Joe Wells 2006-06-11 12:34:24 UTC
(In reply to comment #2)
> I cannot see it, but I assume you are using USE=dmalloc, please try
> without

Thanks!

Yes, turning off dmalloc made it compile.  I had "xml dmalloc -mad"
for net-www/gnash in /etc/portage/package, now I only have "xml
-mad".

Now "gnash" immediately dies with SIGSEGV, no matter what arguments it
is given.  Also, Firefox doesn't find the plugin in
/opt/netscape/plugins/libgnashplugin.so.  I know the ebuild says

  ALPHA
  gnash is still in heavy development
  please report gnash bugs upstream to the gnash devs

but it seems to me these two new bugs ("gnash" not working at _all_,
and not being found by Firefox) are likely better solved in portage.
Should I file the bugs here or with Gnash?
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-14 16:36:05 UTC
problem being the firefox and not working at all, I cannot reproduce. I still left this open because maybe dmalloc should be not allowed in the ebuild, but I think I will just close this as upstream - users can just use USE="-dmalloc" until we get a fixed version :)