[unix-pc.general] v20i103: Perl, a language with features of C/sed/awk/shell/etc, Part20/24

kevin@kosman.UUCP (Kevin O'Gorman) (11/10/89)

In article <995@cgh.UUCP> paul@cgh.UUCP (Paul Homchick) writes:
>
>Aha! It's not just me.  Mine failed on test 3 and 4 of op.magic, and on
>tests 3 through 7 of op.mkdir.  This was with the standard 7300/3B1 cc. 
>When I tried gcc (1.35) I had all kinds of grief including "Virtual
>Memory exhausted", "cc1 caught signal 11", and a perl executable which
>dumped core with an "illegal instruction."  I think I am going to give
>my gcc a looooonnnnng rest.

Odd.  I use gcc-1.35, on a 3b1 with 3.51a.  I got the "virtual memory
exhausted" message on a couple of files, which I compiled by hand without
-O.  Test 3 of op.mkdir failed because PERL is at the mercy of the 
OS' handling of errors and cannot interpret the error from mkdir.

Nothing else failed.

vern@zebra.UUCP (Vernon C. Hoxie) (11/11/89)

In article <1020@kosman.UUCP>, kevin@kosman.UUCP (Kevin O'Gorman) writes:
> In article <995@cgh.UUCP> paul@cgh.UUCP (Paul Homchick) writes:
> >
> >Aha! It's not just me.  Mine failed on test 3 and 4 of op.magic, and on
> >tests 3 through 7 of op.mkdir.  This was with the standard 7300/3B1 cc. 

Mine failed only on test 3 of op.magic and test 3 of op.mkdir.  Does
this mean that it passed test 4..5 of op.magic and 4..7 of op.mkdir?
Or does it stop when it gets a failure?

I also was using the stock cc but I kludged the Makefile to use the
shared library.  By kludge I --

	$(LD) -r $(obj) perl.o $(SHAREDLIB) -o tmp.o 
	$(LD) $(LARGE) $(LDFLAGS) tmp.o $(libs) -o perl
	rm tmp.o

wherever Configure had a $(CC).  This needs an entry:

SHAREDLIB = /lib/crt0s.o /lib/shlib.ifile

earlier in the script.

I also have the 'dirent' package posted a month or so ago.  I have it in
/usr/lib/libdirent.a which I added to the $(libs) list.

When I tried adding $(SHAREDLIB) on the $(LD) line, I got a
zillion 'redefined' error messages.  There must be a more straight
forward way to get as much as is available from the shared lib and 
the rest from libc.a.  When I omitted the reference to libc.a, vsprintf
was left dangling as undefined.

>  Test 3 of op.mkdir failed because PERL is at the mercy of the 
> OS' handling of errors and cannot interpret the error from mkdir.

Can the 'mkdir' from the news kit be included somehow to get this to
work?

Now, what is screwing up op.magic?

vern
-- 
Vernon C. Hoxie		       {ncar,nbires,boulder,isis}!scicom!zebra!vern
3975 W. 29th Ave.					voice: 303-477-1780
Denver, Colo., 80212				  TB+	 uucp: 303-455-2670