Hello,
Thanks for scsh; a reasonable shell at last.
FYI I had the following initial build experience with scsh-0.2 on an
SGI running IRIX4.0.5.
(I know scheme but am new to scheme48 & scsh)
- j.p.lewis
Industrial Light&Magic
----------------------------------------------------------------
The generic stdio_dep.c looks ok to me.
----------------------------------------------------------------
I don't use gcc; configure chooses the -cckr (i.e. K&R C rather than ansi)
flag for cc. This results in errors in time1.c which can be presumably
be fixed by omitting the cckr (I edited time1.c to initialize
the structures separately).
cc -c -I./cig -I./scsh/regexp -DHAVE_CONFIG_H -I. -cckr -o scsh/time1.o
scsh/time1.c
ccom: Error: scsh/time1.c, line 159: no automatic aggregate initialization
{ char *newenv[2] = {"TZ=UCT0", 0},
ccom: Error: scsh/time1.c, line 188: no automatic aggregate initialization
struct tm d = {sec, min, hour, mday, month, year, 0, 0, summer};
ccom: Error: scsh/time1.c, line 195: no automatic aggregate initialization
char *newenv[2] = {"TZ=UCT0", 0};
----------------------------------------------------------------
Don't know how to understand this message; "ar ts" does not change anything.
I fixed this by altering the Makefile to ld regexp/reg*.o
rather than libregexp.a:
ld:
Archive: scsh/regexp/libregexp.a has no table of contents, add one with 'ar ts'
make: *** [cig/libscshvm.a] Error 1
scsh/regexp/regerror.o scsh/regexp/regexp.o scsh/regexp/regsub.o \
scsh/time.o scsh/time1.o
# scsh/regexp/regexp.a \
----------------------------------------------------------------
Warning: Structure has undefined exports
#{Structure 120 generic-defs}
(fcntl/set-record-lock fcntl/record-lock fcntl/get-record-lock
fcntl/set-fd-flags fcntl/get-fd-flags lock/write ---)
]
Warning: Structure has undefined exports
#{Structure 121 os-dependent}
(fcntl/set-record-lock fcntl/record-lock fcntl/get-record-lock
fcntl/set-fd-flags fcntl/get-fd-flags lock/write ---)
]
Undefined: (fcntl/get-file-flags)
Warning: Structure has undefined exports
#{Structure 124 scsh}
(signal/cld fcntl/set-record-lock fcntl/record-lock
fcntl/get-record-lock fcntl/set-fd-flags fcntl/get-fd-flags ---)
----------------------------------------------------------------
A non-fatal name collision under irix.
Warning: regerror: multiply defined
previous (used) definition from 'scsh/rescm.o';
new (ignored) definition from 'scsh/regexp/regerror.o'
----------------------------------------------------------------
Undefined: (cig-aux)
----------------------------------------------------------------
I cannot install in /usr/local. With
make libdir=`pwd`;
make libdir=`pwd` install:
The installation of man pages ignores the directory:
if test -d /usr/local/man/man1; then ./install.sh -c -m 644 scsh.1
/usr/local/man/man1; else echo "No man directory, not installing man page"; fi
cp: cannot create /usr/local/man/man1/#inst.14019#: Permission denied.
----------------------------------------------------------------
Running
#!/u0/zilla/binM/scsh -s
(map (lambda (arg) (display arg) (display " "))
command-line-arguments)
(newline)
gives:
Error: EOF inside block comment -- no closing !#
----------------------------------------------------------------
----------------------------------------------------------------
|