Re: Error in compilation

Mike Aubury <[email protected]> Fri, 3 Jun 2022 09:51:20 +0100
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAGAq4WENgoHstGnkCE095MEEzWzU=KVb=gzOXZQUWj6hT00i4w@mail.gmail.com>
fix should be in svn now.

All I did was permanently define the YYDEBUG in compilers/4glc/compile.c
(instead of just for __DARWIN__)



#ifdef __DARWIN__
#define YYDEBUG 1
#endif
#define YYDEBUG 1

Not sure I can do much about the first one..



On Fri, 3 Jun 2022 at 05:52, Carlos Alberto Correa Fayad <
[email protected]> wrote:

> Hi all
>
> Two error in last compilation.
>
> 1. Error with rpc in form_x.h
>
> Solution : https://github.com/alekseyzimin/masurca/issues/69
>
>
> 2. This error in make
>
> fgl.infx.yacc:9217:7: note: 'sprintf' output between 2 and 12289 bytes
> into a destination of size 300
> fgl.infx.yacc:7218:30: warning: '%s' directive writing up to 12287 bytes
> into a region of size 299 [-Wformat-overflow=]
> fgl.infx.yacc:7218:17: note: 'sprintf' output 3 or more bytes (assuming
> 24577) into a destination of size 300
> fgl.infx.yacc:7213:30: warning: '%s' directive writing up to 12287 bytes
> into a region of size 299 [-Wformat-overflow=]
> fgl.infx.yacc:7213:17: note: 'sprintf' output 3 or more bytes (assuming
> 24577) into a destination of size 300
> fgl.infx.yacc:6680:23: warning: 'sprintf' may write a terminating nul past
> the end of the destination [-Wformat-overflow=]
> fgl.infx.yacc:6680:3: note: 'sprintf' output between 2 and 12289 bytes
> into a destination of size 12288
> fgl.infx.yacc:6275:60: warning: '.' directive writing 1 byte into a region
> of size between 0 and 12287 [-Wformat-overflow=]
> fgl.infx.yacc:6275:40: note: 'sprintf' output between 3 and 24577 bytes
> into a destination of size 12288
> fgl.infx.yacc:6274:47: warning: 'sprintf' may write a terminating nul past
> the end of the destination [-Wformat-overflow=]
> fgl.infx.yacc:6274:27: note: 'sprintf' output between 2 and 12289 bytes
> into a destination of size 12288
> fgl.infx.yacc:6273:59: warning: '.' directive writing 1 byte into a region
> of size between 0 and 12287 [-Wformat-overflow=]
> fgl.infx.yacc:6273:39: note: 'sprintf' output between 3 and 24577 bytes
> into a destination of size 12288
> fgl.infx.yacc:6272:46: warning: 'sprintf' may write a terminating nul past
> the end of the destination [-Wformat-overflow=]
> fgl.infx.yacc:6272:26: note: 'sprintf' output between 2 and 12289 bytes
> into a destination of size 12288
> fgl.infx.yacc:6271:37: warning: 'sprintf' may write a terminating nul past
> the end of the destination [-Wformat-overflow=]
> fgl.infx.yacc:6271:17: note: 'sprintf' output between 2 and 12289 bytes
> into a destination of size 12288
> fgl.infx.yacc:2834:17: warning: '%s' directive writing up to 12287 bytes
> into a region of size 200 [-Wformat-overflow=]
> fgl.infx.yacc:2834:4: note: 'sprintf' output between 2 and 24576 bytes
> into a destination of size 200
> fgl.infx.yacc:2220:23: warning: 'sprintf' may write a terminating nul past
> the end of the destination [-Wformat-overflow=]
> fgl.infx.yacc:2220:3: note: 'sprintf' output 2 or more bytes (assuming
> 12289) into a destination of size 12288
> Y_OUTPUT=rules/generated/y.output
> /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/aubit4glsrc/incl -I/opt/aubit4glsrc  -fPI
> C -DPIC -I../../lib/liblex/lex_c -I.  -Irules -Irules/generated
> -I/usr/include/tirpc  -O2 -c -o rules/generated/mk_states.o
> rules/generated/mk_states.c -I. -Irules/generated
> In file included from rules/generated/mk_states.c:5:
> y.tab.h:2827: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' with
> type 'int(void)'
>  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/aubit4glsrc/incl -I/opt/aubit4g
> lsrc  -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 clob
> ber.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 common.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  -lz  -lpthread
> /usr/bin/ld:
> rules/generated/y.tab.o:/opt/aubit4glsrc/compilers/4glc/y.tab.c:14948:
> multiple definition of `a4gl_yydebug';
> compile.o:/opt/aubit4glsrc/compilers/4glc/compile.c:105: first define
> d here
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:188: ../../bin/4glc] Error 1
> make[2]: Leaving directory '/opt/aubit4glsrc/compilers/4glc'
> make[1]: *** [Makefile:675: ../bin/4glc] Error 2
> make[1]: Leaving directory '/opt/aubit4glsrc/lib'
> make: *** [Makefile:285: corecompile] Error 2
>
>
>
> Thanks for help
> _______________________________________________
> 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