public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Kondreddy, Vinay Kumar" <VinayKumar.Kondreddy@Staples.com>
To: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>,
	"gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>,
	"gcc-bugzilla-account-request@gcc.gnu.org"
	<gcc-bugzilla-account-request@gcc.gnu.org>
Cc: "Mahankali, Sharath Kumar" <SharathKumar.Mahankali@Staples.com>
Subject: Need help with Proc compilation with GCC 4.8.3
Date: Wed, 1 Mar 2023 06:33:25 +0000	[thread overview]
Message-ID: <DM4PR03MB61904C8693A34D2093DA7D9D9EAD9@DM4PR03MB6190.namprd03.prod.outlook.com> (raw)


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

             reply	other threads:[~2023-03-01  6:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-01  6:33 Kondreddy, Vinay Kumar [this message]
2023-03-01  9:00 ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM4PR03MB61904C8693A34D2093DA7D9D9EAD9@DM4PR03MB6190.namprd03.prod.outlook.com \
    --to=vinaykumar.kondreddy@staples.com \
    --cc=SharathKumar.Mahankali@Staples.com \
    --cc=gcc-bugzilla-account-request@gcc.gnu.org \
    --cc=gcc-help@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).