Help with a compile error on sparc64 needed.

Oliver Eikemeier eikemeier at fillmore-labs.com
Tue Oct 28 14:47:07 PST 2003


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 ) {




More information about the freebsd-sparc64 mailing list