From owner-freebsd-current Sat Apr 24 1:12:32 1999 Delivered-To: freebsd-current@freebsd.org Received: from dnvrpop1.dnvr.uswest.net (dnvrpop1.dnvr.uswest.net [206.196.128.3]) by hub.freebsd.org (Postfix) with SMTP id 4738814F0F for ; Sat, 24 Apr 1999 01:12:29 -0700 (PDT) (envelope-from dchang@uswest.net) Received: (qmail 23887 invoked by alias); 24 Apr 1999 08:09:57 -0000 Delivered-To: fixup-current@FreeBSD.ORG@fixme Received: (qmail 23879 invoked by uid 0); 24 Apr 1999 08:09:57 -0000 Received: from mdsl206.dnvr.uswest.net (HELO Amber.XtremeDev.com) (209.181.71.206) by dnvrpop1.dnvr.uswest.net with SMTP; 24 Apr 1999 08:09:57 -0000 From: Dave Reply-To: dchang@uswest.net To: current@FreeBSD.ORG Subject: Re: Code Crusader 2.0.x on FreeBSD Date: Fri, 23 Apr 1999 23:43:13 -0600 X-Mailer: KMail [version 1.0.17] Content-Type: text/plain References: <199904240519.WAA97673@psf.Pinyon.ORG> MIME-Version: 1.0 Message-Id: <99042402095800.04561@Amber.XtremeDev.com> Content-Transfer-Encoding: 8bit X-KMail-Mark: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Replying to both Scott Michel and Russell L. Carter: Scott. According to man pthread, libc_r is pulled in automatically by the -pthread switch. From man pthread : 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. But I tried it anyways, and was presented with the same result. lc_r -lstdc++ -lm -lc_r -pthread /usr/local/lib/liblthread.so.0: undefined reference to `_sigsuspend' /usr/local/lib/liblthread.so.0: undefined reference to `_nanosleep' /usr/local/lib/liblthread.so.0: undefined reference to `_fork' /usr/local/lib/liblthread.so.0: undefined reference to `_sched_yield' /usr/local/lib/liblthread.so.0: undefined reference to `_write' /usr/local/lib/liblthread.so.0: undefined reference to `_close' gmake[2]: *** [makemake] Error 1 gmake[2]: Leaving directory `/usr/home/dave/temp/JX-1.1.22/programs/makemake' gmake[1]: *** [install] Error 2 gmake[1]: Leaving directory `/usr/home/dave/temp/JX-1.1.22/lib' gmake: *** [freebsd] Error 2 On Fri, 23 Apr 1999, Scott Michel wrote: >Try adding "-lc_r" after "-lpthread". Russel. Ok, I understand, I will use the config files that came with ACE. ACE comes with a config-freebsd.h and config-freebsd-pthread.h (the same for platform_freebsd.GNU and platform_freebsd_pthread.GNU), and the only one that would get the ACE library to compile are the [-_]pthread files. And the results are good, I'm not getting core dumps anymore, and things are actually compiling, except for code crusader itself. But it seems to be more of a problem with make.header making references to jtree_constants and jtree dirs that doesn't exist. But this is outside the problems with the threads. Thank you for your help, everyone. This thing looks like it just might work. Now to have a few words with the author about the jtree references... On Fri, 23 Apr 1999, Russell L. Carter wrote: > [...] > because liblthread is linuxthreads, and you really want what the > original ACE configuration probably specified, given the time frame, > which is libc_r threads. > > I am converging in on getting a performance analysis done of libc_r > and linuxthreads on ACE and TAO (!!) nailed down, > so I don't have time to build this stuff though > it looks very interesting. Please do not use any of my config files > at www.pinyon.org/ace for this sort of thing. > > Switching amongst the thread libs is a real mess right now but I have > got most of it automated. Still some glitches though. > > I will say for those interested that the sched.diff patch on > Richard Seaman's page works as advertised, and I am just drooling > at the prospect of running the full set of "real-time" priority tests on > the set of described in several papers on Douglas Schmidt's site. > > Way cool, everybody > who has worked on threads or scheduling! Thanks! > > Cheers, > Russell To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message