Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!ames!dftsrv!jagmac2.gsfc.nasa.gov!jim From: jim@jagmac2.gsfc.nasa.gov (Jim Jagielski) Newsgroups: comp.unix.aux Subject: A/UX and cc and gcc no like stat() function Message-ID: <3420@dftsrv.gsfc.nasa.gov> Date: 14 Sep 90 17:42:12 GMT Sender: news@dftsrv.gsfc.nasa.gov Reply-To: jim@jagmac2.gsfc.nasa.gov (Jim Jagielski) Organization: NASA Goddard Space Flight Center Lines: 21 I'm writing this little program that calls stat() to get various file information (user, mode, etc..). However, the call always fails with errno = 14, which is EFAULT (Bad address)... what's going on? It's not code related... I think it's linker related because the Unisoft compiler (which uses unshared lib's AND unshared executables: unshared.ld) compiles and runs it fine... cc and gcc don't. What the hell is going on? I need a *dependable* programming platform. A/UX won't even handle a simple system call with crapping out? And how does one tell cc NOT to use shared executables?? -- ======================================================================= #include =:^) Jim Jagielski NASA/GSFC, Code 711.1 jim@jagmac2.gsfc.nasa.gov Greenbelt, MD 20771 "Kilimanjaro is a pretty tricky climb. Most of it's up, until you reach the very, very top, and then it tends to slope away rather sharply."