Sponsored Content
Special Forums UNIX and Linux Applications problems installing mixmaster 3.0 to solaris 10 Post 302191034 by mr_crosby on Thursday 1st of May 2008 10:05:38 AM
Old 05-01-2008
it cant find the path for whoami ie /usr/ucb/whoami
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problems installing Solaris 2.6 on E4500

I have been trying for several days now to get 2.6 to load and boot on a Sun E4500. The installation appears to go seamlessly, but when it tries to boot the kernel panics and reboots immediately after the kernel loads (after the spinning \|/- thing). I installed Solaris 8 to make sure there were no... (7 Replies)
Discussion started by: 98_1LE
7 Replies

2. UNIX for Dummies Questions & Answers

problems about installing Solaris 8 on PC

1. OSes coexistence can i install solaris 8 on my pc's 3th primary harddisk partition without damage the user and boot datas of installed operation system? and does i have to install Solaris 8 within several G(such as 8G) size of the harddisk? the following is partition table of my harddisk: ... (2 Replies)
Discussion started by: samprax
2 Replies

3. UNIX for Dummies Questions & Answers

Problems installing perl5

Hi!! I have problems installing perl5 in a Tru64 4.0F enviroment, and i need it to install OpenSSL and OpenSSH to establis a SFTP... I'm installing perl 5.8.8 but an error occurr during make test, i ran ./perl harness and the result is the problem is on op/filetest.t I didn't know what to... (0 Replies)
Discussion started by: irasela
0 Replies

4. Solaris

Problems Installing Top

I've been trying to install Top on our Solaris box but it's giving me some trouble. The uname -a command shows SunOS servername 5.9 Generic sun4u sparc SUNW,Ultra-250 I downloaded Top form www.unixtop.com. On the initial install I got errors because I didn't have a C compiler installed.... (2 Replies)
Discussion started by: KenLynch
2 Replies

5. Solaris

Problems de-installing NetConnect

I have run into a problem while attempting to de-install netconnect from a Sol8 box. We got an error during the un-install script when it tries to remove SUNWsrsrp. It can't find the srsuser. We have no idea what user was specified initially. I have tried to remove the package on its own, to no... (2 Replies)
Discussion started by: i_am_homer
2 Replies

6. SCO

problems installing 5.0.7 on HP DL 380G5

hi there, i have a hp DL380G5 with hpsas array controller P400. when installing, i use bootstring as following; defbootstr link=hpsas hd=Sdsk Sdsk=hpsas(0,0,0,0) Srom=wd(0,0,0) then BTLD disk boots ok and looks like the drivers are loaded, all devices show up in boot screen, giving me a... (1 Reply)
Discussion started by: jose_antonio
1 Replies

7. Solaris

Will re-installing the Solaris OS help when present OS has problems

Does re-installing the Solaris OS when the existing OS has problems solve the issue? Problem here I mean "FILE SYSTEM BAD" after a fsck and the machine is not rebooting. My doubt also includes the question whether all inodes etc in the hard disk of the Sun machine gets re-formatted when we... (2 Replies)
Discussion started by: lydiaEd
2 Replies

8. Solaris

Problems installing Solaris 10

I just built my new computer with a q6600 quad core, 4 gig ram, Nvidia vidoo card but when I try to install the latest Solaris 10 on it the keyboard is not being detected when the installation starts so I'm unable to go complete the installation. First I tried a USB keyboard and it didn't work,... (2 Replies)
Discussion started by: isomorphic
2 Replies

9. UNIX for Dummies Questions & Answers

Installing Java Problems

Hello, When i attempt to install Java. I get this error code Can someone tell me what im doing wrong. (2 Replies)
Discussion started by: Fob Upset
2 Replies
COM_ERR(3)						   BSD Library Functions Manual 						COM_ERR(3)

NAME
com_err, com_err_va, error_message, error_table_name, init_error_table, set_com_err_hook, reset_com_err_hook, add_to_error_table, initialize_error_table_r free_error_table, com_right -- common error display library LIBRARY
Common Error Library (libcom_err, -lcom_err) SYNOPSIS
#include <stdio.h> #include <stdarg.h> #include <krb5/com_err.h> #include "XXX_err.h" typedef void (*errf)(const char *, long, const char *, ...); void com_err(const char *whoami, long code, const char *format, ...); void com_err_va(const char *whoami, long code, const char *format, ...); const char * error_message(long code); const char * error_table_name(int num); int init_error_table(const char **msgs, long base, int count); errf set_com_err_hook(errf func); errf reset_com_err_hook(); void add_to_error_table(struct et_list *new_table); void initialize_error_table_r(struct et_list **et_list, const char **msgs, int base, long count); void free_error_table(struct et_list *); const char * com_right(struct et_list *list, long, code"); DESCRIPTION
The com_err library provides a common error-reporting mechanism for defining and accessing error codes and descriptions for application soft- ware packages. Error descriptions are defined in a table and error codes are used to index the table. The error table, the descriptions and the error codes are generated using compile_et(1). The error table is registered with the com_err library by calling its initialisation function defined in its header file. The initialisation function is generally defined as initialize_<name>_error_table(), where name is the name of the error table. If a thread-safe version of the library is needed initialize_<name>_error_table_r() that internally calls initialize_error_table_r() instead be used. Any variable which is to contain an error code should be declared <name>_error_number where name is the name of the error table. FUNCTIONS
The following functions are available to the application developer: com_err(whoami, code, format, ...) Displays an error message on standard error composed of the whoami string, which should specify the program name, followed by an error message generated from code, and a string produced using the printf(3) format string and any following arguments. If format is NULL, the formatted message will not be printed. The argument format may not be omitted. com_err_va(whoami, code, format, va_list args) This routine provides an interface, equivalent to com_err(), which may be used by higher-level variadic functions (functions which accept variable numbers of arguments). error_message(code) Returns the character string error message associate with code. If code is associated with an unknown error table, or if code is associated with a known error table but is not in the table, a string of the form `Unknown code XXXX NN' is returned, where XXXX is the error table name produced by reversing the compaction performed on the error table number implied by that error code, and NN is the offset from that base value. Although this routine is available for use when needed, its use should be left to circumstances which render com_err() unusable. com_right() returns the error string just like com_err but in a thread-safe way. error_table_name(num) Convert a machine-independent error table number num into an error table name. init_error_table(msgs, base, count) Initialise the internal error table with the array of character string error messages in msgs of length count. The error codes are assigned incrementally from base. This function is useful for using the error-reporting mechanism with custom error tables that have not been generated with compile_et(1). Although this routine is available for use when needed, its use should be restricted. initialize_error_table_r() initialize the et_list in the same way as init_error_table(), but in a thread-safe way. set_com_err_hook(func) Provides a hook into the com_err library to allow the routine func to be dynamically substituted for com_err(). After set_com_err_hook() has been called, calls to com_err() will turn into calls to the new hook routine. This function is intended to be used in daemons to use a routine which calls syslog(3), or in a window system application to pop up a dialogue box. reset_com_err_hook() Turns off the hook set in set_com_err_hook(). add_to_error_table(new_table) Add the error table, its messages strings and error codes in new_table to the internal error table. EXAMPLES
The following is an example using the table defined in compile_et(1): #include <stdio.h> #include <stdarg.h> #include <syslog.h> #include "test_err.h" void hook(const char *whoami, long code, const char *format, va_list args) { char buffer[BUFSIZ]; static int initialized = 0; if (!initialized) { openlog(whoami, LOG_NOWAIT, LOG_DAEMON); initialized = 1; } vsprintf(buffer, format, args); syslog(LOG_ERR, "%s %s", error_message(code), buffer); } int main(int argc, char *argv[]) { char *whoami = argv[0]; initialize_test_error_table(); com_err(whoami, TEST_INVAL, "before hook"); set_com_err_hook(hook); com_err(whoami, TEST_IO, "after hook"); return (0); } SEE ALSO
compile_et(1) BSD
July 7, 2005 BSD
All times are GMT -4. The time now is 12:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy