Further (broken) argus-2.0.0 patches
Peter Van Epp
vanepp at sfu.ca
Mon Sep 4 12:52:58 EDT 2000
>
> Hello
>
> I am stuck at home on a dial-up pro tem but had a look at v2.0 with Peter's
> first patch bundle (will try the second set later).
>
> With Peter's patches it built ok but I had to remove the -lpthread for the
> argus server Makefile entry (since the pthreads on my FreeBSD 3.5 laptop is
> in one of the default system libs)
>
<snip>
Hmmm, interesting. On 4.1 RELEASE (which I'm running) there is a linker
flag -pthread that has been added to switch libc to libcr (which contains the
threaded librarys). Does the 3.5 pthread man page have a section like this in
it (because if not there may need to be different changes for the older
versions (-:)?
"
INSTALLATION
The current FreeBSD POSIX thread implementation is built in the library
libc_r which contains both thread-safe libc functions and the thread
functions. This library replaces libc for threaded applications.
By default, libc_r is built as part of a 'make world'. To disable the
build of libc_r you must supply the '-DNOLIBC_R' option to make(1).
A FreeBSD specific option has been added to gcc to make linking threaded
processes simple. gcc -pthread links a threaded process against libc_r
instead of libc.
"
Peter Van Epp / Operations and Technical Support
Simon Fraser University, Burnaby, B.C. Canada
More information about the argus
mailing list