Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> errors when compiling hide.c on hp unix
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 | +-------------------------------------------------------------------------*//*
![]() |
![]() |