My Oracle Support Banner

Multiple stat system calls for the same library files with the same relative path, return Err#2 ENOENT (Doc ID 1611686.1)

Last updated on JANUARY 15, 2024

Applies to:

Solaris Operating System - Version 8 and later
Information in this document applies to any platform.


 Multiple stat system calls for the same library files with the same relative path,  all returning Err#2 ENOENT, 

 For example: 

$ LD_LIBRARY_PATH=. truss -tstat ls -ald . > /dev/null
stat64("/usr/bin/ls", 0xF5317920)               = 0
stat64("./", 0xF5317088)               Err#2 ENOENT
stat64("/lib/", 0xF5317088)            = 0
stat64("/usr/lib/locale/en_US.UTF-8/", 0xF5316B90) = 0
stat64("./", 0xF5316A40)               Err#2 ENOENT
stat64("/usr/lib/locale/en_US.UTF-8/", 0xF5316A40) Err#2 ENOENT
stat64("./", 0xF5316740)    Err#2 ENOENT
stat64("/usr/lib/locale/en_US.UTF-8/", 0xF5316740) = 0
stat64("./", 0xF5316658)               Err#2 ENOENT
lstat64(".", 0xF5317C48)                        = 0
stat64("./", 0xF5315FD8)             Err#2 ENOENT
stat64("/lib/", 0xF5315FD8)          = 0
stat64("./", 0xF5315EF0)               Err#2 ENOENT
stat64(".", 0xF5316A20)                         = 0
fstat64(1, 0xF5317A70)                          = 0
fstat64(1, 0xF5317910)                          = 0
fstat64(4, 0xF53179D8)                          = 0




 Possibly different system or changes in environment variables.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.