|
From: Daniel J S. <dan...@ie...> - 2015-08-03 17:54:20
|
On 08/03/2015 11:40 AM, Brian Weitzner wrote:
> Hello,
>
> I am trying to build gunplot on a Mac via macports and I get the
> following error:
>
> :info:build In file included from term.c:1194:
> :info:build In file included from ./term.h:254:
> :info:build ../term/caca.trm:2514:3: warning: implicit declaration of
> function 'process_event' is invalid in C99 [-Wimplicit-function-declaration]
> :info:build process_event(GE_replot, 0, 0, 0, 0, 0);
> :info:build ^
> :info:build ../term/caca.trm:2514:17: error: use of undeclared
> identifier 'GE_replot'
> :info:build process_event(GE_replot, 0, 0, 0, 0, 0);
> :info:build ^
>
> Has this issue been encountered and/or resolved by anyone else? Any help
> or information is appreciated. Thanks.
I can only guess, but it is likely that some of the pre-processor
conditionals are set up correctly. For example, in caca.trm is the
following:
#ifdef USE_MOUSE
static TBOOLEAN process_event(char type, int mx, int my, int par1, int
par2, int winid); /* wrapper for do_event() */
#endif
Implicit declaration would suggest this declaration isn't being
included. Is USE_MOUSE defined in your case? (Check the config.log file.)
In fact that does look to be a problem. All cases of process_event()
calls appear to be protected by
#ifdef USE_MOUSE
#endif /* USE_MOUSE */
except this one is not:
TERM_PUBLIC void
CACA_modify_plots(unsigned int operations, int plotno)
{
[snip]
if (changed) {
/* Replot only if something changed. */
CACA_zoom_or_replot = TRUE;
process_event(GE_replot, 0, 0, 0, 0, 0);
}
}
This whole routine is not needed so it too could be conditioned out with
#ifdef USE_MOUSE, but that factors into the function table construction,
so it's best to let Ethan deal with that.
I think for the time being you should ensure that USE_MOUSE is defined
via the configuration process.
Dan
|