Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2005 08:54:59 -0600
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        "Scott I. Remick" <scott@sremick.net>
Cc:        freebsd-java@freebsd.org
Subject:   Re: OS check fails on JDK 1.4 & FreeBSD 5.4R
Message-ID:  <20050526145459.GA98285@misty.eyesbeyond.com>
In-Reply-To: <pan.2005.05.26.05.34.10.523080@sremick.net>
References:  <pan.2005.05.22.18.40.12.945674@sremick.net> <200505221342.19274.vizion@vizion.occoxmail.com> <pan.2005.05.25.23.08.07.795801@sremick.net> <200505251623.55084.vizion@vizion.occoxmail.com> <pan.2005.05.26.03.50.59.597868@sremick.net> <20050526052502.GA90963@misty.eyesbeyond.com> <pan.2005.05.26.05.34.10.523080@sremick.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 26, 2005 at 01:34:11AM -0400, Scott I. Remick wrote:
> On Thu, 26 May 2005 00:25:02 -0600, Greg Lewis wrote:
> 
> > So, if you manually do (in the jdk14 directory)
> > 
> > gcc -lc_r -o work/testos files/testos.c
> > 
> > (You may need to manually create the work directory if you've done a
> >  "make clean")
> > 
> > What happens?  The only way the test can fail is if you can't compile
> > that programme.
> 
> su-2.05b# gcc -lc_r -o work/testos files/testos.c
> /usr/bin/ld: cannot find -lc_r
> 
> But does -lc_r signify libc_r? This is 5.4, so I don't have libc_r, I have
> libpthread.

That would be your problem then.  The test expects to use -lc_r on 5.x
and higher:

.if ${OSVERSION} > 500000
LINKIT= -lc_r
.else
LINKIT= -pthread
.endif

However, you should have libc_r on 5.4:

> uname -r
5.4-RELEASE-p1
> ls /usr/lib/libc_r*
/usr/lib/libc_r.a       /usr/lib/libc_r.so.5
/usr/lib/libc_r.so      /usr/lib/libc_r_p.a

So your machine would seem to be somewhat hosed unless you've deliberately
removed libc_r.

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org



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