Bruno Haible wrote:
>> On Solaris 9/SPARC:
>> All tests passed, 1 gnulib-tests failed.
>
> The failing gnulib test is:
>
> FAIL: test-getcwd
>
> $ ./test-getcwd
> $ echo $?
> 12
>
> Find attached the output of "truss ./test-getcwd".
Thanks for providing that.
I think the problem is that getcwd is failing to
find an entry in / with dev/ino matching a component (home)
of your working directory:
(see the fstatat call and subsequent dev/ino comparison in getcwd.c.
This may be due to dev/ino assignment on a mount point like /home.)
fstatat64(4, "coreutils-8.12.178-df9cd", 0xFFBFF668, 0x00001000) = 0
openat64(4, "..", O_RDONLY) = 3
fstat64(3, 0xFFBFF668) = 0
close(4) = 0
fcntl(3, F_SETFD, 0x00000001) = 0
fstat64(3, 0xFFBFF518) = 0
getdents64(3, 0x000355E8, 8192) = 336
fstatat64(3, "solaris9-cc", 0xFFBFF668, 0x00001000) = 0
openat64(3, "..", O_RDONLY) = 4
fstat64(4, 0xFFBFF668) = 0
close(3) = 0
fcntl(4, F_SETFD, 0x00000001) = 0
fstat64(4, 0xFFBFF518) = 0
getdents64(4, 0x000355E8, 8192) = 8168
getdents64(4, 0x000355E8, 8192) = 8176
getdents64(4, 0x000355E8, 8192) = 8152
fstatat64(4, "multibuild-1209", 0xFFBFF668, 0x00001000) = 0
openat64(4, "..", O_RDONLY) = 3
fstat64(3, 0xFFBFF668) = 0
close(4) = 0
fcntl(3, F_SETFD, 0x00000001) = 0
fstat64(3, 0xFFBFF518) = 0
getdents64(3, 0x000355E8, 8192) = 944
fstatat64(3, "haible", 0xFFBFF668, 0x00001000) = 0
openat64(3, "..", O_RDONLY) = 4
fstat64(4, 0xFFBFF668) = 0
close(3) = 0
fcntl(4, F_SETFD, 0x00000001) = 0
fstat64(4, 0xFFBFF518) = 0
getdents64(4, 0x000355E8, 8192) = 760
fstatat64(4, "lost+found", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "nokia", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "opt", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "usr", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "var", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "platform", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "dev", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "devices", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "etc", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "kernel", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "mnt", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "proc", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "sbin", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "tmp", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "net", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "export", 0xFFBFF668, 0x00001000) = 0
fstatat64(4, "home", 0xFFBFF668, 0x00001000) = 0
close(4) = 0
rmdir("confdir-14B---") Err#2 ENOENT
chdir("..") = 0
rmdir("confdir-14B---") = 0
chdir("..") = 0
However, bear in mind that this is Solaris 9.
IMHO, it's not very important these days.