pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build problems with xulrunner 16.0.2: : 'malloc_usable_size' was not declared in this scope



Hi,

From: Richard PALO <richard.palo%baou.fr@localhost>, Date: Sat, 17 Nov 2012 
11:01:16 +0100

> Hello,
> 
> I"m trying to build xulrunner (for thunderbird and firefox) from
> trunk.
> Running on OpenIndiana 151a7 in a non-global zone initially
> bootstrapped with Jonathan Perkin's bootstrap-2012Q3-illumos.tar.gz.
> 
> NB: gcc47 has been updated to 4.7.2 which is supposed to help mozilla
> builds...
> 
> the builds seem to indicate namespace problem:
> 
> g++ -o mozalloc.o -c -DMOZ_GLUE_IN_PROGRAM -I../../xpcom
> -I. -I. -I../../dist/include -I/opt/pkg/include/nspr
> -I/opt/pkg/include/nss/nss -I/opt/pkg/include/nss
> -I/opt/pkg/include/nspr -fPIC -I/usr/include -I/opt/pkg/include
> -I/opt/pkg/include/gettext -I/opt/pkg/include/nspr
> -I/opt/pkg/include/freetype2 -O -I/usr/include -I/opt/pkg/include
> -I/opt/pkg/include/gettext -I/opt/pkg/include/nspr
> -I/opt/pkg/include/freetype2 -fno-exceptions -fno-strict-aliasing
> -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions
> -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -O2
> -fomit-frame-pointer -I/usr/include -I/opt/pkg/include
> -I/opt/pkg/include/gettext -I/opt/pkg/include/nspr
> -I/opt/pkg/include/freetype2 -DMOZILLA_CLIENT -include
> ../../mozilla-config.h -MD -MF .deps/mozalloc.o.pp
> /tmp/pkgsrc/devel/xulrunner/work/mozilla-release/memory/mozalloc/mozalloc.cpp
> /tmp/pkgsrc/devel/xulrunner/work/mozilla-release/memory/mozalloc/mozalloc.cpp:
> In function 'ulong_t moz_malloc_usable_size(void*)':
> /tmp/pkgsrc/devel/xulrunner/work/mozilla-release/memory/mozalloc/mozalloc.cpp:215:34:
> error: 'malloc_usable_size' was not declared in this scope
> gmake[3]: *** [mozalloc.o] Error 1
> 
> has anybody else come across these and have any patches or other
> suggestions that may help?
> 
> I've tried the default, which is with mozilla-jemalloc, and also with
> mozilla-jemalloc disabled which gives a similar problem:
> 
> g++ -o mozalloc_abort.o -c -DMOZ_GLUE_IN_PROGRAM -I../../xpcom
> -I. -I. -I../../dist/include -I/opt/pkg/include/nspr
> -I/opt/pkg/include/nss/nss -I/opt/pkg/include/nss
> -I/opt/pkg/include/nspr -fPIC -I/usr/include -I/opt/pkg/include
> -I/opt/pkg/include/gettext -I/opt/pkg/include/nspr
> -I/opt/pkg/include/freetype2 -O -I/usr/include -I/opt/pkg/include
> -I/opt/pkg/include/gettext -I/opt/pkg/include/nspr
> -I/opt/pkg/include/freetype2 -fno-exceptions -fno-strict-aliasing
> -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions
> -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -O2
> -fomit-frame-pointer -I/usr/include -I/opt/pkg/include
> -I/opt/pkg/include/gettext -I/opt/pkg/include/nspr
> -I/opt/pkg/include/freetype2 -DMOZILLA_CLIENT -include
> ../../mozilla-config.h -MD -MF .deps/mozalloc_abort.o.pp
> /tmp/pkgsrc/devel/xulrunner/work/mozilla-release/memory/mozalloc/mozalloc_abort.cpp
> /tmp/pkgsrc/devel/xulrunner/work/mozilla-release/memory/mozalloc/mozalloc_abort.cpp:
> In function 'void abort()':
> /tmp/pkgsrc/devel/xulrunner/work/mozilla-release/memory/mozalloc/mozalloc_abort.cpp:30:16:
> error: 'void abort()' conflicts with previous using declaration 'void
> std::abort()'
> gmake[3]: *** [mozalloc_abort.o] Error 1
> 
> full logs available if needed.

Could you send-pr this problem to GNATS?

My OpenIndiana 151a7 pkgsrc test environment is broken now.
After fix, I will try to build xulrunner on it.

Thank you.

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3




Home | Main Index | Thread Index | Old Index