From owner-freebsd-current Wed Feb 26 11:13: 1 2003 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id E7B1337B401; Wed, 26 Feb 2003 11:12:59 -0800 (PST) Date: Wed, 26 Feb 2003 13:12:59 -0600 From: Juli Mallett To: Bruce Cran Cc: "Daniel C. Sobral" , freebsd-current@freebsd.org Subject: Re: can't load if_gif.ko Message-ID: <20030226131259.A75874@FreeBSD.org> References: <3E5D07C6.4080806@tcoip.com.br> <20030226190837.GA3810@fourtytwo.brucec.backnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030226190837.GA3810@fourtytwo.brucec.backnet>; from bruce@cran.org.uk on Wed, Feb 26, 2003 at 07:08:37PM +0000 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , , X-Towel: Yes X-Negacore: Yes X-Title: Code Maven Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * De: Bruce Cran [ Data: 2003-02-26 ] [ Subjecte: Re: can't load if_gif.ko ] > On Wed, Feb 26, 2003 at 03:30:30PM -0300, Daniel C. Sobral wrote: > > It seems something has gone wrong on current wrt if_gif: > > > > [root@pajeus etc]# ifconfig gif0 create > > ifconfig: SIOCIFCREATE: Invalid argument > > [root@pajeus etc]# kldload if_gif > > kldload: can't load if_gif: No such file or directory > > > > It works for vlan, so that's not a general module/ifmodule loading problem. > > > > Very recent current. > > > > It doesn't work on 4.7 either if IPv6 isn't compiled into the kernel. > If you look at the kernel messages it might > give you more information. It might be a different problem, but mine was > wanting IPv6, and refused to > load without it. This type of error reminds me of trying to run FreeBSD > binaries on Linux - you run ./bsd_app and it says 'No such file or directory' > which is less than helpful, while I generally find FreeBSD error messages to be a lot > more informative. Would it be possible for this message to be > reworded to be more helpful? The file does indeed exist, it's just that > the system cannot load it. Or, if a module fails to load, maybe prompt the > user to look at the kernel messages for any error messages? It's easy to change kldload to have something like "Failed to load module", but changing the result of strerror(errno) isn't possible in this case. It is possible, however, to check for obtuse errno values being used that we KNOW mean something in this context, and give something more informative. -- Juli Mallett - AIM: BSDFlata -- IRC: juli on EFnet OpenDarwin, Mono, FreeBSD Developer - ircd-hybrid Developer, EFnet addict FreeBSD on MIPS-Anything on FreeBSD - Never trust an ELF, COFF or Mach-O! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message