Subject: Building wireshark 0.99.5 with GCC 3.3.3
To: None <tech-pkg@NetBSD.org>
From: Matthias Scheler <tron@zhadum.org.uk>
List: tech-pkg
Date: 02/03/2007 18:15:40
Hello,
I can't get "wireshark" 0.99.5 to build with the GCC 3.3.3 distributed
with NetBSD-i386 3.1:
=3D> Required installed package digest>=3D20010302: digest-20060826 found
=3D=3D=3D> Checking for vulnerabilities in wireshark-0.99.5
=3D> Checksum SHA1 OK for wireshark-0.99.5.tar.bz2
=3D> Checksum RMD160 OK for wireshark-0.99.5.tar.bz2
=3D=3D=3D> Building for wireshark-0.99.5
[...]
gmake[3]: Entering directory `/src/NetBSD-current/pkgsrc/net/wireshark/work=
.colwyn/wireshark-0.99.5/epan'
if /bin/sh ../libtool --tag=3DCC --mode=3Dcompile cc -DHAVE_CONFIG_H -I. -I=
. -I.. -I./.. -I./../tools/lemon -I/usr/pkg/include -I/usr/pkg/include -I/u=
sr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -=
I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/=
include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/pkg/inclu=
de -DINET6 -O2 -Dnetbsd1 -I/usr/pkg/include -Dnetbsdelf -I/usr/pkg/include =
-I. -I/usr/pkg/include -DINET6 -D_U_=3D"__attribute__((unused))" -Wall -Wp=
ointer-arith -W -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/f=
reetype2 -I/usr/X11R6/include -I/usr/local/include -O2 -DXTHREADS -pthread =
-I/usr/pkg/include/gtk-2.0 -I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/includ=
e/atk-1.0 -I/usr/pkg/include/cairo -I/usr/pkg/include/pango-1.0 -I/usr/pkg/=
include -I/usr/X11R6/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/li=
b/glib-2.0/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libpng12=
-I/usr/include -I/usr/include -I/usr/pkg/include -DINET6 -O2 -Dnetbsd1 -=
I/usr/pkg/include -Dnetbsdelf -I/usr/pkg/include -I. -I/usr/pkg/include -MT=
dtd_grammar.lo -MD -MP -MF ".deps/dtd_grammar.Tpo" -c -o dtd_grammar.lo dt=
d_grammar.c; \
then mv -f ".deps/dtd_grammar.Tpo" ".deps/dtd_grammar.Plo"; else rm -f ".d=
eps/dtd_grammar.Tpo"; exit 1; fi
cc -DHAVE_CONFIG_H -I. -I.. -I./.. -I./../tools/lemon -I/src/NetBSD-curren=
t/pkgsrc/net/wireshark/work.colwyn/.buildlink/include -I/src/NetBSD-current=
/pkgsrc/net/wireshark/work.colwyn/.buildlink/include/freetype2 -I/src/NetBS=
D-current/pkgsrc/net/wireshark/work.colwyn/.x11-buildlink/include -DINET6 -=
O2 -Dnetbsd1 -Dnetbsdelf "-D_U_=3D__attribute__((unused))" -Wall -Wpointer-=
arith -W -O2 -O2 -DXTHREADS -pthread -I/src/NetBSD-current/pkgsrc/net/wires=
hark/work.colwyn/.buildlink/include/gtk-2.0 -I/src/NetBSD-current/pkgsrc/ne=
t/wireshark/work.colwyn/.buildlink/lib/gtk-2.0/include -I/src/NetBSD-curren=
t/pkgsrc/net/wireshark/work.colwyn/.buildlink/include/atk-1.0 -I/src/NetBSD=
-current/pkgsrc/net/wireshark/work.colwyn/.buildlink/include/cairo -I/src/N=
etBSD-current/pkgsrc/net/wireshark/work.colwyn/.buildlink/include/pango-1.0=
-I/src/NetBSD-current/pkgsrc/net/wireshark/work.colwyn/.buildlink/include/=
glib/glib-2.0 -I/src/NetBSD-current/pkgsrc/net/wireshark/work.colwyn/.build=
link/lib/glib-2.0/include -I/src/NetBSD-current/pkgsrc/net/wireshark/work.c=
olwyn/.buildlink/include/libpng12 -O2 -MT dtd_grammar.lo -MD -MP -MF .deps/=
dtd_grammar.Tpo -c dtd_grammar.c -fPIC -DPIC -o .libs/dtd_grammar.o
dtd_grammar.c: In function `DtdParseTokenName':
dtd_grammar.c:405: warning: comparison between signed and unsigned
cc1: out of memory allocating 1853321063 bytes after a total of 1048004 byt=
es
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/src/NetBSD-current/pkgsrc/net/wireshark/work.colwyn/.gcc/bin/gcc -DHAVE_CO=
NFIG_H -I. -I.. -I./.. -I./../tools/lemon -I/src/NetBSD-current/pkgsrc/net/=
wireshark/work.colwyn/.buildlink/include -I/src/NetBSD-current/pkgsrc/net/w=
ireshark/work.colwyn/.buildlink/include/freetype2 -I/src/NetBSD-current/pkg=
src/net/wireshark/work.colwyn/.x11-buildlink/include -DINET6 -O2 -Dnetbsd1 =
-Dnetbsdelf "-D_U_=3D__attribute__((unused))" -Wall -Wpointer-arith -W -O2 =
-O2 -DXTHREADS -pthread -I/src/NetBSD-current/pkgsrc/net/wireshark/work.col=
wyn/.buildlink/include/gtk-2.0 -I/src/NetBSD-current/pkgsrc/net/wireshark/w=
ork.colwyn/.buildlink/lib/gtk-2.0/include -I/src/NetBSD-current/pkgsrc/net/=
wireshark/work.colwyn/.buildlink/include/atk-1.0 -I/src/NetBSD-current/pkgs=
rc/net/wireshark/work.colwyn/.buildlink/include/cairo -I/src/NetBSD-current=
/pkgsrc/net/wireshark/work.colwyn/.buildlink/include/pango-1.0 -I/src/NetBS=
D-current/pkgsrc/net/wireshark/work.colwyn/.buildlink/include/glib/glib-2.0=
-I/src/NetBSD-current/pkgsrc/net/wireshark/work.colwyn/.buildlink/lib/glib=
-2.0/include -I/src/NetBSD-current/pkgsrc/net/wireshark/work.colwyn/.buildl=
ink/include/libpng12 -O2 -MT dtd_grammar.lo -MD -MP -MF .deps/dtd_grammar.T=
po -c dtd_grammar.c -fPIC -DPIC -o .libs/dtd_grammar.o -L/src/NetBSD-curren=
t/pkgsrc/net/wireshark/work.colwyn/.buildlink/lib=20
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkg/bin/shlibtool --tag=3DCC --mode=3Dcompile cc -DHAVE_CONFIG_H -I. -=
I.. -I./.. -I./../tools/lemon -I/src/NetBSD-current/pkgsrc/net/wireshark/wo=
rk.colwyn/.buildlink/include -I/src/NetBSD-current/pkgsrc/net/wireshark/wor=
k.colwyn/.buildlink/include/freetype2 -I/src/NetBSD-current/pkgsrc/net/wire=
shark/work.colwyn/.x11-buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsdelf =
"-D_U_=3D__attribute__((unused))" -Wall -Wpointer-arith -W -O2 -O2 -DXTHREA=
DS -pthread -I/src/NetBSD-current/pkgsrc/net/wireshark/work.colwyn/.buildli=
nk/include/gtk-2.0 -I/src/NetBSD-current/pkgsrc/net/wireshark/work.colwyn/.=
buildlink/lib/gtk-2.0/include -I/src/NetBSD-current/pkgsrc/net/wireshark/wo=
rk.colwyn/.buildlink/include/atk-1.0 -I/src/NetBSD-current/pkgsrc/net/wires=
hark/work.colwyn/.buildlink/include/cairo -I/src/NetBSD-current/pkgsrc/net/=
wireshark/work.colwyn/.buildlink/include/pango-1.0 -I/src/NetBSD-current/pk=
gsrc/net/wireshark/work.colwyn/.buildlink/include/glib/glib-2.0 -I/src/NetB=
SD-current/pkgsrc/net/wireshark/work.colwyn/.buildlink/lib/glib-2.0/include=
-I/src/NetBSD-current/pkgsrc/net/wireshark/work.colwyn/.buildlink/include/=
libpng12 -O2 -MT dtd_grammar.lo -MD -MP -MF .deps/dtd_grammar.Tpo -c -o dtd=
_grammar.lo dtd_grammar.c=20
gmake[3]: *** [dtd_grammar.lo] Error 1
I've tried "UNLIMIT_RESOURCE+=3D datasize", turning off optimization and
using "--param ggc-min-expand=3D0 --param ggc-min-heapsize=3D8192" but
none of the above helped.
I can build the package without problems with GCC 4.0.1 under Mac OS X.
Any ideas?
Kind regards
--=20
Matthias Scheler http://zhadum.org.uk/