This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
__statfs64() is declared but not defined
- From: Peter TB Brett <peter at peter-b dot co dot uk>
- To: libc-help at sourceware dot org
- Date: Fri, 11 Apr 2014 22:21:49 +0100
- Subject: __statfs64() is declared but not defined
- Authentication-results: sourceware.org; auth=none
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>