This is the mail archive of the glibc-bugs@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]

[Bug libc/21232] New: miss posix_fadvise64 on MIPS64 when static linking


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.

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