From owner-freebsd-questions@FreeBSD.ORG Tue Jun 9 16:42:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4363D106566B for ; Tue, 9 Jun 2009 16:42:18 +0000 (UTC) (envelope-from kstewart@owt.com) Received: from smtp.owt.com (smtp.owt.com [64.146.239.50]) by mx1.freebsd.org (Postfix) with ESMTP id 02AC88FC12 for ; Tue, 9 Jun 2009 16:42:17 +0000 (UTC) (envelope-from kstewart@owt.com) Received: from kstewart2.owt.com (kstewart2.owt.com [64.146.237.228]) (authenticated bits=0) by smtp.owt.com (8.13.8/8.13.8) with ESMTP id n59GgEab002416; Tue, 9 Jun 2009 09:42:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=owt.com; s=default; t=1244565737; bh=h0/ewImv1remuZlIj7w7tdwOMZIb+1xajnC3+uGDhrA=; h=From:To:Subject:Date:References:In-Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id; b=kqlB5IP4Y4no6 NbSESudR9ViaXj/p+Fr8FCkMlbpGxgHTVC/c1wyW5mYQtIcntCUL3VxvBBnRk7VoAUx zmq7dHc6ZPU4hGoYVQ5ljtiXBfua+A5O4Vub/trrXLwUL4289b3TGDDOX5dPVWi1sxb rcY6zt1NGLk9H7mBoAIaq/OQ= From: Kent Stewart To: freebsd-questions@freebsd.org, d.forsyth@ru.ac.za Date: Tue, 9 Jun 2009 09:42:13 -0700 User-Agent: KMail/1.9.10 References: <4A2E9524.3642.14983ABC@d.forsyth.ru.ac.za> In-Reply-To: <4A2E9524.3642.14983ABC@d.forsyth.ru.ac.za> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906090942.13729.kstewart@owt.com> Cc: Subject: Re: another compile error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 16:42:18 -0000 On Tuesday 09 June 2009 08:00:20 am DA Forsyth wrote: > Hiya > > trying to build kernel for 7.2 and get this > (my earlier problem was my having CFLAGS=... in /etc/src.conf) > > MAKE=make sh /usr/src/sys/conf/newvers.sh LERGY72 > cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs - > Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline - > Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -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=100 --param large- > function-growth=1000 -mno-align-long-strings -mpreferred-stack- > boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 - > ffreestanding -Werror vers.c > linking kernel.debug > udbp.o(.text+0x59): In function `ng_udbp_disconnect': > /usr/src/sys/dev/usb/udbp.c:857: undefined reference to > `ng_rmnode_self' > udbp.o(.text+0xc9): In function `udbp_detach': > /usr/src/sys/dev/usb/udbp.c:450: undefined reference to > `ng_rmnode_self' > udbp.o(.text+0xde):/usr/src/sys/dev/usb/udbp.c:452: undefined > reference to `ng_unref_node' > udbp.o(.text+0x79e): In function `udbp_attach': > /usr/src/sys/dev/usb/udbp.c:375: undefined reference to `ng_newtype' > udbp.o(.text+0x7cc):/usr/src/sys/dev/usb/udbp.c:381: undefined > reference to `ng_make_node_common' > udbp.o(.text+0x813):/usr/src/sys/dev/usb/udbp.c:384: undefined > reference to `ng_name_node' > udbp.o(.text+0x828):/usr/src/sys/dev/usb/udbp.c:385: undefined I just cvsuped and did a buildworld and a buildkernel. The kernel compiled without a problem. So, this means that you have probably modified your kernel config file until it doesn't work. Start over with GENERIC and leave the comment on udbp. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html