- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cc compilation error after install B3901BA
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2006 12:57 PM
02-16-2006 12:57 PM
I just installed B3901BA ( B11.11.14) on our HP-UX 11.11.
I tried to recompile existing applications, and get an error ..
cc: "/sas/code/utils/tlm.h", line59: error 1000: Unexpected symbol: "-".
*** Error exit code 1
Stop.
when I checked the tlm.h file, it does not have "-" around.
Our HP server is 9000/800/rp3410, 64-bit machine.
The codes around line 59 are:
typedef enum
{
NO_VIOLATION = 0,
CRITICAL_LOW,
MARGINAL_LOW,
NOMINAL,
MARGINAL_HIGH,
CRITICAL_HIGH,
INVALID, <----- line 59
UPDATING
} VIOLATION_STATES;
As far as I remember when we have B11.00.xx version C/ANSI C compiler, there is no such problem.
Also, we need a C compiler to install oracle software.
Please give me some hint, and help
Thanks,
Marjorie Liu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2006 01:25 PM
02-16-2006 01:25 PM
Re: cc compilation error after install B3901BA
e.g. cc -P myfile.c
should produce myfile.i. Examine it to see what macro expansions/substitutions have taken place.
Man cc to make sure that I have the correct cc options because I a doing this from memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 07:10 AM
02-17-2006 07:10 AM
Re: cc compilation error after install B3901BA
I compiled with -P option and created a display.i file.
after checking the content, the section
typedef enum
{
NO_VIOLATION = 0,
CRITICAL_LOW,
MARGINAL_LOW,
NOMINAL,
MARGINAL_HIGH,
CRITICAL_HIGH,
-1, <----- line 59
UPDATING
} VIOLATION_STATES;
which is not right.
How do I find out where the INVALID is defined or replaced?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 07:55 AM
02-17-2006 07:55 AM
SolutionYou are looking for a statement like this:
#define INVALID -1
or it may simply be a compiler flag like this
cc -DINVALID=-1 myfile.c
so have a close look at your makefile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 10:02 AM
02-17-2006 10:02 AM
Re: cc compilation error after install B3901BA
#define INVALID -1
in a header file.
This solved the problem.
Thank you so much.
Marjorie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 10:03 AM
02-17-2006 10:03 AM
Re: cc compilation error after install B3901BA
cc -P -C myfile.c
Now examine myfile.i and you should have a much better idea where in the #include chain the substitution is occuring.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 10:10 AM
02-17-2006 10:10 AM
Re: cc compilation error after install B3901BA
doing an:
#undef INVALID
just before your enum statement or whatever
block of code applies. This is much better than "fixing" a standard #include file because almost certainly if you commented out a #define in a header, you broke an application that depends upon that define.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 10:48 AM
02-17-2006 10:48 AM
Re: cc compilation error after install B3901BA
thanks for the speedy response. very grateful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2006 08:22 AM
02-27-2006 08:22 AM