[66] in Pthreads mailing list archive
Re: help for starting pthreads on later BSD
daemon@ATHENA.MIT.EDU (Jin Guojun[ITG])
Wed Aug 9 15:11:31 1995
Date: Wed, 9 Aug 1995 11:50:27 -0700
From: "Jin Guojun[ITG]" <jin@george.lbl.gov>
To: proven@MIT.EDU
Cc: pthreads@MIT.EDU
>> I am trying to use pthreads on FreeBSD 2.0 or BSD/OS machines.
>> After configuring and compiling, most _machdep_sys_???? are missing.
>> I searched whole tree and found those function are currently supported only
>> for bsdi-1.1, freebsd-1.1, linux-1.0, and netbsd-0.9 system under machdep/
>> directory. Is this correct? May I just modify freebsd-1.1 for freebsd-2.0?
>> or there are some other modifications are necessary for making it work?
>>
>> Thanks for any information,
>>
>> -Jin
>>
>
>You should pickup the latest version of pthreads (pthreads-1_60_beta3.tar.gz)
>from sipb.mit.edu:/pub/pthreads. It has support for FreeBSD 2.0, as for BSDI
>support I don't currently have access to a machine but if you take either
>the netbsd-1.0 files or the freebsd-2.0 files it should be relatively easy to
>get it to work.
>
>CAP
I have made pthreads working under FreeBSD 2.0.5, but there is a couple of
issues:
(1) obj/ directory must be created manually before doing make;
otherwise, the above problem happens. I guess the following line
does not work properly in Makefile
.OBJDIR != if test -d ${.CURDIR}/obj ; then true ; else mkdir ${.CURDIR}/obj ||
exit 1 ; fi ; echo ${.CURDIR}/obj
(2) I do not know why input pipe causes threaded program deadlock:
threaded.xviewer filename # works fine
threaded.xviewer < filename # works fine
cat filename | threaded.xviewer # deadlock on threaded.xviewer
Ctrl-C or Ctrl-Z will kill or stop "cat", but leave "threaded.xviewer"
hanging forever. kill -9 pid can terminate the threaded.xviewer.
Any idea?
-Jin