From owner-freebsd-bugs Fri Apr 5 11:20:49 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA03949 for bugs-outgoing; Fri, 5 Apr 1996 11:20:49 -0800 (PST) Received: from hub.ucsb.edu (hub.ucsb.edu [128.111.24.40]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA03944 for ; Fri, 5 Apr 1996 11:20:46 -0800 (PST) Received: from eci1.ucsb.edu (eci1-52.ucsb.edu) by hub.ucsb.edu; id AA09220 sendmail 4.1/UCSB-2.1-sun Fri, 5 Apr 96 11:20:46 PST for bugs@freebsd.org Received: from mickey.cs.ucsb.edu by eci1.ucsb.edu (1.38.193.5/UCSB-v3) id AA26562; Fri, 5 Apr 1996 11:20:42 -0800 Received: from mickey by mickey.ucsb-cmpsci (SMI-8.6/SMI-SVR4) id LAA05411; Fri, 5 Apr 1996 11:20:41 -0800 Message-Id: <31657286.53C0@cs.ucsb.edu> Date: Fri, 05 Apr 1996 11:20:38 -0800 From: "Hyun J. Kim" X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m) Mime-Version: 1.0 To: bugs@freebsd.org Subject: when I tried to compile pthreads-1_60_beta5....... X-Url: http://www.freebsd.org/support.html Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > When I tried to compile pthreads-1_60_beta5 on my FreeBSD 2.1, I get > following errors. > > gcc -I. -Iinclude -I/root/pthreads3/pthreads-1_60_beta5/include > -DPTHREAD_KERNEL -g -O -Werror -c > /root/pthreads3/pthreads-1_60_beta5/pthreads/sleep.c -o obj/sleep.o > > /root/pthreads3/pthreads-1_60_beta5/pthreads/sleep.c: In function > `sleep_compare_time': > > /root/pthreads3/pthreads-1_60_beta5/pthreads/sleep.c:64: structure has no > member named `tv_sec' > > /root/pthreads3/pthreads-1_60_beta5/pthreads/sleep.c:65: structure has no > member named `tv_nsec' > > > I have also tried on Solaris 2.4, and it compiles without any error. > Would you notify me how to fix this problem? > > Thanks > > Hyun > kimhy@cs.ucsb.edu Fix the FreeBSD header /usr/include/sys/timers.h to declare struct timespec to have tv_sec and tv_nsec, and report this as a bug to the FreeBSD team. I suspect they might have already fixed this but it's best to be sure. What happend is the POSIX.1b committee changed the declaration from ts_sec and ts_nsec during one of the last drafts and that got standardized thus screwing over all those that had released POSIX.1b functionality based on an earlier draft which NetBSD-1.0, FreeBSD-2.1 and pthreads-1_60-beta4_1 did. CAP