Re: Error in last compilation
Mike Aubury <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WGpcV=G=TzRKw=e4Q+WgPsuJep2kKz1O-wUTn8pbVW49w@mail.gmail.com> |
Looks like a change in Bison behaviour - what version are you using ?
Can you edit the incl/Makefile-common and add "-Wno-yacc" to BISON setting
#BISON will contatin full path to bison executable. It will already include
#-y flag set from autoconf, or "no" if not found or disabled:
BISON =LANG=C LC_ALL=C /usr/bin/bison -y -Wno-yacc
BISON_EXE =/usr/bin/bison
#YACC is variable name we use all over the make files, for Bison command
YACC =$(strip ${BISON} )
and see if that fixes it ?
If it does - I'll adjust the configure script to add it..
On Thu, 9 May 2019 at 12:01, Carlos Alberto Correa Fayad <
[email protected]> wrote:
> Hi all
>
> This error in last compilation
>
> from report.h:9,
> from report_xdr.c:6:
> /usr/include/netinet/in.h:502:12: note: previous declaration of
> 'bindresvport' was here
> extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in)
> __THROW;
> ^~~~~~~~~~~~
> 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.. -D_NO_FORM_X_H_ -I/usr/include/tirpc -shared -o
> /opt/aubit4glsrc/plugins-1.5_1/libXDRPACKER_report.so report_xdr.o -ltirpc
> /usr/bin/rpcgen npcode.x
> 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.. -D_NO_FORM_X_H_ -I/usr/include/tirpc -Wno-unused -c
> npcode_xdr.c -o npcode_xdr.o
> In file included from npcode.h:9,
> from npcode_xdr.c:6:
> /usr/include/tirpc/rpc/rpc.h:83:12: warning: redundant redeclaration of
> 'bindresvport' [-Wredundant-decls]
> extern int bindresvport(int, struct sockaddr_in *);
> ^~~~~~~~~~~~
> In file included from /usr/include/tirpc/rpc/rpc.h:40,
> from npcode.h:9,
> from npcode_xdr.c:6:
> /usr/include/netinet/in.h:502:12: note: previous declaration of
> 'bindresvport' was here
> extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in)
> __THROW;
> ^~~~~~~~~~~~
> 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.. -D_NO_FORM_X_H_ -I/usr/include/tirpc -shared -o
> /opt/aubit4glsrc/plugins-1.5_1/libXDRPACKER_module.so npcode_xdr.o -ltirpc
> /usr/bin/rpcgen fgl.x
> 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.. -D_NO_FORM_X_H_ -I/usr/include/tirpc -Wno-unused -c fgl_xdr.c
> -o fgl_xdr.o
> In file included from fgl.h:9,
> from fgl_xdr.c:6:
> /usr/include/tirpc/rpc/rpc.h:83:12: warning: redundant redeclaration of
> 'bindresvport' [-Wredundant-decls]
> extern int bindresvport(int, struct sockaddr_in *);
> ^~~~~~~~~~~~
> In file included from /usr/include/tirpc/rpc/rpc.h:40,
> from fgl.h:9,
> from fgl_xdr.c:6:
> /usr/include/netinet/in.h:502:12: note: previous declaration of
> 'bindresvport' was here
> extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in)
> __THROW;
> ^~~~~~~~~~~~
> 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.. -D_NO_FORM_X_H_ -I/usr/include/tirpc -shared -o
> /opt/aubit4glsrc/plugins-1.5_1/libXDRPACKER_module_definition.so fgl_xdr.o
> -ltirpc
> Default targets (/opt/aubit4glsrc/plugins-1.5_1/libDATA_struct_form.so
> /opt/aubit4glsrc/plugins-1.5_1/libDATA_report.so
> /opt/aubit4glsrc/plugins-1.5_1/libDATA_module.so /opt/aubit4glsrc/plugins
> -1.5_1/libDATA_module_definition.so
> /opt/aubit4glsrc/plugins-1.5_1/libXDRPACKER_struct_form.so
> /opt/aubit4glsrc/plugins-1.5_1/libXDRPACKER_report.so
> /opt/aubit4glsrc/plugins-1.5_1/libXDRPACKER
> _module.so
> /opt/aubit4glsrc/plugins-1.5_1/libXDRPACKER_module_definition.so ) built
> successfully.
> make[1]: Leaving directory '/opt/aubit4glsrc/common/dataio'
> Making lib
> /usr/bin/make -C lib
> make[1]: Entering directory '/opt/aubit4glsrc/lib'
> ~
>
> _______________________________________________
> 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