From owner-freebsd-java@FreeBSD.ORG Thu May 26 14:55:05 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10E6516A429 for ; Thu, 26 May 2005 14:55:05 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (glewis.dsl.xmission.com [166.70.56.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 348CA43D58 for ; Thu, 26 May 2005 14:55:01 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.3/8.13.3) with ESMTP id j4QEt077098427; Thu, 26 May 2005 08:55:00 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.3/8.13.3/Submit) id j4QEsxJG098423; Thu, 26 May 2005 08:54:59 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Thu, 26 May 2005 08:54:59 -0600 From: Greg Lewis To: "Scott I. Remick" Message-ID: <20050526145459.GA98285@misty.eyesbeyond.com> References: <200505221342.19274.vizion@vizion.occoxmail.com> <200505251623.55084.vizion@vizion.occoxmail.com> <20050526052502.GA90963@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-java@freebsd.org Subject: Re: OS check fails on JDK 1.4 & FreeBSD 5.4R X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2005 14:55:05 -0000 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