From owner-freebsd-ports@FreeBSD.ORG Wed Feb 23 06:50:58 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAE8916A4CE for ; Wed, 23 Feb 2005 06:50:58 +0000 (GMT) Received: from lakermmtao07.cox.net (lakermmtao07.cox.net [68.230.240.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E55A43D2D for ; Wed, 23 Feb 2005 06:50:58 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by lakermmtao07.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20050223065057.DSEO5499.lakermmtao07.cox.net@mezz.mezzweb.com>; Wed, 23 Feb 2005 01:50:57 -0500 Date: Wed, 23 Feb 2005 00:51:45 -0600 To: "Garance A Drosihn" References: <64348.207.219.213.162.1109011818.squirrel@207.219.213.162> <20050221194954.GA49438@xor.obsecurity.org> <6a2d0a658b1cfe9503183eb978e4e2d6@snsonline.net> From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: User-Agent: Opera M2/7.54 (Linux, build 955) cc: ports@freebsd.org Subject: Re: FreeBSD Port: ruby18-1.8.2_2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 06:50:59 -0000 On Wed, 23 Feb 2005 01:12:02 -0500, Garance A Drosihn wrote: > At 10:59 PM -0600 2/22/05, Jeremy Messenger wrote: >> On Tue, 22 Feb 2005, Garance A Drosihn wrote: >>> >>> It seems there are two different issues. >>> >>> When it comes to the present port (ruby-1.8.2_2), it compiles >>> fine on sparc64 if I change one line in the Makefile: >> >> Oh, I thought you mean by ruby-1.8.2_1... > > The previous port, version ruby-1.8.2_1, compiles and runs on > sparc64 without any problem. The present port, (ruby-1.8.2_2), > will coredump while building unless the following one-line > change is made. By "present port", I mean the port that users > will get when they cvsup the ports collection right now. > >>> .include >>> -.if ${OSVERSION} >= 502102 >>> +.if ${OSVERSION} >= 502102 && ${ARCH} != "sparc64" >>> RUBY_ENABLE_PTHREAD?= public demand >>> .endif > >> This should be no difference with with my patch, because my >> patch doesn't enable pthread stuff. I removed the pthread >> stuff because it causes few more troubles. > > I do not completely understand what your patch is attempting > to do. I just played with it until I had something which > compiled and seems to work on both sparc64 and powerPC. > >>> The patch that I end up with is at: >>> >>> http://people.freebsd.org/~gad/ports/ruby18+mezz+gad_3.diff >>> >>> My patch is about the same as your last patch, minus the >>> patch-ruby-1.6.8-fix-x86_64 file, plus my changes to the Makefile. >> >> This is very weird.. Why does sparc64 dislike the -pthread? >> sparc64 doesn't has libpthread support? > > It might not. I seem to remember that the sparc64 port is > missing some parts of support for threaded applications. I had a chat with marcus and he said that he knows that sparc64 is using libc_r, so I believe that my lastest ruby18.diff should solve your problem by remove '-lc'.. libc and libc_r can't be coexist; it's same as with FreeBSD 4.x stuff. >> [...] My ruby28.diff is such smaller now. > > At this point, I really have no more time for testing this. > Hopefully your latest patch works as well as you expect it to. Ok, it's no problem.. I will asking kwm. Thanks! Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org