Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2003 12:08:00 +0100
From:      ted@sanne.nlnetlabs.nl (Ted Lindgreen)
To:        freebsd-ports@freebsd.org
Subject:   Problem compiling magicpoint-1.09a on current
Message-ID:  <200311251108.hAPB80Wf024752@sanne.nlnetlabs.nl>

next in thread | raw e-mail | index | archive | help
Compiling magicpoint-1.09a on 5.2-BETA produces:
 petje# make
 ===>  Extracting for magicpoint-1.09a
 ....
 In file included from rlelib.c:15:
 /usr/include/varargs.h:34:2: #error "<varargs.h> is obsolete with this version of GCC."
 /usr/include/varargs.h:35:2: #error "Change your code to use <stdarg.h> instead."
 *** Error code 1

 Stop in /stable/usr/ports/misc/magicpoint/work/magicpoint-1.09a/image.
 ....

Configure knows about this, and defines HAVE_STDARG_H. But, while
in grammar.c this is tested and properly dealt with, it's not in
image/rlelib.c. Adding this test in image/rlelib.c, however, does
not help either, because it is compiled without this flag.

A quick workaround is to just change
"#include <stdarg.h>" into "#include <varargs.h>"
in image/rlelib.c.

Regards,
-- ted



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311251108.hAPB80Wf024752>