Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: compiling perl 4.003 on a Convex, take 2 Keywords: pcc mode Message-ID: <1991May18.132205.10719@convex.com> Date: 18 May 91 13:22:05 GMT References: <1991May16.172439.24968@bernina.ethz.ch> <1991May17.042609.4213@chpc.utexas.edu> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 30 Nntp-Posting-Host: pixel.convex.com From the keyboard of jones@chpc.utexas.edu (Bill Jones): :Under Convex OS 9.x the get group system call will fail if you don't :specify the "-pcc" option on the load. Again, since you did not specify :the "-pcc" on the load command you get POSIX compliant library. :Under Convex OS 9.x they fixed setruid/seteuid but the changed :the definition of the array that getgroups returns form a :int * (32 bits) to a short * (16 bits). Actually, it will work if you use -ext, but several other things need tweaking if you do that. The important thing is to know that you need a getgroups grouptype of int in -pcc mode and gid_t, which is u_short, otherwise. And you're right: you need the load to get pcc mode to, or you get he wrong library. I just set CCOPTIONS in my environment to "-pcc -tm c1 -fn" and get on with life. I'm generally much happier this way. Our ANSI and POSIX folks here have the attitude that pcc mode is deprecated and think me an old stick-in-the-mud trapped in the past. So be it: there's a lot more pcc code out there than ANSI, methinks. Be warned that they won't make any new functions available in pcc mode (grumble, whine), so you can't get waitpid(2), which is a pain. You can always use ar to pull it out of the library (if you can figure out which it is!) and load it by hand. I still think God intended code to be compiled in pcc mode. ANSI and POSIX were invented by lawyers and pharisees. :-) --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "So much mail, so little time."