Subject: Re: mpeg_encode not building
To: Louis Guillaume <email@example.com>
From: Thomas Klausner <wiz@NetBSD.org>
Date: 04/06/2005 16:47:54
On Tue, Apr 05, 2005 at 10:51:15PM -0400, Louis Guillaume wrote:
> On NetBSD-3.99.3, pkgsrc-2005Q1, I just tried to build the fxtv-capture
> meta package.
> The mpeg_encode package gets stopped like this...
> gcc -Iheaders -O -Wall -Wmissing-prototypes -I/usr/pkg/include -c
> -o opts.o opts.c
> In file included from /usr/include/malloc.h:3,
> from opts.c:41:
> /usr/include/stdlib.h:98: error: parse error before "int"
> gmake: *** [opts.o] Error 1
> *** Error code 2
> make: stopped in /usr/pkgsrc/multimedia/mpeg_encode
> ... I can't imagine there's an issue with gmake and stdlib.h, so I have
> no idea what to try here.
opts.c includes opts.h which includes general.h, which defines:
#define abs(a) ((a) >= 0 ? (a) : -(a))
You could try putting the "opts.h" include at the bottom in
the following block in opts.c: