can't load smbfs kernel module

2010-01-25 Thread Anton Shterenlikht
This is on FreeBSD 9.0-CURRENT #0 r202964M ia64

I've built a kernel with smbfs module:

# ls -al /boot/kernel/smb*
-r-xr-xr-x  1 root  wheel  265579 25 Jan 13:36 /boot/kernel/smbfs.ko
-r-xr-xr-x  1 root  wheel  680186 25 Jan 13:36 /boot/kernel/smbfs.ko.symbols

but can't load it:

# kldload smbfs
kldload: can't load smbfs: No such file or directory


Other modules load fine with kldload, e.g.:

# ls -al /boot/kernel/geom_part_apm*
-r-xr-xr-x  1 root  wheel  21320 25 Jan 13:36 /boot/kernel/geom_part_apm.ko
-r-xr-xr-x  1 root  wheel  51141 25 Jan 13:36 
/boot/kernel/geom_part_apm.ko.symbols
# kldload geom_part_apm
# kldstat
Id Refs AddressSize Name
 15 0xe400 b69e60   kernel
 21 0xe4b6a000 3d268geom_mirror.ko
 31 0xa0646000 14000geom_part_apm.ko
# 

All I need is to mount an MS WIndows partition to my fbsd box.

Please advise

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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


Re: can't load smbfs kernel module

2010-01-25 Thread Kevin Kinsey

Anton Shterenlikht wrote:

This is on FreeBSD 9.0-CURRENT #0 r202964M ia64

I've built a kernel with smbfs module:

# ls -al /boot/kernel/smb*
-r-xr-xr-x  1 root  wheel  265579 25 Jan 13:36 /boot/kernel/smbfs.ko
-r-xr-xr-x  1 root  wheel  680186 25 Jan 13:36 /boot/kernel/smbfs.ko.symbols

but can't load it:

# kldload smbfs
kldload: can't load smbfs: No such file or directory


Other modules load fine with kldload, e.g.:


Does it make any difference to use the .ko extension, to
call it by absolute path, or to use -v for more information,
per The Friendly Manual?

Certainly no expert.  Wondering tho, as I don't know if
the kernel maintains a list of new objects if they've been
recently added.  Hate to ask if you've done a reboot :-)

Also, for curiosity, `file /boot/kernel/smbfs.ko`?



All I need is to mount an MS WIndows partition to my fbsd box.

Please advise

many thanks
anton

___
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


Re: can't load smbfs kernel module

2010-01-25 Thread Anton Shterenlikht
On Mon, Jan 25, 2010 at 10:38:47AM -0600, Kevin Kinsey wrote:
 Anton Shterenlikht wrote:
  This is on FreeBSD 9.0-CURRENT #0 r202964M ia64
  
  I've built a kernel with smbfs module:
  
  # ls -al /boot/kernel/smb*
  -r-xr-xr-x  1 root  wheel  265579 25 Jan 13:36 /boot/kernel/smbfs.ko
  -r-xr-xr-x  1 root  wheel  680186 25 Jan 13:36 /boot/kernel/smbfs.ko.symbols
  
  but can't load it:
  
  # kldload smbfs
  kldload: can't load smbfs: No such file or directory
  
  
  Other modules load fine with kldload, e.g.:
 
 Does it make any difference to use the .ko extension, to
 call it by absolute path, or to use -v for more information,
 per The Friendly Manual?

no, doesn't make any difference:

# kldload -v /boot/kernel/smbfs.ko
kldload: can't load /boot/kernel/smbfs.ko: No such file or directory
#

but I see in /var/log/messages:

 kernel: KLD smbfs.ko: depends on libiconv - not available or version mismatch

I've rebuilt world, rebuilt and reinstalled kernel, installed world,
and merged, etc., including rm -rf /usr/obj/* , so there shouldn't
be any version mismatch.

Is there a way to debug this further?

 Also, for curiosity, `file /boot/kernel/smbfs.ko`?

seems to be the same as other modules:

# file /boot/kernel/smbfs.ko
/boot/kernel/smbfs.ko: ELF 64-bit LSB shared object, IA-64, version 1 
(FreeBSD), dynamically linked, not stripped
# file /boot/kernel/geom_mirror.ko
/boot/kernel/geom_mirror.ko: ELF 64-bit LSB shared object, IA-64, version 1 
(FreeBSD), dynamically linked, not stripped
# 

many thanks
anton


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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


Re: can't load smbfs kernel module

2010-01-25 Thread Anton Shterenlikht
On Mon, Jan 25, 2010 at 09:56:54PM +, Anton Shterenlikht wrote:
 On Mon, Jan 25, 2010 at 10:38:47AM -0600, Kevin Kinsey wrote:
  Anton Shterenlikht wrote:
   This is on FreeBSD 9.0-CURRENT #0 r202964M ia64
   
   I've built a kernel with smbfs module:
   
   # ls -al /boot/kernel/smb*
   -r-xr-xr-x  1 root  wheel  265579 25 Jan 13:36 /boot/kernel/smbfs.ko
   -r-xr-xr-x  1 root  wheel  680186 25 Jan 13:36 
   /boot/kernel/smbfs.ko.symbols
   
   but can't load it:
   
   # kldload smbfs
   kldload: can't load smbfs: No such file or directory
   
   
   Other modules load fine with kldload, e.g.:
  
  Does it make any difference to use the .ko extension, to
  call it by absolute path, or to use -v for more information,
  per The Friendly Manual?
 
 no, doesn't make any difference:
 
 # kldload -v /boot/kernel/smbfs.ko
 kldload: can't load /boot/kernel/smbfs.ko: No such file or directory
 #
 
 but I see in /var/log/messages:
 
  kernel: KLD smbfs.ko: depends on libiconv - not available or version mismatch
 
 I've rebuilt world, rebuilt and reinstalled kernel, installed world,
 and merged, etc., including rm -rf /usr/obj/* , so there shouldn't
 be any version mismatch.
 
 Is there a way to debug this further?

well.. maybe this is irrelevant, but I disovered that
there is actually a module libiconv, despite the fact that
there are already libiconv lib built with the base OS:

 ls -al /usr/local/lib/libiconv.*
-rw-r--r--  1 root  wheel  1113476  4 Aug 22:40 /usr/local/lib/libiconv.a
-r--r--r--  1 root  wheel  920  4 Aug 22:40 /usr/local/lib/libiconv.la
lrwxr-xr-x  1 root  wheel   13  4 Aug 22:40 /usr/local/lib/libiconv.so - 
libiconv.so.3
-r--r--r--  1 root  wheel  1102764  4 Aug 22:40 /usr/local/lib/libiconv.so.3

Anyway, I've built the libiconv module, and loaded it
to the kernel, but still get the same error trying
to load smbfs.


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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