getting problems with compiling kernel

From: Yasir hussan <kolyasir_at_gmail.com>
Date: Thu, 7 Feb 2013 12:38:44 -0500
hi,

i yesterday i was tried to patch file on my freensd code, because it was my
custom code so i had to patch my code by update file to file, with my
calculation everything should go perfectly it didn`t, i am getting some
errors like

cc -c -O -pipe -march=mips32 -std=c99 -g -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 -nostdinc  -I.
-I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=10000 --param
large-function-growth=100000 --param max-inline-insns-single=10000
 -fno-pic -mno-abicalls -G0 -march=mips32 -msoft-float -ffreestanding
-Werror  /usr/src/sys/dev/switch/switch.c
cc1: warnings being treated as errors
/usr/src/sys/dev/switch/switch.c: In function 'switchbus_child_pnpinfo_str':
/usr/src/sys/dev/switch/switch.c:207: warning: implicit declaration of
function 'MII_OUI'
/usr/src/sys/dev/switch/switch.c:207: warning: nested extern declaration of
'MII_OUI' [-Wnested-externs]
/usr/src/sys/dev/switch/switch.c:208: warning: implicit declaration of
function 'MII_MODEL'
/usr/src/sys/dev/switch/switch.c:208: warning: nested extern declaration of
'MII_MODEL' [-Wnested-externs]
/usr/src/sys/dev/switch/switch.c:208: warning: implicit declaration of
function 'MII_REV'
/usr/src/sys/dev/switch/switch.c:208: warning: nested extern declaration of
'MII_REV' [-Wnested-externs]
*** Error code 1

MII_OUI are simple macro which u can also view on open source freebsd v9 at
location "src/sys/dev/mii/miivar.h", and "switch" is the driver folder
which you can check from patch(http://loos.no-ip.org/rspro/switch-1.diff)

any help will be appreciative...

Thanks,

Regards:
Yasir Amin
Received on Thu Feb 07 2013 - 17:44:39 UTC

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