Subject: Re: Build Failure on -current
To: Xning Lee <xning@soforge.com>
From: Matt Thomas <matt@3am-software.com>
List: port-amd64
Date: 03/18/2006 20:24:14
Xning Lee wrote:
> antiright@gmail.com writes:
> 
>> Build of a release fails with the current sources from earlier this morning.
>> Command used: ./build.sh -M amd64 -m amd64 release
>> Log:
>> #   compile  GENERIC/netbsd32_socket.o
>> /usr/src/amd64/usr/src/tooldir.NetBSD-3.0.0_STABLE-x86_64/bin/x86_64--netbsd-gcc
>>  -mcmodel=kernel -mno-red-zone -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-f
>> ormat-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wret
>> urn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Damd64 -Dx86_64 -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string -I/usr/src/sys/dist/ipf -c /usr/src/sys/compat/netbsd32/netbsd32_socket.c
>> /usr/src/sys/compat/netbsd32/netbsd32_socket.c: In function `netbsd32_recvmsg':
>> /usr/src/sys/compat/netbsd32/netbsd32_socket.c:86: error: case label does not reduce to an integer constant
>> /usr/src/sys/compat/netbsd32/netbsd32_socket.c: In function `recvit32':
>> /usr/src/sys/compat/netbsd32/netbsd32_socket.c:163: error: case label does not reduce to an integer constant
>> /usr/src/sys/compat/netbsd32/netbsd32_socket.c: In function `netbsd32_sendmsg':
>> /usr/src/sys/compat/netbsd32/netbsd32_socket.c:267: error: case label does not reduce to an integer constant
>>
>>
>> Any help would be greatly appreciated,
>> Jeff
>>
> 
> My patch:
> =========
> 
> *** netbsd32_socket.c	11 Mar 2006 16:23:12 +0800	1.17
> --- netbsd32_socket.c	18 Mar 2006 22:21:40 +0800	
> ***************
> *** 38,43 ****
> --- 38,44 ----
>   #include <sys/param.h>
>   #include <sys/systm.h>
>   #define msg __msg /* Don't ask me! */
> + #define MALLOC_NOINLINE
>   #include <sys/malloc.h>
>   #include <sys/mount.h>
>   #include <sys/socket.h>

I checked in a real fix earlier today.
-- 
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this message.