gorpong@ping.uucp (Gordon C. Galligher) (10/23/90)
Perl version 3.0 PL37, compiled on SCO UNIX V.3.2 with GCC 1.37.1, without COFF (cannot get it working), using SCO UNIX's as and ld (cannot use Gnu's). I get errors with make test (op.dbm fails test 3, op.exec fails test 4, and op.undef fails test 20). Has anyone been able to get Perl PL37 working on SCO UNIX? Should I use the Microsoft compiler, or the AT&T compiler? I compiled it with -g -O -DDEBUGGING, should I not use one of these? I think I will try it with the -O removed and see what happens, but I am just appealing to others out there, who I am sure have SCO UNIX and have at least attempted to get PERL PL37 working. Info follows (mainly it is superfluous, but it is here for a quick check on what I have, instead of attempting to pick apart this verbose description to find the pertinent info. Any help, pointers, etc. would be greatly appreciated. -- Gordon. System : 80386 20Mhz. O/S : SCO UNIX System V.3.2 RAM : 4 Mb. Compiler : GNU C-Compiler version 1.37.1 (no COFF) Assembler: as Linker : ld Malloc : System's, NOT perl's Perl -v: ======== This is perl, version 3.0 $Header: perly.c,v 3.0.1.8 90/10/16 10:14:20 lwall Locked $ Patch level: 37 Copyright (c) 1989, 1990, Larry Wall Perl may be copied only under the terms of the GNU General Public License, a copy of which can be found with the Perl 3.0 distribution kit. Test results: ============= source:203-> make test chmod +x t/TEST t/base.* t/comp.* t/cmd.* t/io.* t/op.*; \ cd t && (rm -f perl; ln ../perl .) && ./perl TEST base.cond.......ok base.if.........ok [...] op.dbm..........FAILED on test 3 op.delete.......ok op.do...........ok op.each.........ok op.eval.........ok op.exec.........FAILED on test 4 [...] op.undef........FAILED on test 20 op.unshift......ok op.vec..........ok op.write........ok Failed 3 tests. *** Error code 2 (ignored) source:204-> -- Gordon C. Galligher 9127 Potter Rd. #2E Des. Plaines, Ill. 60016-4881 telxon!ping%gorpong@uunet.uu.net (not tested) (Is this even legal??) ...!uunet!telxon!ping!gorpong (tested) (And it works!) "It seems to me, Golan, that the advance of civilization is nothing but an exercise in the limiting of privacy." - Janov Pelorat -- _Foundation's Edge_
linas@hparc0.HP.COM (Linas Petras) (10/26/90)
I beleive this may be a problem in gcc. Try compiling the file(s) that references libdbm.a with either cc or rcc. If you want more info on the problem with gcc see Jim Kelly's README file in his patches to the X11R4 server for SCO unix about compiler problems etc..
gorpong@ping.uucp (Gordon C. Galligher) (10/27/90)
In article <1990Oct23.045508.6172@ping.uucp> gorpong@ping.uucp (ME) writes:
# Perl version 3.0 PL37, compiled on SCO UNIX V.3.2 with GCC 1.37.1, without
# COFF (cannot get it working), using SCO UNIX's as and ld (cannot use
# Gnu's). I get errors with make test (op.dbm fails test 3, op.exec fails
# test 4, and op.undef fails test 20).
I wish to thank Mike Verstegen for pointing out the op.exec problem (the
wait4pid() code was wierd, it had a shadowed int result; in the else clause
of an "if (flags)". Remove the shadowing int result; and things work.
(Line 1371 of file util.c)
I wish to also thank Ronald S H Khoo for pointing out that whenever using
GNU's C compiler with any dbm functions you need to make sure that you have
the -fpcc-struct-return on the compiler line (manually added to CFLAGS).
That solved my op.dbm failure.
It still fails on test 20 of op.undef, but a while back Larry told me to
muck with one of the IF expressions in one of the source files (I would
have to lose that mail :-( because he thinks the compiler is choking on
it. I have compiled it without the -O option, and it still happens, so
I think I do need to mess with the code (yecch, that breaks it for future
patches).
Thank you all for your help.
-- Gordon.
--
Gordon C. Galligher 9127 Potter Rd. #2E Des. Plaines, Ill. 60016-4881
telxon!ping%gorpong@uunet.uu.net (not tested) (Is this even legal??)
...!uunet!telxon!ping!gorpong (tested) (And it works!)
"It seems to me, Golan, that the advance of civilization is nothing but an
exercise in the limiting of privacy." - Janov Pelorat -- _Foundation's Edge_