This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
more errors in the current CVS while compiling for GNU/Hurd.
- From: "Alfred M. Szmidt" <ams at kemisten dot nu>
- To: libc-alpha at sources dot redhat dot com
- Date: Sat, 20 Sep 2003 12:13:13 +0200 (MEST)
- Subject: more errors in the current CVS while compiling for GNU/Hurd.
On GNU/Hurd I got this when linking. I think that this
(__fcntl_nocancel) is just a typo for fcntl_not_cancel. Patch at the
end.
gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld.so.1 -B/obj/devel/ams/libc/csu/ -Wl,--version-script=/obj/devel/ams/libc/libc.map -Wl,-soname=libc.so.0.3 -Wl,-z,combreloc -nostdlib -nostartfiles -e __libc_main -L/obj/devel/ams/libc -L/obj/devel/ams/libc/math -L/obj/devel/ams/libc/elf -L/obj/devel/ams/libc/dlfcn -L/obj/devel/ams/libc/nss -L/obj/devel/ams/libc/nis -L/obj/devel/ams/libc/rt -L/obj/devel/ams/libc/resolv -L/obj/devel/ams/libc/crypt -L/obj/devel/ams/libc/mach -L/obj/devel/ams/libc/hurd -Wl,-rpath-link=/obj/devel/ams/libc:/obj/devel/ams/libc/math:/obj/devel/ams/libc/elf:/obj/devel/ams/libc/dlfcn:/obj/devel/ams/libc/nss:/obj/devel/ams/libc/nis:/obj/devel/ams/libc/rt:/obj/devel/ams/libc/resolv:/obj/devel/ams/libc/crypt:/obj/devel/ams/libc/mach:/obj/devel/ams/libc/hurd -o /obj/devel/ams/libc/libc.so -T /obj/devel/ams/libc/shlib.lds /obj/devel/ams/libc/csu/abi-note.o /obj/devel/ams/libc/elf/soinit.os /obj/devel/ams/libc/libc_pic.os /obj/dev!
el/ams/libc/elf/sofini.os /obj/devel/ams/libc/elf/interp.os /obj/devel/ams/libc/elf/ld.so /obj/devel/ams/libc/mach/libmachuser-link.so /obj/devel/ams/libc/hurd/libhurduser-link.so -lgcc -lgcc_eh
/obj/devel/ams/libc/libc_pic.os(.text+0x1218d6): In function `setutent_file':
../sysdeps/generic/utmp_file.c:153: undefined reference to `__fcntl_nocancel'
/obj/devel/ams/libc/libc_pic.os(.text+0x1218ee):../sysdeps/generic/utmp_file.c:155: undefined reference to `__fcntl_nocancel'
/obj/devel/ams/libc/libc_pic.os(.text+0x121a1c): In function `getutent_r_file':
../sysdeps/generic/utmp_file.c:194: undefined reference to `__fcntl_nocancel'
/obj/devel/ams/libc/libc_pic.os(.text+0x121a53):../sysdeps/generic/utmp_file.c:203: undefined reference to `__fcntl_nocancel'
/obj/devel/ams/libc/libc_pic.os(.text+0x121b82): In function `internal_getut_r':
../sysdeps/generic/utmp_file.c:228: undefined reference to `__fcntl_nocancel'
/obj/devel/ams/libc/libc_pic.os(.text+0x121c0d):../sysdeps/generic/utmp_file.c:280: more undefined references to `__fcntl_nocancel' follow
2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
* sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE)
(UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
__fcntl_nocancel.
Index: sysdeps/generic/utmp_file.c
--- sysdeps/generic/utmp_file.c
+++ sysdeps/generic/utmp_file.c
@@ -78,7 +78,7 @@
memset (&fl, '\0', sizeof (struct flock)); \
fl.l_type = (type); \
fl.l_whence = SEEK_SET; \
- if (__fcntl_nocancel ((fd), F_SETLKW, &fl) < 0)
+ if (fcntl_not_cancel ((fd), F_SETLKW, &fl) < 0)
#define LOCKING_FAILED() \
goto unalarm_return
@@ -86,7 +86,7 @@
#define UNLOCK_FILE(fd) \
/* Unlock the file. */ \
fl.l_type = F_UNLCK; \
- __fcntl_nocancel ((fd), F_SETLKW, &fl); \
+ fcntl_not_cancel ((fd), F_SETLKW, &fl); \
\
unalarm_return: \
/* Reset the signal handler and alarm. We must reset the alarm \
@@ -150,9 +150,9 @@
}
/* We have to make sure the file is `closed on exec'. */
- result = __fcntl_nocancel (file_fd, F_GETFD, 0);
+ result = fcntl_not_cancel (file_fd, F_GETFD, 0);
if (result >= 0)
- result = __fcntl_nocancel (file_fd, F_SETFD, result | FD_CLOEXEC);
+ result = fcntl_not_cancel (file_fd, F_SETFD, result | FD_CLOEXEC);
if (result == -1)
{
close_not_cancel_no_status (file_fd);