Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Apr 1996 11:20:38 -0800
From:      "Hyun J. Kim" <kimhy@cs.ucsb.edu>
To:        bugs@freebsd.org
Subject:   when I tried to compile pthreads-1_60_beta5.......
Message-ID:  <31657286.53C0@cs.ucsb.edu>

next in thread | raw e-mail | index | archive | help
> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31657286.53C0>