From owner-freebsd-bugs Sat Apr 6 07:47:16 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA04117 for bugs-outgoing; Sat, 6 Apr 1996 07:47:16 -0800 (PST) Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id HAA04101 for ; Sat, 6 Apr 1996 07:47:13 -0800 (PST) Received: (from julian@localhost) by ref.tfs.com (8.7.3/8.6.9) id LAA13881; Fri, 5 Apr 1996 11:58:09 -0800 (PST) Message-Id: <199604051958.LAA13881@ref.tfs.com> Subject: Re: when I tried to compile pthreads-1_60_beta5....... To: kimhy@cs.ucsb.edu (Hyun J. Kim) Date: Fri, 5 Apr 1996 11:58:09 -0800 (PST) From: "JULIAN Elischer" Cc: bugs@freebsd.org In-Reply-To: <31657286.53C0@cs.ucsb.edu> from "Hyun J. Kim" at Apr 5, 96 11:20:38 am X-Mailer: ELM [version 2.4 PL25 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I believe we caught that but AFTER the 2.1 Release. > > > > > > 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 > BTW you have a login on REF.tfs.com (I forget the passwd.. will change it to foo42) should you want to look at a running 2.2 system it has a chroot environment that you will go to on login which you can trash should you desire. I will be upgrading it to the lates2 2.2 soon.