From owner-freebsd-questions@FreeBSD.ORG Tue Jun 9 17:46:53 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 EFCE41065674 for ; Tue, 9 Jun 2009 17:46:53 +0000 (UTC) (envelope-from valentin.bud@gmail.com) Received: from mail-fx0-f220.google.com (mail-fx0-f220.google.com [209.85.220.220]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFFA8FC0A for ; Tue, 9 Jun 2009 17:46:52 +0000 (UTC) (envelope-from valentin.bud@gmail.com) Received: by fxm20 with SMTP id 20so165068fxm.43 for ; Tue, 09 Jun 2009 10:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=HINzvHjuSmdC06pmd8rJYMbkN/gOV72JfNB44TKud28=; b=I6sBx2Ymf+E60Zxz0qhhHIdOgQQmnzV6txv79s9phLcnEpoBZgCVKwfoluDfxMMKLQ J59uvto2v9JLof7/yhVRGgoEScX+PJJu4KcysAC6Hi819DwxRlD2BXNAVbMicfjwE9g7 T/eMy0wjvujpV+H+OiGLzMQMazLoQQEBOoksY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=FOddxKgfDi5Nr4H7bo6+aLySlB/Xty29pk/qxP8NMBVt+mvBJN+/TVNIXYsSt9d+w6 TrZhVpySSYNLbyx5J584ES9gU+CjLEcUMdhGxSAEWdcK56OYKWJ5v+Pm/fNp36nN96sn IdJ0BpjG/yN3bD1VBgJ+WD8Fy8S8Wb99ocf5I= MIME-Version: 1.0 Received: by 10.103.249.19 with SMTP id b19mr251738mus.86.1244569612186; Tue, 09 Jun 2009 10:46:52 -0700 (PDT) In-Reply-To: <200906091030.03257.kstewart@owt.com> References: <4A2E9524.3642.14983ABC@d.forsyth.ru.ac.za> <200906090942.13729.kstewart@owt.com> <139b44430906090954g5914d81cvcaf2c80b16e727b9@mail.gmail.com> <200906091030.03257.kstewart@owt.com> From: Valentin Bud Date: Tue, 9 Jun 2009 20:46:32 +0300 Message-ID: <139b44430906091046n34ff5e47w3fc42f48b2914e2f@mail.gmail.com> To: Kent Stewart Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: d.forsyth@ru.ac.za, freebsd-questions@freebsd.org 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 17:46:54 -0000 On Tue, Jun 9, 2009 at 8:30 PM, Kent Stewart wrote: > On Tuesday 09 June 2009 09:54:41 am Valentin Bud wrote: > > On Tue, Jun 9, 2009 at 7:42 PM, Kent Stewart wrote: > > > 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 > > > > > > _______________________________________________ > > > freebsd-questions@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > To unsubscribe, send any mail to " > > > freebsd-questions-unsubscribe@freebsd.org" > > > > Hello, > > > > If you want udbp(4) you have to know that it requires netgraph(4). > > They are both available as modules and/or kernel config options > > (actually udbp(4) is a device :) ). > > If that is all it takes, then, I think that GENERIC should mention > the "options NETGRAPH" as a requirement for udbp. Well i agree with you but it *doesn't*. The man page does it: man 4 udbp: "It requires netgraph(4) to be available. This can be done either by adding options NETGRAPH to your kernel configuration file, or alterna- tively loading netgraph(4) as a module, either from /boot/loader.conf or from the command line, before the udbp module." v > There are numerous places > with "requires miibus" as a comment because a device won't compile without > it. A commented line has often been there because it was a work in progress > such as ULE was for what seems like years or broken for unknown reasons. > GENERIC was always self documenting. > > Kent > > -- > Kent Stewart > Richland, WA > > http://users.owt.com/kstewart/index.html > > -- network warrior since 2005