Dear scsh maintainers,
First: many thanks for providing scsh! I am using it for a few months know
and like it very much.
I have just encountered two small installation problems which I would
like to tell you about. I found a workaround for both but don't know what
the correct way to solve them would be.
1) This problem occurs under Solaris 2.5.
uname -a: SunOS fire 5.5 Generic sun4u sparc SUNW,Ultra-1
I have previously installed scsh-0.4.2 under Solaris 2.4 without problems.
Compilation of the file "scsh/machine/stdio_dep.c" failed. The expression
fileno(fs) = fd;
in function "setfileno" could not be compiled because "fileno" is not a
My solution was to manually change this into:
fs->_file = fd;
Unfortunately I don't know what changed between Solaris 2.4 and 2.5 to cause
2) This problem occurs on nonstandard Solaris 2.4 and 2.5 installations.
The non standard thing is: "bind-4.9.3" is installed.
The problem: In the file "scsh/syscalls1.c" the constant
MAXHOSTNAMELEN is referenced but not defined.
My workaround was to manually define it as 256 in this file.
The cause is: Installing "bind-4.9.3" changes the include file
The original one on Solaris is:
#pragma ident "@(#)netdb.h 1.14 94/10/04 SMI" /* SVr4.0 1.2 */
It defines MAXHOSTNAMELEN as 256.
The version delivered with bind is:
* @(#)netdb.h 8.1 (Berkeley) 6/2/93
* $Id: netdb.h,v 8.6 1995/12/03 08:31:12 vixie Exp $
It contains no definition for MAXHOSTNAMELEN.
I don't know whether this is a bug in the Berkeley "netdb.h" or whether
scsh should be able to work with this include file or whatever.
So if you don't feel guilty :-) about this bug please tell me so that I
can tell the "bind" people about it.
Lavielle EDV Systemberatung GmbH & Co.
Lotharstrasse 2b, D-22041 Hamburg, Germany
Tel.: ++49 40 / 65 80 88
Fax: ++49 40 / 65 808-202