Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod!wuarchive!csus.edu!ucdavis!sunny!poage From: poage@sunny.ucdavis.edu (Tom Poage) Newsgroups: comp.lang.perl Subject: Sun-3 and pl44 Message-ID: <585@sunny.ucdavis.edu> Date: 14 Jan 91 21:35:02 GMT Reply-To: poage@sunny.ucdavis.edu (Tom Poage) Organization: UCDMC Clinical Engineering, Sacto., CA Lines: 27 FYI, op.dbm has an infinite while loop when patch level 44 is compiled with gcc (1.37.1) on a Sun-3 (4.0.3). Apparently, reading from an empty ndbm file returns nulls (as opposed to undefs or EOF). ... print (dbmopen(h,'Op.dbmx',0640) ? "ok 1\n" : "not ok 1\n"); ... while (($key,$value) = each(h)) { $i++; } rint (!$i ? "ok 3\n" : "not ok 3\n"); Sorry, haven't looked into it yet. Anybody else? It may have always been broken, since op.dbm was just added in this release (I think). Also ... cc (Sun's) barfs if you try any kind of optimization. Sometimes because the compile is too big (eval.c), sometimes because /lib/iropt grows out of its allotted space. I guess more stack and/or swap (though I've got 40MB) may be indicated. I'll see what I can find. -- Tom Poage, Clinical Engineering Universiy of California, Davis, Medical Center, Sacramento, CA poage@sunny.ucdavis.edu {...,ucbvax,uunet}!ucdavis!sunny!poage