Path: utzoo!attcan!uunet!telxon!ping!gorpong From: gorpong@ping.uucp (Gordon C. Galligher) Newsgroups: comp.lang.perl Subject: Re: PERL PL37 tests failed on SCO UNIX V.3.2 (SOLVED: Summary) Summary: -fpcc-struct-return and delete line 1371 of file util.c Message-ID: <1990Oct27.025754.19700@ping.uucp> Date: 27 Oct 90 02:57:54 GMT References: <1990Oct23.045508.6172@ping.uucp> Organization: The 23rd. Century Lines: 32 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_