From owner-freebsd-sparc64@FreeBSD.ORG Tue Oct 28 14:47:07 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3265716A4CE for ; Tue, 28 Oct 2003 14:47:07 -0800 (PST) Received: from mx2.fillmore-labs.com (lima.fillmore-labs.com [62.138.193.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2B7043FF7 for ; Tue, 28 Oct 2003 14:47:05 -0800 (PST) (envelope-from eikemeier@fillmore-labs.com) Received: from pd951a236.dip.t-dialin.net ([217.81.162.54] helo=fillmore-labs.com ident=i41sdteva7rx3po4) by mx2.fillmore-labs.com with asmtp (TLSv1:AES256-SHA:256) (Exim 4.24; FreeBSD 4.9) id 1AEccC-0000CE-9Y; Tue, 28 Oct 2003 23:47:04 +0100 Message-ID: <3F9EF1E5.3000901@fillmore-labs.com> Date: Tue, 28 Oct 2003 23:47:01 +0100 From: Oliver Eikemeier MIME-Version: 1.0 To: Marius Strobl References: <3F9EB179.9070002@fillmore-labs.com> <20031028212603.A17836@newtrinity.zeist.de> In-Reply-To: <20031028212603.A17836@newtrinity.zeist.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: eikemeier@fillmore-labs.com User-Agent: KMail/1.5.9 Organization: Fillmore Labs GmbH X-Complaints-To: abuse@fillmore-labs.com cc: FreeBSD-sparc64@freebsd.org Subject: Re: Help with a compile error on sparc64 needed. X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2003 22:47:07 -0000 Marius Strobl wrote: > On Tue, Oct 28, 2003 at 07:12:09PM +0100, Oliver Eikemeier wrote: > >>Hi list, >> >>sorry when I am OT, but can someone point me in to right direction how to fix: >> >> http://bento.freebsd.org/errorlogs/sparc64-5-latest/nmap-3.48_1.log >> >>The error is: >> >>cc -c -I/usr/include -O -pipe -Wall [...] nsock_event.c -o nsock_event.o >>{standard input}: Assembler messages: >>{standard input}:441: Error: relocation overflow >>*** Error code 1 >> >>And I have no sparc machine to test this... > > I already sent you the attached patch to work around this GCC bug in > Nmap a while ago. Thanks. Got lost in the flood of patches. Do you mind to send it as a PR? > --- nsock/src/nsock_event.c.orig Fri Oct 3 15:33:05 2003 > +++ nsock/src/nsock_event.c Fri Oct 3 15:32:31 2003 > @@ -242,8 +242,9 @@ > int type_code = (int) type; > unsigned long serial = ms->next_event_serial++; > unsigned long max_serial_allowed; > - int shiftbits = sizeof(nsock_event_id) * 8 - TYPE_CODE_NUM_BITS; > + int shiftbits; > assert(type <= 3); > + shiftbits = sizeof(nsock_event_id) * 8 - TYPE_CODE_NUM_BITS; > > max_serial_allowed = ( 1 << shiftbits ) - 1; > if (serial == max_serial_allowed ) {