getting problems with compiling kernel

Adrian Chadd adrian at freebsd.org
Thu Feb 7 20:02:49 UTC 2013


You need to dig through the patch and the freebsd tree you're using
and try to figure out where that is defined and why it isn't being
found.

Luis' patch is against -HEAD from a couple years ago, and you're (I
think) trying to patch -9. There's likely some code drift since then..



Adrian


On 7 February 2013 09:38, Yasir hussan <kolyasir at gmail.com> wrote:
> 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
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"


More information about the freebsd-current mailing list