Date: Wed, 2 Jun 2004 12:43:03 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Edd <list@arameus.net> Cc: freebsd-questions@freebsd.org Subject: Re: OSVERSION Message-ID: <20040602114303.GB13060@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <200406021108.i52B8a121264@server1.web-mania.com> References: <200406021108.i52B8a121264@server1.web-mania.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--ftEhullJWpWg/VHq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 02, 2004 at 12:08:36PM +0100, Edd wrote: > Couple of quick queries. >=20 > a) How might i find my OSVERSION. I have tried echo $OSVERSION. The standard way of doing this is: % uname -r There's also: % sysctl kern.osreldate or in the special case of dealing with ports, you can just run: % make -VOSVERSION in any port directory. =20 > b) I am trying to compile ardour (manually) . It tells me that I need > posix threads support. What do I need to install? The answer depends on what version of FreeBSD you are running. For 4.x: add -D_THREAD_SAFE to the compile flags when compiling the code, and add -pthread at the linking stage. For 5.x at or earlier than about 5.2 use -D_THREAD_SAFE on compilation, but add -lc_r to the link flags. For 5.x after that, no extra compile flags are necessary, but you should add -lpthreads to the link line. The precise bounduaries where those sets of flags change can be obtained from /usr/port/Mk/bsd.ports.mk: .if ${OSVERSION} < 500016 PTHREAD_CFLAGS?=3D -D_THREAD_SAFE PTHREAD_LIBS?=3D -pthread .elif ${OSVERSION} < 502102 PTHREAD_CFLAGS?=3D -D_THREAD_SAFE PTHREAD_LIBS?=3D -lc_r .else PTHREAD_CFLAGS?=3D PTHREAD_LIBS?=3D -lpthread .endif Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --ftEhullJWpWg/VHq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAvb1HiD657aJF7eIRAuL0AJ9LCCwT4bThkbBuvwKlvIUNEAd4dACguCuD JztbF8GZqB3JtqkaGQbQzns= =L+y/ -----END PGP SIGNATURE----- --ftEhullJWpWg/VHq--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040602114303.GB13060>