Pro C Compilation problem


 
Thread Tools Search this Thread
Operating Systems AIX Pro C Compilation problem
# 1  
Old 02-06-2009
Pro C Compilation problem

Hi,

I have AIX 5.3 and my code is written in proc . i am getting following error during compilation

Please help?////.....






:-d:
Compiling with RMS
cc -w -q32 -qidirfirst -ISource/Header -I/usr/vacpp/include -q32 -DRMS -DDISEC -DDBG -DBIGENDIAN -DBIT32 -c -q32 Source/Common/C/Queue.c
mv Queue.o Objects/Queue.o
cc -w -qidirfirst -ISource/Header -I/usr/vacpp/include -q32 -DRMS -DDISEC -DDBG -DBIGENDIAN -DBIT32 -c -q32 Source/Common/C/Log.c
mv Log.o Objects/Log.o
cc -w -qidirfirst -ISource/Header -I/usr/vacpp/include -q32 -DRMS -DDISEC -DDBG -DBIGENDIAN -DBIT32 -q32 -c Source/Common/C/Twiddle.c
mv Twiddle.o Objects/Twiddle.o
cc -w -qidirfirst -ISource/Header -I/usr/vacpp/include -q32 -DRMS -DDISEC -DDBG -DBIGENDIAN -DBIT32 -q32 -c Source/Common/C/BatchStatus.c
mv BatchStatus.o Objects/BatchStatus.o
cc -w -c -qidirfirst -ISource/Header -I/usr/vacpp/include -q32 -q32 -L/usr/local/ssl/lib -lssl -lcrypto -I/usr/local/ssl/include Source/Common/C/3DES.c -DRMS -DDISEC -DDBG -DBIGENDIAN -DBIT32
mv 3DES.o Objects/3DES.o
rm -f Objects/libRELAYPROC.a
ar -r Objects/libRELAYPROC.a Objects/Queue.o Objects/Log.o Objects/Twiddle.o Objects/BatchStatus.o Objects/3DES.o
cpp -qidirfirst -ISource/Header -I/usr/vacpp/include -q32 -C -P -D_REENTRANT -D_THREAD_SAFE -q32 -D_PTHREAD_ENV_UNIX -L/usr/local/ssl/lib -lssl -lcrypto -I/usr/local/ssl/include -DRMS -DDISEC -DDBG -DBIGENDIAN -DBIT32 Source/Relay/Proc/RelayProc.pc > Source/Relay/Proc/dummy.pc
SOURCE_FILE=RelayProc.c ;export SOURCE_FILE; Makefile/Relay_precom Source/Relay/Proc/dummy Objects/libRELAYPROC.a -DRMS -DDISEC -DDBG -DBIGENDIAN -DBIT32 -lrt
echo "I M HERE"
I M HERE
echo Source/Relay/Proc
Source/Relay/Proc
echo -DBIT32 -lrt
-DBIT32 -lrt
echo C_SOURCE RelayProc.c
C_SOURCE RelayProc.c
echo PROC proc
PROC proc
/usr/lib/cpp -C -P -DBIGENDIAN -DBIT32 -DDBG -DRMS -DOPENFIX -ISource/Header -I/oracle/home/product/9.0.2/precomp/public -I/oracle/home/product/9.0.2/rdbms/public -I/oracle/home/product/9.0.2/plsql/public Source/Relay/Proc/dummy.pc Source/Relay/Proc/dummy.cpp
proc define=SIZ200 define=BIGENDIAN define=BIT32 define=DBG sqlcheck=full define=RMS userid=tatacapdev/tatacapdev@HSLBENCH unsafe_null=yes dbms=v8 mode=oracle include=/usr/vacpp/include include=Source/Header duration=session select_error=yes code=kr_c maxopencursors=100 release_cursor=no hold_cursor=yes char_map=varchar2 define=OMS -ISource/Header iname=Source/Relay/Proc/dummy.cpp oname=Source/Relay/C/RelayProc.c

Pro*C/C++: Release 9.2.0.7.0 - Production on Thu Feb 5 15:28:41 2009

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

System default option values taken from: /user1/oracle/OraHome1/precomp/admin/pcscfg.cfg

Syntax error at line 20877, column 2, file Source/Relay/Proc/dummy.cpp:
Error at line 20877, column 2 in file Source/Relay/Proc/dummy.cpp
__attribute__((__format__(__printf__,2,3)));
.1
PCC-S-02201, Encountered the symbol "__attribute__" when expecting one of the fo
llowing:

; { , = ( [ auto, char, const, double, enum, extern, float,
int, long, ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
typedef, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name, a precompiled header, exec oracle,
exec oracle begin, exec, exec sql, exec sql begin,
exec sql type, exec sql var, exec sql include,
The symbol "{" was substituted for "__attribute__" to continue.

Syntax error at line 20879, column 2, file Source/Relay/Proc/dummy.cpp:
Error at line 20879, column 2 in file Source/Relay/Proc/dummy.cpp
__attribute__((__format__(__printf__,2,0)));
.1
PCC-S-02201, Encountered the symbol "__attribute__" when expecting one of the fo
llowing:

; , = ( [
The symbol ";" was substituted for "__attribute__" to continue.

Syntax error at line 20881, column 2, file Source/Relay/Proc/dummy.cpp:
Error at line 20881, column 2 in file Source/Relay/Proc/dummy.cpp
__attribute__((__format__(__printf__,3,4)));
.1
PCC-S-02201, Encountered the symbol "__attribute__" when expecting one of the fo
llowing:

; , = ( [
The symbol ";" was substituted for "__attribute__" to continue.

Syntax error at line 20883, column 2, file Source/Relay/Proc/dummy.cpp:
Error at line 20883, column 2 in file Source/Relay/Proc/dummy.cpp
__attribute__((__format__(__printf__,3,0)));
.1
PCC-S-02201, Encountered the symbol "__attribute__" when expecting one of the fo
llowing:

; , = ( [
The symbol ";" was substituted for "__attribute__" to continue.

Syntax error at line 21781, column 25, file Source/Relay/Proc/dummy.cpp:
Error at line 21781, column 25 in file Source/Relay/Proc/dummy.cpp
typedef const ASN1_ITEM ASN1_ITEM_EXP;
........................1
PCC-S-02201, Encountered the symbol "ASN1_ITEM_EXP" when expecting one of the fo
llowing:

; , = ( [
The symbol ";" was substituted for "ASN1_ITEM_EXP" to continue.

Syntax error at line 21832, column 3, file Source/Relay/Proc/dummy.cpp:
Error at line 21832, column 3 in file Source/Relay/Proc/dummy.cpp
ASN1_STRING * asn1_string;
..1
PCC-S-02201, Encountered the symbol "ASN1_STRING" when expecting one of the foll
owing:

} char, const, double, enum, float, int, long, ulong_varchar,
OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
struct, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name,
The symbol "enum," was substituted for "ASN1_STRING" to continue.

Syntax error at line 21833, column 3, file Source/Relay/Proc/dummy.cpp:
Error at line 21833, column 3 in file Source/Relay/Proc/dummy.cpp
ASN1_OBJECT * object;
..1
PCC-S-02201, Encountered the symbol "ASN1_OBJECT" when expecting one of the foll
owing:

} char, const, double, enum, float, int, long, ulong_varchar,
OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
struct, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name,
The symbol "enum," was substituted for "ASN1_OBJECT" to continue.

Syntax error at line 21850, column 3, file Source/Relay/Proc/dummy.cpp:
Error at line 21850, column 3 in file Source/Relay/Proc/dummy.cpp
ASN1_STRING * set;
..1
PCC-S-02201, Encountered the symbol "ASN1_STRING" when expecting one of the foll
owing:

} char, const, double, enum, float, int, long, ulong_varchar,
OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
struct, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name,

Syntax error at line 0, column 0, file Source/Relay/Proc/dummy.cpp:
Error at line 0, column 0 in file Source/Relay/Proc/dummy.cpp
PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:

; : an identifier, end-exec, random_terminal

Error at line 0, column 0 in file Source/Relay/Proc/dummy.cpp
PCC-F-02102, Fatal error while doing C preprocessing







===========================================================

COMPILATION NOT SUCCESSFULL

===========================================================





Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Problem in compilation.

Hi, I am executing the below mentioned code:- proc SQLCHECK=SEMANTICS iname=CDBInteractor.pc parse=none code=cpp cpp_suffix=cpp g++ -c main.cpp g++ -o pre_request_engine main.o -I/oracle/oracle/app/product/10g/precomp -L/oracle/oracle/app/product/10g/lib32 -lnsl -ldl And... (2 Replies)
Discussion started by: tushar_tus
2 Replies

2. Programming

C Compilation problem

Dear all I am new to C programming In response to the post cat get_time.c #include <stdlib.h> #include <sys/time.h> main() { struct timeval tv; struct timezone tz; struct tm *tm; gettimeofday(&tv, &tz); tm=localtime(&tv.tv_sec); printf("... (2 Replies)
Discussion started by: on9west
2 Replies

3. UNIX for Advanced & Expert Users

Problem on Pro*C compilation on HP-UX

Hi, This is my first post to this forum. I have been facing a strange compilation error message. When I try to make a pro*C file on HP-UX ( uname -a shows HP-UX aopc7449 B.11.11 U 9000/800 2416083493 unlimited-user license), ::: Linking... /usr/ccs/bin/ld: profls.o: Not a valid object file... (5 Replies)
Discussion started by: asutoshch
5 Replies

4. Programming

Compilation error when compiling Pro*C code

I'm running a query similar to the one that I'm describing below -: _______________________________ EXEC SQL INSERT INTO TABLE1 ( C1 ,C2 ,C3 ,C4 ) (SELECT DISTINCT B.V1 ,B.V2 ,( SELECT D.V3 FROM TABLE2 D WHERE D.V3 = C.V4) ,B.V4 FROM TABLE2 B ,TABLE3 C WHERE B.V3 = C.V4) ;... (1 Reply)
Discussion started by: maheshp
1 Replies

5. Shell Programming and Scripting

Pro*c compilation error

Hi, Recently our codes have been migrated to new server, whenever we compile any pro*c programs we receive the following errorl. please help >> make -f lib_util.mk all CC= ucbcc 4Compiling lib_util ### command line files and options (expanded): ### -xO3 -DNULL=0 -v -o lib_util.o... (1 Reply)
Discussion started by: satvd
1 Replies

6. Programming

pro*c compilation error

Hi, Recently our codes have been migrated to new server, whenever we compile any pro*c programs we receive the following errorl. please help >> make -f lib_util.mk all CC= ucbcc 4Compiling lib_util ### command line files and options (expanded): ### -xO3 -DNULL=0 -v -o lib_util.o... (0 Replies)
Discussion started by: satvd
0 Replies

7. Programming

Compilation problem on HP-UX

Hi, Environment : HP-UX avalon B.11.11 U 9000/800 3547052374 unlimited-user license aCC version :aCC: HP ANSI C++ B3910B A.03.37 I need to find a way out of this errors.can anyone help me . $ aCC db.cc -I$ORACLE_HOME/rdbms/public -I/disk1/oracle/product/10.2.0.2/* Error (future)... (1 Reply)
Discussion started by: varuntayur
1 Replies

8. Programming

compilation problem

i have a class name 1.c in tht i am using function n wich has his body in 2.c and declaration in 2.h now how can i compile 1.c. ex; 1.c int main() { //some data n(10); //somedata } ***** 2.c int n(int k) { //some data } int main() { some data (2 Replies)
Discussion started by: phani_sree
2 Replies

9. Solaris

compilation problem

I am compiling a software named wine When i run make then at the end following error generated. DVAPI32_ -foversion.res version.rc ld.so.1: ../../tools/wrc/wrc: fatal: relocation error: file ../../tools/wrc/wrc: symbol wine_casemap_upper: referenced symbol not found *** Signal 9 make:... (0 Replies)
Discussion started by: mansoorulhaq
0 Replies

10. UNIX for Dummies Questions & Answers

domain logon problem - FreeBSD PDC w/ win2k pro and winxp pro

this is the seventh problem i'm having with samba. for some reason, i cannot logon to the domain. i've created user accounts... and i was able to establish a connection between the samba server (my PDC) and my workstations by logging in as "root." however now when i try to logon it gives... (5 Replies)
Discussion started by: xyyz
5 Replies
Login or Register to Ask a Question