public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Need help with Proc compilation with GCC 4.8.3
@ 2023-03-01  6:33 Kondreddy, Vinay Kumar
  2023-03-01  9:00 ` Jonathan Wakely
  2023-03-01 11:43 ` James K. Lowden
  0 siblings, 2 replies; 7+ messages in thread
From: Kondreddy, Vinay Kumar @ 2023-03-01  6:33 UTC (permalink / raw)
  To: gcc, gcc-help, gcc-bugzilla-account-request; +Cc: Mahankali, Sharath Kumar


[-- Attachment #1.1: Type: text/plain, Size: 2583 bytes --]

Hi Team,

We are using GCC 4.8.3 for one of our legacy applications i.e: Automatch. after database upgrade from 11/2 to 19.0.0, while recompiling one of our proc program we are getting below error. Could you please help us to resolve below issue. Please find full error trace in above attachment.

Also could you please provide any URL or website to download proper GCC along with their dependencies as we are not able to find all dependencies at one place.

Error:-
amatch@autd1db01 $ make -f PushOfPayables.mk
        /ORACLE/app/oracle/product/19.0.0/dbhome_1/bin/proc SQLCHECK=SEMANTICS mode=oracle ireclen=120  userid=am_user/steve7 DEFINE=__64BIT__ /usr/include/  iname=/app/amatch/tst/code/src/proc/PushOfPayables.pc  oname=/app/amatch/tst/code/src/c/PushOfPayables.c

Pro*C/C++: Release 19.0.0.0.0 - Production on Wed Feb 22 09:54:42 2023
Version 19.15.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

System default option values taken from: /ORACLE/app/oracle/product/19.0.0/dbhome_1/precomp/admin/pcscfg.cfg

        /usr/bin/gcc -c -o /app/amatch/tst/code/obj/PushOfPayables.o -maix64  /usr/include/  /app/amatch/tst/code/include  -I/ORACLE/app/oracle/product/19.0.0/dbhome_1/precomp/public -I/app/amatch/tst/code/include /app/amatch/tst/code/src/c/PushOfPayables.c
In file included from /usr/include/sys/resource.h:57:0,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/wait.h:62,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:349,
                 from /app/amatch/tst/code/src/c/PushOfPayables.c:181:
/usr/include/sys/time.h:110:16: error: redefinition of 'struct sigset_t'
typedef struct sigset_t {
                ^
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdio.h:479:0,
                 from /app/amatch/tst/code/src/c/PushOfPayables.c:180:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/types.h:345:16: note: originally defined here
typedef struct sigset_t {
                ^
In file included from /usr/include/sys/resource.h:57:0,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/wait.h:62,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:349,
                 from /app/amatch/tst/code/src/c/PushOfPayables.c:181:
/usr/include/sys/time.h:126:3: error: conflicting types for 'sigset_t'
} sigset_t;
   ^

Thanks & Regards,
Vinay Kumar

[-- Attachment #2: PushOfPayables_compilation Error.txt --]
[-- Type: text/plain, Size: 14938 bytes --]

amatch@autd1db01 $ make -f PushOfPayables.mk
        /ORACLE/app/oracle/product/19.0.0/dbhome_1/bin/proc SQLCHECK=SEMANTICS mode=oracle ireclen=120  userid=am_user/steve7 DEFINE=__64BIT__ /usr/include/  iname=/app/amatch/tst/code/src/proc/PushOfPayables.pc  oname=/app/amatch/tst/code/src/c/PushOfPayables.c

Pro*C/C++: Release 19.0.0.0.0 - Production on Wed Feb 22 09:54:42 2023
Version 19.15.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

System default option values taken from: /ORACLE/app/oracle/product/19.0.0/dbhome_1/precomp/admin/pcscfg.cfg

        /usr/bin/gcc -c -o /app/amatch/tst/code/obj/PushOfPayables.o -maix64  /usr/include/  /app/amatch/tst/code/include  -I/ORACLE/app/oracle/product/19.0.0/dbhome_1/precomp/public -I/app/amatch/tst/code/include /app/amatch/tst/code/src/c/PushOfPayables.c
In file included from /usr/include/sys/resource.h:57:0,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/wait.h:62,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:349,
                 from /app/amatch/tst/code/src/c/PushOfPayables.c:181:
/usr/include/sys/time.h:110:16: error: redefinition of 'struct sigset_t'
 typedef struct sigset_t {
                ^
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdio.h:479:0,
                 from /app/amatch/tst/code/src/c/PushOfPayables.c:180:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/types.h:345:16: note: originally defined here
 typedef struct sigset_t {
                ^
In file included from /usr/include/sys/resource.h:57:0,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/wait.h:62,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:349,
                 from /app/amatch/tst/code/src/c/PushOfPayables.c:181:
/usr/include/sys/time.h:126:3: error: conflicting types for 'sigset_t'
 } sigset_t;
   ^
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdio.h:479:0,
                 from /app/amatch/tst/code/src/c/PushOfPayables.c:180:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/types.h:361:3: note: previous declaration of 'sigset_t' was here
 } sigset_t;
   ^
/app/amatch/tst/code/src/c/PushOfPayables.c:190:0: warning: "TRUE" redefined [enabled by default]
 #define TRUE 0
 ^
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdio.h:479:0,
                 from /app/amatch/tst/code/src/c/PushOfPayables.c:180:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/types.h:523:0: note: this is the location of the previous definition
 #define TRUE 1
 ^
/app/amatch/tst/code/src/c/PushOfPayables.c:192:0: warning: "FALSE" redefined [enabled by default]
 #define FALSE 1
 ^
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdio.h:479:0,
                 from /app/amatch/tst/code/src/c/PushOfPayables.c:180:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/types.h:526:0: note: this is the location of the previous definition
 #define FALSE 0
 ^
/app/amatch/tst/code/src/c/PushOfPayables.c: In function 'fv_ProcessField':
/app/amatch/tst/code/src/c/PushOfPayables.c:876:2: warning: passing argument 1 of 'strcmp' makes pointer from integer without a cast [enabled by default]
  if ((strcmp(fa_ltrim(pc_word[1]),fa_ltrim(VENDOR_ID))==TRUE)
  ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:206:25: note: expected 'const char *' but argument is of type 'int'
         extern int      strcmp(const char *, const char *);
                         ^
/app/amatch/tst/code/src/c/PushOfPayables.c:876:2: warning: passing argument 2 of 'strcmp' makes pointer from integer without a cast [enabled by default]
  if ((strcmp(fa_ltrim(pc_word[1]),fa_ltrim(VENDOR_ID))==TRUE)
  ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:206:25: note: expected 'const char *' but argument is of type 'int'
         extern int      strcmp(const char *, const char *);
                         ^
/app/amatch/tst/code/src/c/PushOfPayables.c:877:5: warning: passing argument 1 of 'strcmp' makes pointer from integer without a cast [enabled by default]
     &&(strcmp(fa_ltrim(pc_word[2]),fa_ltrim(INV_NUMBER))==TRUE)
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:206:25: note: expected 'const char *' but argument is of type 'int'
         extern int      strcmp(const char *, const char *);
                         ^
/app/amatch/tst/code/src/c/PushOfPayables.c:877:5: warning: passing argument 2 of 'strcmp' makes pointer from integer without a cast [enabled by default]
     &&(strcmp(fa_ltrim(pc_word[2]),fa_ltrim(INV_NUMBER))==TRUE)
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:206:25: note: expected 'const char *' but argument is of type 'int'
         extern int      strcmp(const char *, const char *);
                         ^
/app/amatch/tst/code/src/c/PushOfPayables.c:878:5: warning: passing argument 1 of 'strcmp' makes pointer from integer without a cast [enabled by default]
     &&(strcmp(fa_ltrim(pc_word[25]),fa_ltrim(ADJ_CTRL_NUMBER))==TRUE))
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:206:25: note: expected 'const char *' but argument is of type 'int'
         extern int      strcmp(const char *, const char *);
                         ^
/app/amatch/tst/code/src/c/PushOfPayables.c:878:5: warning: passing argument 2 of 'strcmp' makes pointer from integer without a cast [enabled by default]
     &&(strcmp(fa_ltrim(pc_word[25]),fa_ltrim(ADJ_CTRL_NUMBER))==TRUE))
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:206:25: note: expected 'const char *' but argument is of type 'int'
         extern int      strcmp(const char *, const char *);
                         ^
/app/amatch/tst/code/src/c/PushOfPayables.c:888:2: warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast [enabled by default]
  strcpy(VENDOR_ID,fa_ltrim(pc_word[1]));
  ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:201:26: note: expected 'const char *' but argument is of type 'int'
         extern char     *strcpy(char * __restrict__, const char * __restrict__);
                          ^
/app/amatch/tst/code/src/c/PushOfPayables.c:889:2: warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast [enabled by default]
  strcpy(INV_NUMBER,fa_ltrim(pc_word[2]));
  ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:201:26: note: expected 'const char *' but argument is of type 'int'
         extern char     *strcpy(char * __restrict__, const char * __restrict__);
                          ^
/app/amatch/tst/code/src/c/PushOfPayables.c:890:2: warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast [enabled by default]
  strcpy(ADJ_CTRL_NUMBER,fa_ltrim(pc_word[25]));
  ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:201:26: note: expected 'const char *' but argument is of type 'int'
         extern char     *strcpy(char * __restrict__, const char * __restrict__);
                          ^
/app/amatch/tst/code/src/c/PushOfPayables.c:903:4: warning: passing argument 1 of 'strcat' makes pointer from integer without a cast [enabled by default]
    fprintf(g_fp,"%-33s",strcat(fa_ltrim(pc_word[2]),fa_ltrim(pc_word[3])));
    ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:203:26: note: expected 'char *' but argument is of type 'int'
         extern char     *strcat(char * __restrict__, const char * __restrict__);
                          ^
/app/amatch/tst/code/src/c/PushOfPayables.c:903:4: warning: passing argument 2 of 'strcat' makes pointer from integer without a cast [enabled by default]
    fprintf(g_fp,"%-33s",strcat(fa_ltrim(pc_word[2]),fa_ltrim(pc_word[3])));
    ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:203:26: note: expected 'const char *' but argument is of type 'int'
         extern char     *strcat(char * __restrict__, const char * __restrict__);
                          ^
/app/amatch/tst/code/src/c/PushOfPayables.c:907:4: warning: passing argument 1 of 'atof' makes pointer from integer without a cast [enabled by default]
    i_amount = atof(fa_ltrim(pc_word[7]));
    ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:181:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:286:17: note: expected 'const char *' but argument is of type 'int'
  extern double  atof(const char *);
                 ^
/app/amatch/tst/code/src/c/PushOfPayables.c:909:4: warning: passing argument 1 of 'atof' makes pointer from integer without a cast [enabled by default]
    i_amount = atof(fa_ltrim(pc_word[8]));
    ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:181:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:286:17: note: expected 'const char *' but argument is of type 'int'
  extern double  atof(const char *);
                 ^
/app/amatch/tst/code/src/c/PushOfPayables.c:927:4: warning: passing argument 1 of 'atof' makes pointer from integer without a cast [enabled by default]
    i_amount = atof(fa_ltrim(pc_word[22]));
    ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:181:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:286:17: note: expected 'const char *' but argument is of type 'int'
  extern double  atof(const char *);
                 ^
/app/amatch/tst/code/src/c/PushOfPayables.c:1180:5: warning: passing argument 1 of 'strcat' makes pointer from integer without a cast [enabled by default]
     fprintf(g_fp,"%-33s", strcat(fa_ltrim(pc_word[2]),fa_ltrim(pc_word[3])));
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:203:26: note: expected 'char *' but argument is of type 'int'
         extern char     *strcat(char * __restrict__, const char * __restrict__);
                          ^
/app/amatch/tst/code/src/c/PushOfPayables.c:1180:5: warning: passing argument 2 of 'strcat' makes pointer from integer without a cast [enabled by default]
     fprintf(g_fp,"%-33s", strcat(fa_ltrim(pc_word[2]),fa_ltrim(pc_word[3])));
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:203:26: note: expected 'const char *' but argument is of type 'int'
         extern char     *strcat(char * __restrict__, const char * __restrict__);
                          ^
/app/amatch/tst/code/src/c/PushOfPayables.c:1186:5: warning: passing argument 1 of 'atof' makes pointer from integer without a cast [enabled by default]
     i_amount = atof(fa_ltrim(pc_word[7]));
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:181:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:286:17: note: expected 'const char *' but argument is of type 'int'
  extern double  atof(const char *);
                 ^
/app/amatch/tst/code/src/c/PushOfPayables.c:1188:5: warning: passing argument 1 of 'atof' makes pointer from integer without a cast [enabled by default]
     i_amount = atof(fa_ltrim(pc_word[8]));
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:181:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:286:17: note: expected 'const char *' but argument is of type 'int'
  extern double  atof(const char *);
                 ^
/app/amatch/tst/code/src/c/PushOfPayables.c:1213:5: warning: passing argument 2 of 'strcmp' makes pointer from integer without a cast [enabled by default]
     if (strcmp(c_out_net_due_date,fa_ltrim(pc_word[10]))==0)
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:182:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/string.h:206:25: note: expected 'const char *' but argument is of type 'int'
         extern int      strcmp(const char *, const char *);
                         ^
/app/amatch/tst/code/src/c/PushOfPayables.c:1237:5: warning: passing argument 1 of 'atof' makes pointer from integer without a cast [enabled by default]
     i_amount = atof(fa_ltrim(pc_word[7]));
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:181:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:286:17: note: expected 'const char *' but argument is of type 'int'
  extern double  atof(const char *);
                 ^
/app/amatch/tst/code/src/c/PushOfPayables.c:1239:5: warning: passing argument 1 of 'atof' makes pointer from integer without a cast [enabled by default]
     i_amount = atof(fa_ltrim(pc_word[8]));
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:181:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:286:17: note: expected 'const char *' but argument is of type 'int'
  extern double  atof(const char *);
                 ^
/app/amatch/tst/code/src/c/PushOfPayables.c:1260:5: warning: passing argument 1 of 'atof' makes pointer from integer without a cast [enabled by default]
     i_amount = atof(fa_ltrim(pc_word[22]));
     ^
In file included from /app/amatch/tst/code/src/c/PushOfPayables.c:181:0:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:286:17: note: expected 'const char *' but argument is of type 'int'
  extern double  atof(const char *);
                 ^
make: The error code from the last command is 1.


Stop.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Need help with Proc compilation with GCC 4.8.3
  2023-03-01  6:33 Need help with Proc compilation with GCC 4.8.3 Kondreddy, Vinay Kumar
@ 2023-03-01  9:00 ` Jonathan Wakely
  2023-03-01  9:36   ` Jonathan Wakely
  2023-03-01 11:43 ` James K. Lowden
  1 sibling, 1 reply; 7+ messages in thread
From: Jonathan Wakely @ 2023-03-01  9:00 UTC (permalink / raw)
  To: Kondreddy, Vinay Kumar
  Cc: gcc, gcc-help, gcc-bugzilla-account-request, Mahankali, Sharath Kumar

[-- Attachment #1: Type: text/plain, Size: 2927 bytes --]

Please don't cross-post to several mailing lists, this belongs on the
gcc-help mailing list only.



On Wed, 1 Mar 2023, 06:33 Kondreddy, Vinay Kumar, <
VinayKumar.Kondreddy@staples.com> wrote:

> Hi Team,
>
>
>
> We are using GCC 4.8.3 for one of our legacy applications i.e: Automatch.
> after database upgrade from 11/2 to 19.0.0, while recompiling one of our
> proc program we are getting below error. Could you please help us to
> resolve below issue. Please find full error trace in above attachment.
>
>
>
> Also could you please provide any URL or website to download proper GCC
> along with their dependencies as we are not able to find all dependencies
> at one place.
>
>
>
> Error:-
>
> amatch@autd1db01 $ make -f PushOfPayables.mk
>
>         /ORACLE/app/oracle/product/19.0.0/dbhome_1/bin/proc
> SQLCHECK=SEMANTICS mode=oracle ireclen=120  userid=am_user/steve7
> DEFINE=__64BIT__ /usr/include/
> iname=/app/amatch/tst/code/src/proc/PushOfPayables.pc
> oname=/app/amatch/tst/code/src/c/PushOfPayables.c
>
>
>
> Pro*C/C++: Release 19.0.0.0.0 - Production on Wed Feb 22 09:54:42 2023
>
> Version 19.15.0.0.0
>
>
>
> Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights
> reserved.
>
>
>
> System default option values taken from:
> /ORACLE/app/oracle/product/19.0.0/dbhome_1/precomp/admin/pcscfg.cfg
>
>
>
>         /usr/bin/gcc -c -o /app/amatch/tst/code/obj/PushOfPayables.o
> -maix64  /usr/include/  /app/amatch/tst/code/include
> -I/ORACLE/app/oracle/product/19.0.0/dbhome_1/precomp/public
> -I/app/amatch/tst/code/include /app/amatch/tst/code/src/c/PushOfPayables.c
>
> In file included from /usr/include/sys/resource.h:57:0,
>
>                  from
> /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/wait.h:62,
>
>                  from
> /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:349,
>
>                  from /app/amatch/tst/code/src/c/PushOfPayables.c:181:
>
> /usr/include/sys/time.h:110:16: error: redefinition of 'struct sigset_t'
>
> typedef struct sigset_t {
>
>                 ^
>
> In file included from
> /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdio.h:479:0,
>
>                  from /app/amatch/tst/code/src/c/PushOfPayables.c:180:
>
> /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/types.h:345:16:
> note: originally defined here
>
> typedef struct sigset_t {
>
>                 ^
>
> In file included from /usr/include/sys/resource.h:57:0,
>
>                  from
> /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/wait.h:62,
>
>                  from
> /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdlib.h:349,
>
>                  from /app/amatch/tst/code/src/c/PushOfPayables.c:181:
>
> /usr/include/sys/time.h:126:3: error: conflicting types for 'sigset_t'
>
> } sigset_t;
>
>    ^
>
>
>
> Thanks & Regards,
>
> Vinay Kumar
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Need help with Proc compilation with GCC 4.8.3
  2023-03-01  9:00 ` Jonathan Wakely
@ 2023-03-01  9:36   ` Jonathan Wakely
  2023-03-01 16:26     ` [EXT]:Re: " Mahankali, Sharath Kumar
  0 siblings, 1 reply; 7+ messages in thread
From: Jonathan Wakely @ 2023-03-01  9:36 UTC (permalink / raw)
  To: Kondreddy, Vinay Kumar; +Cc: gcc-help, Mahankali, Sharath Kumar

[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]

On Wed, 1 Mar 2023, 09:00 Jonathan Wakely, <jwakely.gcc@gmail.com> wrote:

> Please don't cross-post to several mailing lists, this belongs on the
> gcc-help mailing list only.
>
>
>
> On Wed, 1 Mar 2023, 06:33 Kondreddy, Vinay Kumar, <
> VinayKumar.Kondreddy@staples.com> wrote:
>
>> Hi Team,
>>
>>
>>
>> We are using GCC 4.8.3 for one of our
>>
>> That version of gcc is ancient and not supported by the GCC project.

 legacy applications i.e: Automatch. after database upgrade from 11/2 to
>> 19.0.0, while recompiling one of our proc program we are getting below
>> error. Could you please help us to resolve below issue. Please find full
>> error trace in above attachment.
>>
>>
>>
>>
It looks like your installation of gcc was built for a different version of
AIX, with different system headers.

There is a script called mkheaders under the GCC installation tree which
you can use to recreate the headers for the current OS.


Also could you please provide any URL or website to download proper GCC
>> along with their dependencies as we are not able to find all dependencies
>> at one place.
>>
>
It's all available from
http://gcc.gnu.org/pub/gcc/
See the infrastructure directory for prerequisites.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Need help with Proc compilation with GCC 4.8.3
  2023-03-01  6:33 Need help with Proc compilation with GCC 4.8.3 Kondreddy, Vinay Kumar
  2023-03-01  9:00 ` Jonathan Wakely
@ 2023-03-01 11:43 ` James K. Lowden
  2023-03-01 17:31   ` Jonathan Wakely
  1 sibling, 1 reply; 7+ messages in thread
From: James K. Lowden @ 2023-03-01 11:43 UTC (permalink / raw)
  To: Kondreddy, Vinay Kumar; +Cc: gcc-help

On Wed, 1 Mar 2023 06:33:25 +0000
"Kondreddy, Vinay Kumar via Gcc" <gcc@gcc.gnu.org> wrote:

> /usr/include/sys/time.h:110:16: error: redefinition of 'struct sigset_t'
> typedef struct sigset_t {
>                 ^
> In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdio.h:479:0,
>                  from /app/amatch/tst/code/src/c/PushOfPayables.c:180:
> /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/types.h:345:16: note: originally defined here

The question you're asking is about the C language, not the gcc
compiler.  

> We are using GCC 4.8.3

I see no evidence of that.  Your "make" output shows: 

> Pro*C/C++: Release 19.0.0.0.0 

The error says what it means: struct sigset_t is defined twice.  It
cannot be, because the compiler cannot serve two masters.  That is,
there can be only one definition for each type.  

Based on the directory names, 

	/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/...
and
	/usr/include/sys/time.h

it would seem that copy of sys/types.h was either installed by the Pro*C/C++ compiler, or installed for the sake of that compiler.  

Perhaps the last time your application was compiled, there was only one C compiler installed on the machine.   Now, it would seem there are two.  

You need to decide which compiler to use, and which libraries and header files to use with it.  

--jkl

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [EXT]:Re: Need help with Proc compilation with GCC 4.8.3
  2023-03-01  9:36   ` Jonathan Wakely
@ 2023-03-01 16:26     ` Mahankali, Sharath Kumar
  2023-03-01 18:09       ` Jonathan Wakely
  0 siblings, 1 reply; 7+ messages in thread
From: Mahankali, Sharath Kumar @ 2023-03-01 16:26 UTC (permalink / raw)
  To: Jonathan Wakely, Kondreddy, Vinay Kumar, gcc-help

[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]

@Jonathan Wakely<mailto:jwakely.gcc@gmail.com>@gcc-help<mailto:gcc-help@gcc.gnu.org>

Please help us on below issue

Regards
Sharath

________________________________
From: Jonathan Wakely <jwakely.gcc@gmail.com>
Sent: Wednesday, March 1, 2023 3:06 PM
To: Kondreddy, Vinay Kumar <VinayKumar.Kondreddy@Staples.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>; Mahankali, Sharath Kumar <SharathKumar.Mahankali@Staples.com>
Subject: [EXT]:Re: Need help with Proc compilation with GCC 4.8.3



On Wed, 1 Mar 2023, 09:00 Jonathan Wakely, <jwakely.gcc@gmail.com<mailto:jwakely.gcc@gmail.com>> wrote:
Please don't cross-post to several mailing lists, this belongs on the gcc-help mailing list only.



On Wed, 1 Mar 2023, 06:33 Kondreddy, Vinay Kumar, <VinayKumar.Kondreddy@staples.com<mailto:VinayKumar.Kondreddy@staples.com>> wrote:

Hi Team,



We are using GCC 4.8.3 for one of our

That version of gcc is ancient and not supported by the GCC project.


 legacy applications i.e: Automatch. after database upgrade from 11/2 to 19.0.0, while recompiling one of our proc program we are getting below error. Could you please help us to resolve below issue. Please find full error trace in above attachment.



It looks like your installation of gcc was built for a different version of AIX, with different system headers.

There is a script called mkheaders under the GCC installation tree which you can use to recreate the headers for the current OS.



Also could you please provide any URL or website to download proper GCC along with their dependencies as we are not able to find all dependencies at one place.

It's all available from
http://gcc.gnu.org/pub/gcc/
See the infrastructure directory for prerequisites.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Need help with Proc compilation with GCC 4.8.3
  2023-03-01 11:43 ` James K. Lowden
@ 2023-03-01 17:31   ` Jonathan Wakely
  0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Wakely @ 2023-03-01 17:31 UTC (permalink / raw)
  To: James K. Lowden; +Cc: Kondreddy, Vinay Kumar, gcc-help

On Wed, 1 Mar 2023 at 16:24, James K. Lowden <jklowden@schemamania.org> wrote:
>
> On Wed, 1 Mar 2023 06:33:25 +0000
> "Kondreddy, Vinay Kumar via Gcc" <gcc@gcc.gnu.org> wrote:
>
> > /usr/include/sys/time.h:110:16: error: redefinition of 'struct sigset_t'
> > typedef struct sigset_t {
> >                 ^
> > In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/stdio.h:479:0,
> >                  from /app/amatch/tst/code/src/c/PushOfPayables.c:180:
> > /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/include-fixed/sys/types.h:345:16: note: originally defined here
>
> The question you're asking is about the C language, not the gcc
> compiler.
>
> > We are using GCC 4.8.3
>
> I see no evidence of that.  Your "make" output shows:
>
> > Pro*C/C++: Release 19.0.0.0.0
>
> The error says what it means: struct sigset_t is defined twice.  It
> cannot be, because the compiler cannot serve two masters.  That is,
> there can be only one definition for each type.
>
> Based on the directory names,
>
>         /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/...
> and
>         /usr/include/sys/time.h
>
> it would seem that copy of sys/types.h was either installed by the Pro*C/C++ compiler, or installed for the sake of that compiler.

That's a gcc path, and contains the "fixincludes" version of the system stdlib.h

It looks to me like GCC was built against AIX 7.1.0.0 when struct
sigset_t was defined in stdlib.h, but now it's being compiled on a
different version of AIX where sigset_t is defined in time.h

The solution is to re-generate the fixincludes headers, using the
mkheader script that I mentioned in my reply. That will sync GCC's
"fixed" stdlib.h with the current version of stdlib.h on the machine.


> Perhaps the last time your application was compiled, there was only one C compiler installed on the machine.   Now, it would seem there are two.
>
> You need to decide which compiler to use, and which libraries and header files to use with it.
>
> --jkl

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [EXT]:Re: Need help with Proc compilation with GCC 4.8.3
  2023-03-01 16:26     ` [EXT]:Re: " Mahankali, Sharath Kumar
@ 2023-03-01 18:09       ` Jonathan Wakely
  0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Wakely @ 2023-03-01 18:09 UTC (permalink / raw)
  To: Mahankali, Sharath Kumar; +Cc: Kondreddy, Vinay Kumar, gcc-help

You've just sent my reply back to me (and the list). Did you read it?
I answered your questions already.

On Wed, 1 Mar 2023 at 16:26, Mahankali, Sharath Kumar
<SharathKumar.Mahankali@staples.com> wrote:
>
> @Jonathan Wakely@gcc-help
>
> Please help us on below issue
>
> Regards
> Sharath
>
> ________________________________
> From: Jonathan Wakely <jwakely.gcc@gmail.com>
> Sent: Wednesday, March 1, 2023 3:06 PM
> To: Kondreddy, Vinay Kumar <VinayKumar.Kondreddy@Staples.com>
> Cc: gcc-help <gcc-help@gcc.gnu.org>; Mahankali, Sharath Kumar <SharathKumar.Mahankali@Staples.com>
> Subject: [EXT]:Re: Need help with Proc compilation with GCC 4.8.3
>
>
>
> On Wed, 1 Mar 2023, 09:00 Jonathan Wakely, <jwakely.gcc@gmail.com> wrote:
>
> Please don't cross-post to several mailing lists, this belongs on the gcc-help mailing list only.
>
>
>
> On Wed, 1 Mar 2023, 06:33 Kondreddy, Vinay Kumar, <VinayKumar.Kondreddy@staples.com> wrote:
>
> Hi Team,
>
>
>
> We are using GCC 4.8.3 for one of our
>
> That version of gcc is ancient and not supported by the GCC project.
>
>  legacy applications i.e: Automatch. after database upgrade from 11/2 to 19.0.0, while recompiling one of our proc program we are getting below error. Could you please help us to resolve below issue. Please find full error trace in above attachment.
>
>
>
>
> It looks like your installation of gcc was built for a different version of AIX, with different system headers.
>
> There is a script called mkheaders under the GCC installation tree which you can use to recreate the headers for the current OS.
>
>
> Also could you please provide any URL or website to download proper GCC along with their dependencies as we are not able to find all dependencies at one place.
>
>
> It's all available from
> http://gcc.gnu.org/pub/gcc/
> See the infrastructure directory for prerequisites.
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-01 18:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01  6:33 Need help with Proc compilation with GCC 4.8.3 Kondreddy, Vinay Kumar
2023-03-01  9:00 ` Jonathan Wakely
2023-03-01  9:36   ` Jonathan Wakely
2023-03-01 16:26     ` [EXT]:Re: " Mahankali, Sharath Kumar
2023-03-01 18:09       ` Jonathan Wakely
2023-03-01 11:43 ` James K. Lowden
2023-03-01 17:31   ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).