Referencing 1637 (pdksh): The configure script checks to see if the system has /dev/fd/foo support, by creating a file, getting it's fd, and trying to open /dev/fd/fd_of_the_file_just_opened. This is a perfectly legitimate test, but fails. Included below is the snippet of code that configure uses. #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> main() { struct stat s1, s2; FILE *fp1, *fp2; char *file = "conftest.file"; char devfd[32]; if (!(fp1 = fopen(file, "w"))) exit(1); if (fstat(fileno(fp1), &s1) < 0) exit(2); sprintf(devfd, "/dev/fd/%d", fileno(fp1)); if (!(fp2 = fopen(devfd, "w"))) exit(3); if (fstat(fileno(fp2), &s2) < 0) exit(4); if (s1.st_dev != s2.st_dev || s1.st_ino != s2.st_ino) exit(5); exit(0); }
vim 6.1 also had this issue
Portage 1.8.20 should fix this problem.