From owner-freebsd-current@FreeBSD.ORG Thu Feb 7 18:44:39 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B8BC5E75 for ; Thu, 7 Feb 2013 18:44:39 +0000 (UTC) (envelope-from kolyasir@gmail.com) Received: from mail-qe0-f66.google.com (mail-qe0-f66.google.com [209.85.128.66]) by mx1.freebsd.org (Postfix) with ESMTP id 83C5767D for ; Thu, 7 Feb 2013 18:44:39 +0000 (UTC) Received: by mail-qe0-f66.google.com with SMTP id 1so200273qec.5 for ; Thu, 07 Feb 2013 10:44:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=3n36QVjJaDzSNZjvXqv1q1aGa06XaKRNVueH6FjOd3E=; b=ky460ypePDuDXp50AFn5t3pjfuiIfS8YXWe7KpQBNdPKutv9vMG/ZNRYdlcg6gSzov eHBJu7o6w6rPCci9Ik0bI2+jWYAHQEqMTlObIlTc7s8ZWgPxuikiAAAh+0DFAZNGhwg0 hdtN0BrOs/BME2otzlLilA6hiBvYnYd3jmgBurKgU/ImmuGaOG18DhL9gT0rfy4Y2kC3 z2L5HttCscDdmmsD1HO60jsEJ8WW30a7sDgUGTtwSR6ukC8zWM7A47xUiZLaGFIpNj9k 1ZIJwsFlRUCYEBpNuCfJfoZX5CVwI6pgFDxlGz5vGggghUeOJob03D+GzWV37IuOVnF1 N0MA== MIME-Version: 1.0 X-Received: by 10.49.73.232 with SMTP id o8mr991816qev.0.1360258724798; Thu, 07 Feb 2013 09:38:44 -0800 (PST) Received: by 10.49.71.232 with HTTP; Thu, 7 Feb 2013 09:38:44 -0800 (PST) Date: Thu, 7 Feb 2013 12:38:44 -0500 Message-ID: Subject: getting problems with compiling kernel From: Yasir hussan To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 18:44:39 -0000 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