From owner-freebsd-current@FreeBSD.ORG Thu Feb 7 20:02:49 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6B93587D for ; Thu, 7 Feb 2013 20:02:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 04F66A51 for ; Thu, 7 Feb 2013 20:02:48 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id o1so19510wic.17 for ; Thu, 07 Feb 2013 12:02:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=zrTCcOIzMq8djMG9dVfTc0yK7JRYFKgY6uPX1M28o3k=; b=yS3iUGrW/rqxZKGqmPCK0RRPsH8SsA8KR5Ux4Dwr4fkfE7RmUG3DUVoIYaVNnuI1kn Hd20buDFTU2da3UN4rPSDXGUYzIuhdtB601jKah2H9xjp0jNdBHVG+bfynEoqe+5WJEK 8YkRnJeEyNl58euqBl0iCihJWADO37I/oxdOanXmoz6zJ9RVW7cSTsGFLX2jQ/ZT7Zia VqhoWRnTM7RRsTxPYCbixNph6oa6eS2Pb2Foht06rpV83owQOoLSrnB9Y7GfsOOfLGqy 97XttJsT61/kF42b60q1JWMqcwSBFixQ86n1wnEt/ZXLx1JQ9ZWXXXp3dBYQmZCq1IJU i0cg== MIME-Version: 1.0 X-Received: by 10.180.99.72 with SMTP id eo8mr14226892wib.34.1360267367839; Thu, 07 Feb 2013 12:02:47 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.236.88 with HTTP; Thu, 7 Feb 2013 12:02:47 -0800 (PST) In-Reply-To: References: Date: Thu, 7 Feb 2013 12:02:47 -0800 X-Google-Sender-Auth: cgkSOKCUTqGI1eiNdLStaEQhPdk Message-ID: Subject: Re: getting problems with compiling kernel From: Adrian Chadd To: Yasir hussan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2013 20:02:49 -0000 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 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"