Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2003 02:07:31 -0800
From:      Max Khon <fjoe@FreeBSD.org>
To:        joseph <altea@attbi.com>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: Compiling libc and libc_r broken with new compiler code generator and GNU C 3.2.1-FreeBSD release
Message-ID:  <20030124020731.B4730@FreeBSD.org>
In-Reply-To: <1043398033.66422.8.camel@imerxion.we.client2.attbi.com>; from altea@attbi.com on Fri, Jan 24, 2003 at 12:47:13AM -0800
References:  <200301240146.h0O1kUCt053053@repoman.freebsd.org> <1043398033.66422.8.camel@imerxion.we.client2.attbi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
hi, there!

On Fri, Jan 24, 2003 at 12:47:13AM -0800, joseph wrote:

> Hi - IS libc_r and libc Makefile process slightly broken???
> If you build libc and try to install it works but then
> the compiling of any program using THIS libc is broken using
> the RELEASE-5.0 make files. It says the pthread references
> are not linked into the libc.so -- Where do these get linked in??
> 
> I have been experimenting with a new code generator I wrote for gnu
> 3.2.1 (C/C++) and it can really speed things up.
> 
>  When I recompiled the libc
> and libc_r the compiler stopped working under 5.0-RELEASE, but under
> 4.7-STABLE it works fine and gives the 160%+ speed improvement...
> It complains of not finding a pthread references in the libc.so file
> when the compiler trys to link.

you should use -lc_r in 5.x to link pthreads in
(or -lpthread when it will be ready, notice an 'l' after '-')
-pthread (which should be used in 4.x and earlier to link pthreads in)
is a no-op in 5.x afaik

> Does the following fix it?

no. this is a no-op clean up commit

> Also on a straight compile with the vanilla gnu c compiler 3.2.1
> that comes with 5.0-RELEASE it also breaks like this.

/fjoe

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




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