[comp.sys.sun] Compile KSH on SUN 3/60?

shaw@ihlpm.att.com (Shaw) (05/17/89)

Hi Folks,

Tried to compile the KSH on SUN 3/60 machine and hit the following
problem. If you have compiled the KSH successfully on the same type of
machine, please give me a help. Thanks.

==================================================================

setup the LDFLAGS=-Bstatic for OS4.0 and followed the README file,
I ran makeshell file and saw the "ranlib" problem. Any thought ??

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

makeshell
Please wait for a little while
compilation begins
+ /bin/cc -c -O -DKSHELL -Iinclude shlib/adjust.c
........
........
+ /bin/cc -c -O -DKSHELL -Iinclude shlib/valup.c
+ /bin/cc -c -O -DKSHELL -Iinclude shlib/optget.c
shlib/strdata.c:
sh/ctype.c:
sh/msg.c:
r - adjust.o
........
........
r - unassign.o
r - utos.o
r - valup.o
r - optget.o
+ /bin/cc -c -O -DKSHELL -Iinclude  sh/arith.c
.........
........
+ /bin/cc -c -O -DKSHELL -Iinclude  sh/xec.c
+ /bin/cc -c -O -DKSHELL -Iinclude  sh/emacs.c
+ /bin/cc -c -O -DKSHELL -Iinclude  sh/vi.c
/bin/cc  -o ./ksh arith.o args.o blok.o builtin.o cmd.o ctype.o 	defs.o edit.o echo.o error.o expand.o fault.o history.o io.o jobs.o 	macro.o main.o msg.o name.o print.o service.o string.o 	stak.o test.o word.o xec.o  emacs.o vi.o libsh.a 
ld: libsh.a: warning: archive has no table of contents; add one using ranlib(1)
ld: libsh.a: bad magic number
link edit failed
*** Error code 4
make: Fatal error: Command failed for target `ksh'


************************************************************************

I also tried the "ranlib" command and it complained the following:

ar: __.SYMDEF not in archive format
ranlib: ``ar rlb  libsh.a __.SYMDEF
'' failed



Steve Shaw
AT&T Bell Labs
Naperville, ILL
(312)979-1418
att!ihlpm!shaw