Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Apr 1999 23:43:13 -0600
From:      Dave <dchang@uswest.net>
To:        current@FreeBSD.ORG
Subject:   Re: Code Crusader 2.0.x on FreeBSD
Message-ID:  <99042402095800.04561@Amber.XtremeDev.com>
References:  <199904240519.WAA97673@psf.Pinyon.ORG>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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