This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/21232] New: miss posix_fadvise64 on MIPS64 when static linking
- From: "ma.jiang at zte dot com.cn" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 08 Mar 2017 02:17:32 +0000
- Subject: [Bug libc/21232] New: miss posix_fadvise64 on MIPS64 when static linking
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21232
Bug ID: 21232
Summary: miss posix_fadvise64 on MIPS64 when static linking
Product: glibc
Version: 2.26
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: ma.jiang at zte dot com.cn
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Created attachment 9884
--> https://sourceware.org/bugzilla/attachment.cgi?id=9884&action=edit
patch to fix the bug
Hi all,
I found the latest glibc do not provide posix_fadvise64 when static
linking.
It's very easy to reproduce the bug.
Compile the following code using "-static -D_FILE_OFFSET_BITS=64 -mabi=64",
ld will report " undefined reference to `posix_fadvise64'".
#include <fcntl.h>
int main()
{
posix_fadvise(0,0,0,0);
return 0;
}
The fix is quite simple as well, just two new lines in
sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c. see the attached
file for details.
--
You are receiving this mail because:
You are on the CC list for the bug.