Re: errors when makeing aubit4gl 1.5.3

Mike Aubury <[email protected]> Tue, 25 Jan 2022 15:29:21 +0000
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAGAq4WEsUKoZAAXA7amK8-degd34wK=kT=1E2hwkP4dGyjt_Zg@mail.gmail.com>
I think this should be fixed in SVN - do you need a new tarball ?


<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, 24 Jan 2022 at 05:08, Leonardo Mendez <[email protected]> wrote:

> I am currently having a similar issue on Debian Bullseye.
>
> I compiled with:
>
> ./configure --without-mysql --prefix=/opt/aubit4gl
>
> which automatically detected 'pg8' as default Sqldriver that is the
> desired behaviour.
>
> But after running 'make' this is the error I have:
>
> gmake[2]: Entering directory '/opt/newaubit/aubit4glsrc/lib/libaubit4gl'
> Sucessfuly created API objects:
> API_esql.o API_help.o API_menu.o API_packer.o API_form.o API_ui.o
> API_sqlparsecmd.o API_sqlparse.o API_sql.o API_rpc.o API_exreport.o
> gcc -Wall -Wredundant-decls -Wmissing-declarations -Wmissing-prototypes
> -Wstrict-prototypes -g  -fPIC -DPIC -DSRC_TREE -DDEBUG -DHAVE_CONFIG_H=
> -I/opt/newaubit/
> aubit4glsrc/incl -I/opt/newaubit/aubit4glsrc  -fPIC -DPIC -I. -DALLOW_ZLIB
> -shared -o /opt/newaubit/aubit4glsrc/lib/libaubit4gl-1.5_3.so
> attributes.o builtin.o
> builtin_d.o calldll.o mem.o assert.o fglextra.o net.o object.o ui_window.o
> ui_interface.o basechannel.o passreference.o lvarchar.o int8.o conv.o
> compat.o corba_
> server_util.o class.o data_if.o common_ui.o dates.o dir.o dmy.o
> datatypes.o dataio.o decimal.o dynmem.o debug.o err.o error.o errfile.o
> sqlexpr.o expr.o extfile
> .o eval_field.o mapm/mapmutil.o mapm/mapmutl1.o mapm/mapmutl2.o
> mapm/mapm_add.o mapm/mapm_div.o mapm/mapm_mul.o mapm/mapm_rnd.o
> mapm/mapmcnst.o mapm/mapmstck.o
> mapm/mapm_fft.o mapm/mapm_set.o mapm/mapm_fpf.o mapm/mapmfmul.o
> mapm/mapmistr.o mapm/mapm_flr.o mapm/mapm_rcp.o mapm/mapmgues.o fglwrap.o
> finderr.o funcs_d.o fu
> nction_call_stack.o file.o gtime.o gen_stack.o gui_io.o gui.o helper.o
> io.o interval.o keys.o load.o match.o maths.o memfile.o md5.o ns.o others.o
> ops.o outer.o
> querix_compat.o pointers.o parsecommon.o read_dty.o readkeys.o report.o
> rexp2.o /opt/newaubit/aubit4glsrc/lib/resource/resource.o screen.o
> sql_common.o sqlconv
> ert.o stack_ops.o stack.o string.o nchar.o sqlca.o
> ui_objects/ui_combobox.o ui_objects/ui_curses.o ui_objects/ui_dashboard.o
> ui_objects/ui_vdc.o ui_objects/ui_b
> rowser.o ui_objects/ui_gantt.o ui_objects/ui_progress.o
> ui_objects/os.path.o ui_objects/util.regex.o ui_objects/dialog.o
> translate.o missing.o curl.o ui.o /opt/
> newaubit/aubit4glsrc/lib/generated/project.o API_esql.o API_help.o
> API_menu.o API_packer.o API_form.o API_ui.o API_sqlparsecmd.o
> API_sqlparse.o API_sql.o API_rp
> c.o API_exreport.o -ldl -lm -lz -lcurl -ldl  -lz
> /usr/bin/ld:
> keys.o:/opt/newaubit/aubit4glsrc/incl/a4gl_libaubit4gl.h:1026: multiple
> definition of `abort_pressed'; fglwrap.o:/opt/newaubit/aubit4glsrc/lib/liba
> ubit4gl/fglwrap.c:1458: first defined here
> collect2: error: ld returned 1 exit status
> gmake[2]: *** [Makefile:211: /opt/newaubit/aubit4glsrc/lib/
> libaubit4gl-1.5_3.so] Error 1
> gmake[2]: Leaving directory '/opt/newaubit/aubit4glsrc/lib/libaubit4gl'
> gmake[1]: *** [Makefile:276: libaubit4gl-1.5_3.so] Error 2
> gmake[1]: Leaving directory '/opt/newaubit/aubit4glsrc/lib'
> make: *** [Makefile:285: corecompile] Error 2
>
>
> Thanks in advance.
> Leonardo.
>
>
> El mié, 21 jul 2021 a la(s) 11:30, James B. Byrne via Aubit4gl-discuss (
> [email protected]) escribió:
>
>>
>>
>> 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
>>
>>
>>
>> _______________________________________________
>> Aubit4gl-discuss mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>>
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss