Compile errors because of the ras.h file


 
Thread Tools Search this Thread
Operating Systems AIX Compile errors because of the ras.h file
# 1  
Old 04-10-2008
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.
# 2  
Old 04-10-2008
I suspect it is complaining about the longlong type (LL) which is only supported by 64-bit programming models.
# 3  
Old 04-11-2008
I also tried to compile it in 64 bit mode and got the exact same errors as in 32 bit mode.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

compile errors with gcc4.1.2 in rhel5.5

Hi All, My test code ldap_test.c can be compiled successfully with gcc2.95.2. But not gcc 4.1.2 in redhat5.5. The command I used and the output are: #gcc -fPIC -shared -o lib_ldap_rhel.so ldap_test.c /usr/include/ldap.h:179: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âtypedefâ... (2 Replies)
Discussion started by: rluo
2 Replies

2. UNIX for Dummies Questions & Answers

MP-RAS file size limitations

Hello, Here is the question. We have 2 identical boxes (see below), one is functioning as production second is being built as backup. Backup was built by 'osa' restore (image taken from production). Problem is..the max filesize on production is 2147481600 bytes and the max filesize on backup... (0 Replies)
Discussion started by: dbamadness
0 Replies

3. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

4. Solaris

Compile errors on Solaris 10 (missing libwrap)

I'm trying to compile tacacs+-F4.0.4.18 on Solaris 10 (sparc based server). It fails during the "./configure" phase with the following error: checking whether to use libwrap... yes configure: error: Could not find libwrap. You must first install tcp_wrappers. I do a have tcpwrappers... (4 Replies)
Discussion started by: pingmeback
4 Replies

5. Solaris

Errors trying to compile PHP for use with MySQL on Solaris 10

have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build: ./configure --prefix=/usr/local/php5 \... (2 Replies)
Discussion started by: sunsysadm2003
2 Replies

6. Programming

Not able to compile Pro*c file due - give errors and points to /usr/include/.. file

I am trying to compile the pro*C file but gives errors. It says it encountered "std" while it was expecting ; , = ( $ $ORACLE_HOME/bin/proc tradewind/dataaccess/Blob.pcc Pro*C/C++: Release 10.2.0.3.0 - Production on Fri May 9 11:10:54 2008 Copyright (c) 1982, 2005, Oracle. All rights... (0 Replies)
Discussion started by: shafi2all
0 Replies

7. Filesystems, Disks and Memory

Help - NCR Unix 3.02 MP-RAS

Hi, I am new to the UNIX operating system and would realy appreciate some answers to these problems. I have a unix box (Actually several of them throughout the different locations) that have NCR MP-RAS 3.02.x.x (with multiuser and possibly security packages installed.) Originally they had 2gb... (4 Replies)
Discussion started by: ad7_98
4 Replies

8. UNIX for Dummies Questions & Answers

Compile and dump errors to a text file

Hi there, I want to compile a program and dump errors to a text file. How could I do so..? Thanks for reading and thanks in advance!!! (6 Replies)
Discussion started by: starstarting
6 Replies

9. UNIX for Advanced & Expert Users

Setting up Linux as a RAS - is is possible?

I need to setup my Linux Server as a RAS, does anyone know how to do it? I have just spent all my money on my hardware setupand an ADSL line, things where I live are VERY expensive. I need to setup my RedHat 7.3 server to be a RAS for myself and my business partner, can anyone please redirect me... (7 Replies)
Discussion started by: leonpmu
7 Replies

10. Programming

compile xev on HPUX 10.20 - errors

Hello, i compiled the program xev under HPUX 10.20 and there are a lot of errors like this. Can anybody help me to fix this errors? make xev cc -O xev.c -o xev /usr/ccs/bin/ld: Unsatisfied symbols: XFree (code) XKeysymToString (code) XSelectInput (code) XOpenDisplay... (1 Reply)
Discussion started by: lan
1 Replies
Login or Register to Ask a Question