Re: errors when makeing aubit4gl 1.5.3

"James B. Byrne via Aubit4gl-discuss" <[email protected]> Wed, 21 Jul 2021 10:30:32 -0400
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>

On Wed, July 21, 2021 10:04, James B. Byrne via Aubit4gl-discuss wrote:

>
>
> The sapdb cpc error I would like to get rid of, but that is not the problem.
>
> The problem is: multiple definition of 'abort_pressed'
>
> abort_pressed is define in a4gl_libaubit4gl.h at line 1026
>
>   1023	  /* OBJECTMODULE is defined ONLY in keys.c */
>   1024	#ifdef OBJECTMODULE
>   1025	  char opts[100][80];		/*menu options */
>   1026	  int abort_pressed;
>
> and again in fglwrap.c
>
>   1457 $
>   1458 int abort_pressed=0;$
>   1459 $
>
>
>
> I can comment out one or the other, but that would be attacking the issue
> completely blind as to the significance of either.  This would likely lead to
> further errors. How should this be fixed?
>
> I tried to open a ticket for this on SF but this option is not available to me:
> (you must be authorized by the project admin.)
>
> I really would like to get this to compile cleanly and working on FreeBSD.
>
>
>

I commented out the definition in fglwrap.c ran gmake cleanall and gmake.  I
got the same error. Searching through the code I discover that abort_pressed is
defined in:

./lib/libui/ui_highlevel/remote_client/common.c
./lib/libaubit4gl/fglwrap.c
./incl/a4gl_libaubit4gl.h
./incl/a4gl_incl_4gldef.h

Which ones need to be changed from definitions to declarations?

-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
   Unencrypted messages have no legal claim to privacy
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:[email protected]
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3