Problem with libc_r. Compiling using gcc with the -pthread switch yields the following error: wade@archeron-~:gcc -pthread test.c /usr/lib/libc_r.so: undefined reference to `__sys_close' wade@archeron-~: I have not been able to repeat this problem on my next-newest build: FreeBSD ylw.noc.dbitech.bc.ca 4.6-STABLE FreeBSD 4.6-STABLE #0: Mon Jul 15 08:08:23 PDT 2002 root@ylw.noc.dbitech.bc.ca:/usr/src/sys/compile/WORKSTATION i386 Fix: I have verified this on 3 boxen all cvsup'd today. Compile the following program with the -pthread switch: test.c ---------- main(){} Do not compile re-entrant programs.
Responsible Changed From-To: freebsd-bugs-> robert Over to committer that touched uthread_dup2.c last. I believe the problem can be resolved by changing line 74 of uthread_dup2.c to read: _thread_sys_close(ret);
Responsible Changed From-To: robert->mini I'm in the middle of this code right now; I'll fix this.
State Changed From-To: open->closed Fixed.