05-12-2008
compiling issues
Anyone know why I'm getting the below compiling errors when I #include the <sys/shm.h> file to my .h file?....
This is on a 64bitmode machine but compiling some code in 32bitmode with the OBJECT_MODE set to 32. When I don't include this file, all compiles fine. But the shm.h file is needed for shared memory messaging.
**********************************
cc -P -I./h -I/usr/include -I/u01/app/oracle/product/10.2.0/precomp/public -g -D_ORACLE_ ./src/exec_que.pc
/u01/app/oracle/product/10.2.0/bin/proc SQLCHECK=FULL DBMS=V8 CODE=ANSI_C USERID=user/pass UNSAFE_NULL=YES iname=./exec_que.i
Pro*C/C++: Release 10.2.0.3.0 - Production on Mon May 12 17:18:04 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 5809, column 329, file ./exec_que.i:
Error at line 5809, column 329 in file ./exec_que.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.
*********************************
10 More Discussions You Might Find Interesting
1. Programming
I recently loaded SuSE on my intel comp.
I am presently taking a walk down memory lane from my days at UofT.
I was fiddling round with cc and the gcc compilers.
I wrote a basic basic basic program .
I tried to compile it as I remember doing in Uni. The problem is that it can't find the header... (5 Replies)
Discussion started by: cantcatchme
5 Replies
2. UNIX for Dummies Questions & Answers
would anyone know of a good online tutorial on compiling and installing tarballs? i'm looking for one that assumes that you know very little to nothing about unix. (3 Replies)
Discussion started by: nydel
3 Replies
3. UNIX for Dummies Questions & Answers
i am trying to compile and install free qt for x11 2.2.4 in order to use kde 2.1. i'm using freebsd 4.3
i currently have XFree86 installed and working.
i followed these instructions:
ftp://ftp.trolltech.com/qt/source/INSTALL
i get through the unpacking fine and i set my .profile.
--... (2 Replies)
Discussion started by: nydel
2 Replies
4. Programming
I am new to unix so please forgive ignorance. I am running openbsd-2.9 and need some help. All the software I run was added via the package system openbsd has. There have been times when I need an app. But it was not in the openbsd ports and or packages system. I usually just wait for it to show up... (1 Reply)
Discussion started by: Blunt_Killer
1 Replies
5. Programming
Hello. I am trying to run a c program on a unix shell (ssh). I have searched this forum but have not come accross the soultion to my problem, so I am posting my question here :cool:
I wrote the following simple code:
#include <iostream.h>
using namespace std;
int main()
{
... (7 Replies)
Discussion started by: Minnesota Red
7 Replies
6. UNIX for Advanced & Expert Users
I have a problem.
How can I be sure that the binary currently in production is the binary originally produced by the compiler? I ask because recompiling the sources (ALL sources + stripping away the metadata: strip ...) does not give the same result.
I am pretty sure that I wasn't hacked!
... (5 Replies)
Discussion started by: aViking
5 Replies
7. Solaris
Hello All
Our development team is about to compile a code and the issue is with time. This server's LDOM has 56 virtual CPUs each 1.4GHz and the memory is 8GB with 4 GB free. The problem is for the same compiling other server takes 15 minutes and this requires 30 minutes. Please let me know your... (2 Replies)
Discussion started by: chrs0302
2 Replies
8. Solaris
Hi there,
I need to install a later version of Berkeley DB on a solaris 10 server but I can not remove the previous version.
I've used the configure option of --with-uniquename.
It looks like the make has worked. I'm worried that the make install may interfer with the current... (0 Replies)
Discussion started by: Mickey G2
0 Replies
9. Solaris
Hi guys i came across an error while compiling a c file in solaris using gcc. the error is,
Undefined first referenced
symbol in file
bind /var/tmp//ccAr8qAh.o
accept ... (4 Replies)
Discussion started by: rajeshb6
4 Replies
10. Programming
I ran configure, and then make, using the SCO 6.0.0 cc compiler.
-bash-3.2# make
UX:make: ERROR: bad character | (octal 174), line 277 (bu40)UX:make: ERROR: Mess
age not found!! ... (4 Replies)
Discussion started by: jgt
4 Replies
LEARN ABOUT DEBIAN
bbhostgrep
BBHOSTGREP(1) General Commands Manual BBHOSTGREP(1)
NAME
bbhostgrep - pick out lines in bb-hosts
SYNOPSIS
bbhostgrep --help
bbhostgrep --version
bbhostgrep [--noextras] [--test-untagged] [--bbdisp] [--bbnet] TAG [TAG...]
DESCRIPTION
bbhostgrep(1) is for use by extension scripts that need to pick out the entries in a bb-hosts file that are relevant to the script.
The utility accepts test names as parameters, and will then parse the bb-hosts file and print out the host entries that have at least one
of the wanted tests specified. Tags may be given with a trailing asterisk '*', e.g. "bbhostgrep http*" is needed to find all http and https
tags.
The bbhostgrep utility supports the use of "include" directives inside the bb-hosts file, and will find matching tags in all included
files.
If the DOWNTIME or SLA tags are used in the bb-hosts(5) file, these are interpreted relative to the current time. bbhostgrep then outputs
a "INSIDESLA" or "OUTSIDESLA" tag for easier use by scripts that want to check if the current time is inside or outside the expected uptime
window.
OPTIONS
--noextras
Remove the "testip", "dialup", "INSIDESLA" and "OUTSIDESLA" tags from the output.
--test-untagged
When using the BBLOCATION environment variable to test only hosts on a particular network segment, bbtest-net will ignore hosts that
do not have any "NET:x" tag. So only hosts that have a NET:$BBLOCATION tag will be tested.
With this option, hosts with no NET: tag are included in the test, so that all hosts that either have a matching NET: tag, or no
NET: tag at all are tested.
--no-down[=TESTNAME]
bbhostgrep will query the Xymon server for the current status of the "conn" test, and if TESTNAME is specified also for the current
state of the specified test. If the status of the "conn" test for a host is non-green, or the status of the TESTNAME test is dis-
abled, then this host is ignored and will not be included in the output. This can be used to ignore hosts that are down, or hosts
where the custom test is disabled.
--bbdisp
Search the bb-hosts file following include statements as a BBDISPLAY server would.
--bbnet
Search the bb-hosts file following include statements as a BBNET server would.
EXAMPLE
If your bb-hosts file looks like this
192.168.1.1 www.test.com # ftp telnet !oracle
192.168.1.2 db1.test.com # oracle
192.168.1.3 mail.test.com # smtp
and you have a custom Xymon extension script that performs the "oracle" test, then running "bbhostgrep oracle" would yield
192.168.1.1 www.test.com # !oracle
192.168.1.2 db1.test.com # oracle
so the script can quickly find the hosts that are of interest.
Note that the reverse-test modifier - "!oracle" - is included in the output; this also applies to the other test modifiers defined by Xymon
(the dialup and always-true modifiers).
If your extension scripts use more than one tag, just list all of the interesting tags on the command line.
bbhostgrep also supports the "NET:location" tag used by bbtest-net, so if your script performs network checks then it will see only the
hosts that are relevant for the test location that the script currently executes on.
USE IN EXTENSION SCRIPTS
To integrate bbhostgrep into an existing script, look for the line in the script that grep's in the $BBHOSTS file. Typically it will look
somewhat like this:
$GREP -i "^[0-9].*#.*TESTNAME" $BBHOSTS | ... code to handle test
Instead of the grep, we will use bbhostgrep. It then becomes
$BBHOME/bin/bbhostgrep TESTNAME | ... code to handle test
which is simpler, less error-prone and more efficient.
ENVIRONMENT VARIABLES
BBLOCATION
If set, bbhostgrep outputs only lines from bb-hosts that have a matching NET:$BBLOCATION setting.
BBHOSTS
Filename for the Xymon bb-hosts(5) file.
FILES
$BBHOSTS
The Xymon bb-hosts file
SEE ALSO
bb-hosts(5), hobbitserver.cfg(5)
Xymon Version 4.2.3: 4 Feb 2009 BBHOSTGREP(1)