problem with libraries in SCO UNIX

Andrew Davidson aed at netcom.UUCP
Tue Jan 15 09:34:14 AEST 1991


Organization: Netcom- The Bay Area's Public Access Unix System {408 241-9760 guest} 
Keywords: ld ranlib ar


Hi
Is there a problem with ranlib on SCO UNIX? here is what happends
when I tried to use it

        rm -f libwi.a
        ar cq libwi.a wimain.o
        ranlib libwi.a
ranlib: libwi.a: not an archive

I noticed that the makefile defines the following internal rule

.c.a:
does not use ranlib at all?

I also have the following error 

	g++ -o proto proto.cc -g -DSYSV -DXSIGHT -DMOTIF \
	-I. -I/y/cats/r1_00p2.work/lib  \
	/y/cats/r1_00p2.work/lib/ui/libui.a \
	/y/cats/r1_00p2.work/lib/wi/libwi.a \
	/y/cats/r1_00p2.work/lib/mi/libmi.a \
	/y/cats/r1_00p2.work/lib/tcl/tcl.a \
        -lXm -lXt -lX11 -lsocket -lmalloc -lm -lg++

	ld proto.o fatal: Can't open file   for input
	ttest: /y/cats/r1_00p2.work/lib/ui/libui.a: cannot execute

but the file exists and is owned by me.

56% ll /y/cats/r1_00p2.work/lib/ui/libui.a
-rw-------   1 everett  group    1101674 Jan 14 13:54 /y/cats/r1_00p2.work/lib/u
i/libui.a


Why does ld need to open the library for input

Any Ideas? Thanks Andy
-- 
-----------------------------------------------------------------
                  "bede-bede-bede Thats all Folks"
				Porky Pig
Andy Davidson
Woodside CA.
aed at netcom
-----------------------------------------------------------------



More information about the Comp.unix.sysv386 mailing list