Glibc2 + Undefined reference to 'stat'

Glibc2 + Undefined reference to 'stat'

Post by Chad Wolfsheim » Mon, 19 Jan 1998 04:00:00



I recently upgraded my libc5 Slackware system to glibc-2.0.6, and
I have found that there are a great number of programs that I can't
compile, due to errors such as:

/tmp/cca222691.o: In function `main':
/tmp/cca222691.o(.text+0x67e): undefined reference to `stat'
/tmp/cca222691.o(.text+0x7e6): undefined reference to `stat'
/tmp/cca222691.o: In function `copystat':
/tmp/cca222691.o(.text+0x150c): undefined reference to `stat'

(or other stat references--eaccess_stat, for example).

Have I done something wrong, and what can I do to repair my system?

TIA.

  //===============Chad Wolfsheimer=======Brown University===============\\
 //===================UNIX System/Network Administration==================\\

  \\==============http://bootp-249.diman.brown.edu/~cwolfshe=============//

 
 
 

Glibc2 + Undefined reference to 'stat'

Post by J.H.M. Dass » Tue, 20 Jan 1998 04:00:00


[undefined reference to `stat' after attempted upgrade to glibc]

Quote:>Have I done something wrong,

Yes. You have not Read The Fine Manual.

Quote:>and what can I do to repair my system?

Read The Fine Manual. The "stat" issue is covered as Q2.7 "Looking
through the shared libc file I haven't found the functions `stat',
`lstat', `fstat', and `mknod' and while linking on my Linux system I get
error messages.  How is this supposed to work?" of the FAQ included with
glibc.

HTH,
Ray
--
Obsig: developing a new sig

 
 
 

Glibc2 + Undefined reference to 'stat'

Post by Conrad Sanders » Thu, 22 Jan 1998 04:00:00



Quote:>I recently upgraded my libc5 Slackware system to glibc-2.0.6, and
>I have found that there are a great number of programs that I can't
>compile, due to errors such as:

>/tmp/cca222691.o: In function `main':
>/tmp/cca222691.o(.text+0x67e): undefined reference to `stat'

I'm also getting problems when compiling.  Usually says that a structure
was redefined, but I can't find any previous definitions.