Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2000 11:29:36 -0800
From:      Anand Ranganathan <anand@desktop.com>
To:        stable@FreeBSD.ORG
Subject:   Re: GCC 2.95.x with threads enabled
Message-ID:  <20001124112936.A22949@desktop.com>
In-Reply-To: <F931488C3634D11180D700A02461E245036CAC5C@chitmd03.nt.il.nbgfn.com>; from mike.perik@bankofamerica.com on Fri, Nov 24, 2000 at 10:41:00AM -0600
References:  <F931488C3634D11180D700A02461E245036CAC5C@chitmd03.nt.il.nbgfn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
mike.perik@bankofamerica.com quoth:
> I'm attempting to build JTC 1.0.13 and Orbacus 4.0.3 on a SMP (2x100 mhz)
> box.   The first step is to build JTC but it needs a version of the compiler
> that has threads enabled.  The default gcc does not have threads enabled so
> I poked around in the /usr/src/contrib directory and really got no where.  I
> downloaded the source and was going to build it and install it into
> /usr/local.  I finally got that finished but it still doesn't seem to have
> threads enabled in it.  JTC/Orbacus checks for thread support by doing an nm
> on libgcc.a and grep'ing for 'thread'.  I know I used the --enable-threads
> option on configure so I'm at a loss as to what is the problem.
> 
> Has anybody else dealt with this?  How did you resolve it?
> 
> I'm running a 4.1 machine. and the gcc version is 2.95.2.

What you need is to compile with the -pthread option. See man gcc :)

Anand
-- 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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