Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> errors when compiling hide.c on hp unix

errors when compiling hide.c on hp unix

From: Screwed_Up_DBA <tsarlak_at_ykb.com>
Date: 11 Jul 2002 05:55:19 -0700
Message-ID: <8e7ac89.0207110455.595f9eda@posting.google.com>


Hello,
has any of you guys scucessfully compiled the hide.c on HP-UX. Just to refresh memories, It is a c program that hides the password that hides the password when sqlplus etc command line utilites are run with password as input.
here is the errors I get when I compile it.

cc -o hide hide.c
(Bundled) cc: "hide.c", line 48: error 1000: Unexpected symbol: "i".
(Bundled) cc: "hide.c", line 48: error 1002: Unexpected character:
'u'.
(Bundled) cc: "hide.c", line 48: error 1000: Unexpected symbol: "<".
(Bundled) cc: "hide.c", line 48: error 1000: Unexpected symbol: ".".
(Bundled) cc: "hide.c", line 48: error 1000: Unexpected symbol: ">".
(Bundled) cc: "hide.c", line 5: error 1002: Unexpected character: 'u'.
(Bundled) cc: "hide.c", line 5: error 1000: Unexpected symbol: "<".
(Bundled) cc: "hide.c", line 5: error 1000: Unexpected symbol: ".".
(Bundled) cc: "hide.c", line 5: error 1000: Unexpected symbol: ">".
(Bundled) cc: "hide.c", line 6: error 1002: Unexpected character: 's'.
(Bundled) cc: "hide.c", line 7: error 1000: Unexpected symbol: "i".
(Bundled) cc: "hide.c", line 7: error 1002: Unexpected character: 'u'.
(Bundled) cc: "hide.c", line 7: error 1000: Unexpected symbol: "<".
(Bundled) cc: "hide.c", line 7: error 1000: Unexpected symbol: ".".
(Bundled) cc: "hide.c", line 7: error 1000: Unexpected symbol: ">".
(Bundled) cc: "hide.c", line 8: error 1004: Unexpected end of line.
(Bundled) cc: "hide.c", line 9: error 1004: Unexpected end of line.
(Bundled) cc: "hide.c", line 11: error 1000: Unexpected symbol: "e".
(Bundled) cc: "hide.c", line 11: error 1004: Unexpected end of line.
(Bundled) cc: "hide.c", line 3000: error 1004: Unexpected end of line.
(Bundled) cc: "hide.c", line 3017: error 1588: "stderr" undefined.
(Bundled) cc: "hide.c", line 3031: error 1588: "JUNK_CHAR" undefined.
(Bundled) cc: "hide.c", line 3031: error 1588: "JUNK_SIZE" undefined.
(Bundled) cc: "hide.c", line 3032: error 1528: Subscript expression
must combine pointer and integer.
(Bundled) cc: "hide.c", line 3032: error 1549: Modifiable lvalue
required for assignment operator.
(Bundled) cc: "hide.c", line 3045: error 1000: Unexpected symbol: "i".
(Bundled) cc: "hide.c", line 6: error 1584: Inconsistent type
declaration: "memset".
(Bundled) cc: "hide.c", line 15: error 1000: Unexpected symbol: "e".
(Bundled) cc: "hide.c", line 15: error 1004: Unexpected end of line.

I was able to compile it on aix,

The original source code of hide.c is below. Any help is appreciated.Thanks.
Tahsin

/*--------------------------------------------------------------------------+
 |      Can be used as a program prefix: hide program arguments       
     |
 |      or as a symbolic link.  If this program is not invoked as
hide, it  |
 |      will hide its arguments and invoke the program name.hide      
     |
 |      The best way to use this is to rename your critical programs
to     |
 |      program.hide, and create a symbolic link program to hide.     
     |
 |      mv sqlplus sqlplus.hide; ln -s hide sqlplus                   
     |
 |      Thus when sqlplus is invoked, its arguments will be hidden    
     |
 |   NOTES                                                            
     |
 |      This program works by padding 3000 '/' chars in argv[0].  This
fools|
 |      all known ps's.  This will reduce the argument capacity of
your     |
 |      program by 3000 chars.  A good enhancement would be to reduce
the   |
 |      padding if needed so that no arguments are lost - would
require a   |
 |      method of determining the max argument size on the system. 
Some    |
 |      system's provide the E2BIG error on exec.                     
     |
 |      There is some performace penalty for using this program, but
it is  |
 |      minimal because this program is so small - the biggest cost is
the  |
 |      extra exec required to get this program started. 
 |   HISTORY                                                          
     |
 |       09/17/92  D Beusee     Fixed to compile on any system        
     |
 +-------------------------------------------------------------------------*/
/* Received on Thu Jul 11 2002 - 07:55:19 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US