The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Not able to compile Pro*c file due - give errors and points to /usr/include/.. file shafi2all High Level Programming 0 05-08-2008 11:27 PM
Not able to compile .pcc (Pro*C++) file shafi2all High Level Programming 0 05-08-2008 01:10 AM
Compile and dump errors to a text file starstarting UNIX for Dummies Questions & Answers 6 10-23-2006 05:45 AM
Compile .C file in Mac OS X 10.2 FerIX High Level Programming 2 10-31-2002 07:11 AM
compile xev on HPUX 10.20 - errors lan High Level Programming 1 05-16-2002 09:22 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-10-2008
Registered User
 

Join Date: Mar 2008
Posts: 6
Compile errors because of the ras.h file

I recently compile some code in 32 bit mode on a AIX 5.3 server that has its kernal set to 64 bit mode. The compile was successful and the code works great. That being the case I use the model of the successful makefile on some other code but ended up getting errors that looked like this......



$ make -f makefile1 all
xlc -P -I./h -I/usr/include -I/usr/include/sys -I.
-I/u01/app/oracle/product/10.2.0/precomp
/public -I/u01/app/oracle/product/10.2.0/rdbms/public
-I/u01/app/oracle/product/10.2.0/rdbms/demo
-I/u01/app/oracle/product/10.2.0/plsql/public
-I/u01/app/oracle/product/10.2.0/network/ -g -D_ORACLE_
src/run_rci.pc
/u01/app/oracle/product/10.2.0/bin/proc SQLCHECK=FULL DBMS=V8 CODE=ANSI_C USERID=user/pass UNSAFE_NULL=YES iname=./run_rci.i

Pro*C/C++: Release 10.2.0.3.0 - Production on Thu Apr 10 16:26:40 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

System default option values taken from: /u01/app/oracle/product/10.2.0/precomp/admin/pcscfg.cfg

Syntax error at line 4931, column 329, file ./run_rci.i:
Error at line 4931, column 329 in file ./run_rci.i
struct CoMpIlE_aSsErT__baddomain { char v[(( (( (ras_cmd_t)0x52 << ( (sizeof(ras_cmd_t)-1) * 8 ) ) | ((ras_cmd_t)(0x1) << 8) | ((ras_cmd_t)(0x100)) ) | ( ( ((((ras_cmd_t)(0x1)) << 8) & ( ( (ras_cmd_t)0xFF ) << ( (sizeof(ras_cmd_t)-1) * 8 ))) || (((ras_cmd_t)(0x1)) == 0) || (((ras_cmd_t)(0x100)) & ~( (ras_cmd_t)0xFF )) ) ? -1LL : 0) ) == -1LL) ? 1 : -1]; };
................................................................................
................................................................................
................................................................................
................................................................................
........1
PCC-S-02201, Encountered the symbol "L" when expecting one of the following:

, = : ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
||= ^= | & == != <= >= << >> ++ -- ->
The symbol "," was substituted for "L" to continue.



I traced some of the verbage (baddomain) back to this file /usr/include/sys/ras.h

What is this file and what is its purpose. It does not exits on my AIX 5.1 machine.

My compiler is C for AIX version 6. Is it possible that I need to upgrade my compiler to a higher version to solve this issue? Maybe this lower version is not fimiliar with this file.

Thanks for any and all help.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-10-2008
Moderator
 

Join Date: Dec 2003
Location: /ksh93
Posts: 875
I suspect it is complaining about the longlong type (LL) which is only supported by 64-bit programming models.
Reply With Quote
  #3 (permalink)  
Old 04-11-2008
Registered User
 

Join Date: Mar 2008
Posts: 6
I also tried to compile it in 64 bit mode and got the exact same errors as in 32 bit mode.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0