Re: errors when makeing aubit4gl 1.5.3
Leonardo Mendez <[email protected]> Tue, 25 Jan 2022 20:58:24 -0300
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAJdycjB6tkuGN_N7X-++0xkSTGPO4p2nAPvnvvWEK9igVAMxkw@mail.gmail.com> |
After retrying it seems the issue with abort_pressed had gone.
But now, I have a similar one with a4gl_yydebug:
/bin/bash mk_states_c
rm -f t
gcc -Wall -Wredundant-decls -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -g -fPIC -DPIC -DSRC_TREE -DDEBUG -DHAVE_CONFIG_H=
-I/opt/aubitsvn/
aubit4glsrc/incl -I/opt/aubitsvn/aubit4glsrc -fPIC -DPIC
-I../../lib/liblex/lex_c -I. -Irules -Irules/generated
-I/usr/include/tirpc -O2 -c -o rules/generate
d/mk_states.o rules/generated/mk_states.c -I. -Irules/generated
In file included from rules/generated/mk_states.c:5:
y.tab.h:2810:5: warning: redundant redeclaration of ‘a4gl_yyparse’ [
-Wredundant-decls]
In file included from rules/generated/mk_states.c:1:
./a4gl_4glc_int.h:400:5: note: previous declaration of ‘a4gl_yyparse’ was
here
400 | int a4gl_yyparse (void);
| ^~~~~~~~~~~~
gcc -rdynamic -Wall -Wredundant-decls -Wmissing-declarations
-Wmissing-prototypes -Wstrict-prototypes -g -fPIC -DPIC -DSRC_TREE -DDEBUG
-DHAVE_CONFIG_H= -I/opt
/aubitsvn/aubit4glsrc/incl -I/opt/aubitsvn/aubit4glsrc -fPIC -DPIC
-I../../lib/liblex/lex_c -I. -Irules -Irules/generated
-I/usr/include/tirpc -rdynamic -L..
/../lib -o ../../bin/4glc 4glc.o API_lex.o API_parse_self.o compile.o
class.o clobber.o dim.o field_handling.o globals.o pragma.o import.o
labels.o insert_curs.
o fix_insert.o load_prototypes.o linearise.o rules/generated/kw.o list.o
lexer.o lex.o expr_munging.o lint.o mod.o commands.o map.o extendedmap.o
parsehelp.o co
mmon.o ../../lib/generated/std_funcs.o var_handling.o variables.o
variables_new.o rules/generated/y.tab.o rules/generated/mk_states.o
-laubit4gl-1.5_3 -ldl -l
z -lpthread
/usr/bin/ld:
rules/generated/y.tab.o:/opt/aubitsvn/aubit4glsrc/compilers/4glc/y.tab.c:14974:
multiple definition of `a4gl_yydebug'; compile.o:/opt/aubitsvn/aubi
t4glsrc/compilers/4glc/compile.c:107: first defined here
collect2: error: ld returned 1 exit status
gmake[2]: *** [Makefile:188: ../../bin/4glc] Error 1
gmake[2]: Leaving directory '/opt/aubitsvn/aubit4glsrc/compilers/4glc'
gmake[1]: *** [Makefile:675: ../bin/4glc] Error 2
gmake[1]: Leaving directory '/opt/aubitsvn/aubit4glsrc/lib'
make: *** [Makefile:285: corecompile] Error 2
root@debian---cerebro2:/opt/aubitsvn/aubit4glsrc#
Even knowing that it is not a solution, I deleted line 71 in file
compilers/4glc/rules/generated/y.tab.c:
71 #define yydebug a4gl_yydebug
and then re-run 'make'
After that, I am getting another error related to asql:
4glpc -t C -c -o splash.afr.ao splash.afr.c
4glpc -fbounds-checking -t C -o ../../lib/extra_libs/pick/pick.ao -g
-versioned -c ../../lib/extra_libs/pick/pick.4gl
WARNING : -fbounds-checking not recognised - passing to C-compiler/Linker
Warning : Error file is not empty - but I got no error
Check ../../lib/extra_libs/pick/pick.warn for details
4glpc -fbounds-checking -t EC -td POSTGRES -g -versioned pg_asql.ao
pg_connection_menu.ao pg_menus.ao pg_database.ao pg_main_menu.ao pg_query.ao
pg_sessio
n.ao pg_table.ao pg_execute.ao pg_paginate.ao pg_cedit.ao pg_filehand.ao
pg_load.ao pg_form.ao pg_tools.ao pg_user_menu.ao pg_report.ao
lex.asql_yy.o simple_par
se.o dir.o pg_postgres.ao splash.afr.ao ../../lib/extra_libs/pick/
pick10.afr.ao ../../lib/extra_libs/pick/pick20.afr.ao
../../lib/extra_libs/pick/pick38.afr.ao
../../lib/extra_libs/pick/pick78.afr.ao ../../lib/extra_libs/pick/pick.ao
-o asql_p.4ae
WARNING : -fbounds-checking not recognised - passing to C-compiler/Linker
Error compiling asql_p.4ae
Exit program.. 1
gmake[1]: *** [Makefile:253: asql_p.4ae] Error 1
gmake[1]: Leaving directory '/opt/aubitsvn/aubit4glsrc/tools/asql'
make: *** [Makefile:300: corecompile] Error 2
root@debian---cerebro2:/opt/aubitsvn/aubit4glsrc#
and here is the content of file tools/asql/asql_p.4ae.err:
1 /usr/bin/ld:
pg_execute.ao:/opt/aubitsvn/aubit4glsrc/tools/asql/simple.h:55:
multiple definition of `yylval'; pg_query.ao:
/opt/aubitsvn/aubit4glsrc/tools/as
ql/simple.h:55: first defined here
2 /usr/bin/ld:
pg_paginate.ao:/opt/aubitsvn/aubit4glsrc/tools/asql/simple.h:55:
multiple definition of `yylval'; pg_query.ao:
/opt/aubitsvn/aubit4glsrc/tools/a
sql/simple.h:55: first defined here
3 /usr/bin/ld:
pg_filehand.ao:/opt/aubitsvn/aubit4glsrc/tools/asql/simple.h:55:
multiple definition of `yylval'; pg_query.ao:
/opt/aubitsvn/aubit4glsrc/tools/a
sql/simple.h:55: first defined here
4 /usr/bin/ld: pg_load.ao:/opt/aubitsvn/aubit4glsrc/tools/asql/simple.h:55:
multiple definition of `yylval'; pg_query.ao:
/opt/aubitsvn/aubit4glsrc/tools/asql/
simple.h:55: first defined here
5 /usr/bin/ld:
lex.asql_yy.o:/opt/aubitsvn/aubit4glsrc/tools/asql/simple.h:55: multiple
definition of `yylval'; pg_query.ao:/opt/aubitsvn/aubit4glsrc/tools/as
ql/simple.h:55: first defined here
6 /usr/bin/ld:
pg_postgres.ao:/opt/aubitsvn/aubit4glsrc/tools/asql/simple.h:55:
multiple definition of `yylval'; pg_query.ao:
/opt/aubitsvn/aubit4glsrc/tools/a
sql/simple.h:55: first defined here
7 /usr/bin/ld:
pg_postgres.ao:/opt/aubitsvn/aubit4glsrc/tools/asql/postgres.cpc:6152:
multiple definition of `delims'; pg_load.ao:/opt/aubitsvn/aubit4glsrc/to
ols/asql/load.cpc:78: first defined here
8 collect2: error: ld returned 1 exit status
I've tried several things here and I could get rid of the first errors
related to 'yylval', but I couldn't manage to avoid the multiple definition
of 'delims'.
Thanks in advance for your help
El mar, 25 ene 2022 a la(s) 17:39, Leonardo Mendez ([email protected])
escribió:
> I will try checking out trunk branch in SVN and I'll let you know.
> Thanks!
>
> El mar, 25 ene 2022 a la(s) 12:29, Mike Aubury ([email protected]) escribió:
>
>> 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>
>> <#m_-7045331894198215592_m_6381462788939973608_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