Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jnr-posix tests failed with GLIBC 2.36 #186

Open
Panxuefeng-loongson opened this issue Nov 16, 2023 · 0 comments
Open

jnr-posix tests failed with GLIBC 2.36 #186

Panxuefeng-loongson opened this issue Nov 16, 2023 · 0 comments

Comments

@Panxuefeng-loongson
Copy link
Contributor

public interface LinuxLibC extends UnixLibC {
    public int __fxstat(int version, int fd, @Out @Transient FileStat stat);
    public int __lxstat(int version, CharSequence path, @Out @Transient FileStat stat);
    public int __lxstat(int version, @NulTerminate @In ByteBuffer path, @Out @Transient FileStat stat);
    public int __xstat(int version, CharSequence path, @Out @Transient FileStat stat);
    public int __xstat(int version, @NulTerminate @In ByteBuffer path, @Out @Transient FileStat stat);
    public int __fxstat64(int version, int fd, @Out @Transient FileStat stat);
    public int __lxstat64(int version, CharSequence path, @Out @Transient FileStat stat);
    public int __lxstat64(int version, @NulTerminate @In ByteBuffer path, @Out @Transient FileStat stat);
    public int __xstat64(int version, CharSequence path, @Out @Transient FileStat stat);
    public int __xstat64(int version, @NulTerminate @In ByteBuffer path, @Out @Transient FileStat stat);
    public int posix_fadvise(int fd, @off_t long offset, @off_t long len, int advice);
}

for example, __fxstat64 exits in GLIBC 2.27,

loongson@loongson-pc:~$ nm -D /usr/lib/loongarch64-linux-gnu/libc.so.6 | grep  lxstat
00000000000ce150 T __lxstat
00000000000ce150 T __lxstat64

but don't exits in GLIBC 2.36

[panxuefeng@localhost ~]$ nm -D /usr/lib64/libc.so.6  | grep lxstat
[panxuefeng@localhost ~]$ nm -D /usr/lib64/libc.so.6  | grep lstat
00000000000d1370 W lstat@@GLIBC_2.36
00000000000d1370 W lstat64@@GLIBC_2.36

how to solve test failed with GLIBC 2.36?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant