Need help with Proc compilation with GCC 4.8.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
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.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux