Subject: Re: Build Failure on -current
To: None <antiright@gmail.com>
From: Xning Lee <xning@soforge.com>
List: port-amd64
Date: 03/19/2006 10:03:15
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>