Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2003 13:12:59 -0600
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Bruce Cran <bruce@cran.org.uk>
Cc:        "Daniel C. Sobral" <dcs@tcoip.com.br>, freebsd-current@freebsd.org
Subject:   Re: can't load if_gif.ko
Message-ID:  <20030226131259.A75874@FreeBSD.org>
In-Reply-To: <20030226190837.GA3810@fourtytwo.brucec.backnet>; from bruce@cran.org.uk on Wed, Feb 26, 2003 at 07:08:37PM %2B0000
References:  <3E5D07C6.4080806@tcoip.com.br> <20030226190837.GA3810@fourtytwo.brucec.backnet>

next in thread | previous in thread | raw e-mail | index | archive | help
* De: Bruce Cran <bruce@cran.org.uk> [ 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 <jmallett@FreeBSD.org> - 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030226131259.A75874>