This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

__statfs64() is declared but not defined


Hi all,

I'm relatively new to the glibc source code, so please bear with me --
this is probably a very basic question!

I'm currently hacking around in shm_open(), trying to change __statfs()
calls to use __statfs64(), as suggested in [BZ 15514].

When I make the naive change and try to compile the library, shm_open.c
gets compiled to an object successfully, but the linker fails with:

  undefined reference to `__statfs64'

If I change the __statfs64() calls to us statfs64() instead, compilation
is successful.

Clearly, the header files used during compilation declare __statfs64(),
but no definition gets included in the object files.

Am I missing something obvious here?

                                            Peter

-- 
Dr Peter Brett <peter@peter-b.co.uk>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]