Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2013 12:02:47 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Yasir hussan <kolyasir@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: getting problems with compiling kernel
Message-ID:  <CAJ-VmomeRu74JQC-O3KS7bF9GTaQj4hck_0SvgcbJYCPDfLRDQ@mail.gmail.com>
In-Reply-To: <CAMwCe3RaLkDi3JcOpq5vnvTsJTjuqsmzUpMAu6Vv_J6TboCF5g@mail.gmail.com>
References:  <CAMwCe3RaLkDi3JcOpq5vnvTsJTjuqsmzUpMAu6Vv_J6TboCF5g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"



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