Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2013 12:38:44 -0500
From:      Yasir hussan <kolyasir@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   getting problems with compiling kernel
Message-ID:  <CAMwCe3RaLkDi3JcOpq5vnvTsJTjuqsmzUpMAu6Vv_J6TboCF5g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMwCe3RaLkDi3JcOpq5vnvTsJTjuqsmzUpMAu6Vv_J6TboCF5g>