Subject: Re: Building wireshark 0.99.5 with GCC 3.3.3
To: None <>
From: Matthias Scheler <>
List: tech-pkg
Date: 02/07/2007 17:05:48
On Sat, Feb 03, 2007 at 06:15:40PM +0000, Matthias Scheler wrote:
> I can't get "wireshark" 0.99.5 to build with the GCC 3.3.3 distributed
> with NetBSD-i386 3.1:

In case anybody is interested: I found the cause of the problem.

"wireshare" contains a  LALR(1) parser generator called "lemon"
which generated ".c" code like this:

	#line 917 "dtd_grammar.c"
	      case 19:
-->	#line 1853321060 "./dtd_grammar.lemon"

The bogus line number is where the 1853321063 bytes are coming from.
Fixing "lemon" not to create bogus line numbers stopped GCC from
trying to allocate 1.7GB of memory.

	Kind regards

Matthias Scheler