[comp.unix.aux] A/UX and cc and gcc no like stat

jim@jagmac2.gsfc.nasa.gov (Jim Jagielski) (09/15/90)

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 <std/disclaimer.h>
                                 =:^)
           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."

jim@jagmac2.gsfc.nasa.gov (Jim Jagielski) (09/15/90)

This is the response from lint about lstat()... seems that lstat() and
stat() aren't in libcrtn, 1,2 whatever...

allocate.c

==============
name used but not defined
    lstat   	allocate.c(47)


--
=======================================================================
#include <std/disclaimer.h>
                                 =:^)
           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."