r243988M: /usr/src/sys/sys/socketvar.h:297:25: note: previous definition is here,extern struct uma_zone *socket_zone;

From: O. Hartmann <ohartman_at_zedat.fu-berlin.de>
Date: Sat, 08 Dec 2012 09:05:09 +0100
There is a bug in kernel code preventing from kernel being build:

cc -c -O3 -pipe -march=native -fno-strict-aliasing -march=native
-std=c99  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
-fdiagnostics-show-option  -Wno-error-tautological-compare
-Wno-error-empty-body  -Wno-error-parentheses-equality -nostdinc  -I.
-I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
-fno-omit-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone
-mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables
-ffreestanding -fstack-protector -Werror  /usr/src/sys/kern/uipc_socket.c
/usr/src/sys/kern/uipc_socket.c:262:19: error: static declaration of
'socket_zone' follows non-static declaration
static uma_zone_t socket_zone;
                  ^
/usr/src/sys/sys/socketvar.h:297:25: note: previous definition is here
extern struct uma_zone *socket_zone;
                        ^
1 error generated.
*** [uipc_socket.o] Error code 1

Stop in /usr/obj/usr/src/sys/GATE.
*** [buildkernel] Error code 1

Stop in /usr/src.
*** [buildkernel] Error code 1

Stop in /usr/src.


Just want to note.

Regards,
Oliver


Received on Sat Dec 08 2012 - 07:05:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:33 UTC