On Sun, Feb 21, 2010 at 08:47:01AM +0000, John wrote:
> Hi, thanks for replying
> 
> On Sun, Feb 21, 2010 at 03:10:05AM +0100, Pieter de Goeje wrote:
> > 
> > Somehow your linux.ko is broken, do you perhaps have WITHOUT_LINUX= 
> > in /etc/src.conf or /etc/make.conf? 
> 
> I have no src.conf
> 
> make.conf looks like this:
> 
> $ cat /etc/make.conf | less
> CPUTYPE?=athlon64
> WITH_MUTT_IMAP_HEADER_CACHE=yes
> WITH_MUTT_SMTP=yes
> WITH_MUTT_CYRUS_SASL2=yes
> # added by use.perl 2009-11-27 15:44:59
> PERL_VERSION=5.10.1
> 
> > Check the last modification date of /boot/kernel/linux.ko, does it 
> > correspond 
> > (roughly) to the one from /boot/kernel/kernel?
> 
> Yes, it does:
> 
> $ ls -la /boot/kernel/linux.ko
> -r-xr-xr-x  1 root  wheel   240K Feb 20 21:50 /boot/kernel/linux.ko*
> $ ls -la /boot/kernel/kernel
> -r-xr-xr-x  1 root  wheel   6.8M Feb 20 21:08 /boot/kernel/kernel*
> 
> > About the kernel option, try COMPAT_LINUX32. It's a documentation bug.
> 
> OK I'll try that now, thanks
> 
> edit: I got this error:
> 
> ../../../amd64/linux32/linux32_sysvec.c:38:2: error: #error "Unable to
> compile Linux-emulator due to missing COMPAT_IA32 option!"
> mkdep: compile failed
> *** Error code 1
> 
> so I'll add that one, too - seems to be building now

That didn't fix it, and I should have mentioned at the start that I was
using a custom kernel. I was also having a problem with rar out of the
ports - it gave a similar error to the kldstat. So I did this:

/usr/local/bin/rar: ELF 32-bit LSB executable, Intel 80386, version 1
(FreeBSD), statically linked, for FreeBSD 7.0 (700055), stripped

and then remembered I'd stripped out the compatibility 4 5 6 and 7 from
the kernel. So put them back in, recompiled and now everything works.

Sorry for the noise.
-- 
John - comp dot john at googlemail dot com
OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop
GPG: 0xF08A33C5
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to