From: Tom Holroyd <tomh@taz.ccs.fau.edu>
To: samba-bugs@samba.anu.edu.au
Cc: axp-list@redhat.com
Subject: Re: samba, smbmount, smbfs & 2.0.34 (PR#8062)
Date: Tue, 30 Jun 1998 17:42:05 +0900 (JST) [thread overview]
Message-ID: <Pine.LNX.3.96.980630171943.1561A-100000@bhalpha1.nibh.go.jp> (raw)
In-Reply-To: <19980630065909Z12607238-7419+4785@samba.anu.edu.au>
I'm running Linux 2.0.34, patched from RedHat 5.0 (2.0.32).
If you have compiled smbfs support into your kernel (I did mine as a
module), you'll find that you can't mount smb shares because the smbmount
program is missing (from RedHat's distribution).
If you look for smbmount in the Samba distribution, you'll find that it
won't compile unless you have kernel 2.1.70 or better, and if you read the
Makefile, you'll be directed to smbfs-2.0.2 on
ftp://ftp.gwdg.de/pub/linux/misc/smbfs
and you'll discover that this doesn't compile either. It turns out that
it's just a bunch of #include file inconsistencies. I suspect that's the
only problem with the Samba distribution as well. You can get smbmount to
compile if you replace the #includes at the top with these:
------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pwd.h>
#include <grp.h>
#include <unistd.h>
#include <ctype.h>
#include <mntent.h>
#include <fcntl.h>
#include <netdb.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/mount.h>
#include <sys/socket.h>
#include <linux/smb.h>
#include <linux/smb_mount.h>
#include <asm/byteorder.h>
------------------------------
That'll do it. The smbfs module could use some better error checking
though. When I give an invalid password I get a /var/log/messages entry
that reads
kernel: smb_dont_catch_keepalive: server->data_ready == NULL
Duh.
Hey, I have Win95 shares mounted on my Alpha. Cool.
Dr. Tom Holroyd
Behavior Control Lab, Human Informatics Dept. The basis of
National Institute of Bioscience and Human-Technology stability is
1-1 Higashi, Tsukuba-shi, Ibaraki 305, Japan instability.
The 9th Amendment of the U.S. Constitution:
"The enumeration in the Constitution, of certain rights, shall not be
construed to deny or disparage others retained by the people."
parent reply other threads:[~1998-06-30 8:42 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <19980630065909Z12607238-7419+4785@samba.anu.edu.au>]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox