[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Samba VFS Support. [long]
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Samba VFS Support. [long]
- From: Eduardo Augusto Alvarenga <eduardo-openbsd-misc_(_dot_)_a8164a_(_at_)_thrx_(_dot_)_dyndns_(_dot_)_org>
- Date: Mon, 21 Oct 2002 14:26:46 -0300 (BRT)
- Reply-to: Eduardo Augusto Alvarenga <eduardo-openbsd-misc_(_dot_)_a8164a_(_at_)_thrx_(_dot_)_dyndns_(_dot_)_org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm running a OpenBSD-3.2-current system and I'm trying to set up a
samba-2.2.6 port with VFS modules included. The steps I took to compile
the VFS modules where a little hard, including dependencies failures and
files not found. After lots of researches, I finally got to compile
audit.so, skel.so and recycle.so by making symbolic links from
/usr/ports/net/samba/stable/w-samba-2.2.6/build-i386/include/* -->
/usr/ports/net/samba/stable/w-samba-2.2.6/samba-2.2.6/source/include
(Should a patch be applied to examples/VFS/Makefile to correct this?)
Ok. After trying 'make' to compile I've got a 'make: don't know how to
make audit.so.'. Then, since samba is based on GNU, I've tryied using
'gmake' instead and got this results:
- --
Compiling audit.c
mkdir .libs
gcc -Wall -I../../source/popt -I../../source -I../../source/include
- -I../.. /source/ubiqx -I../../source/smbwrapper -c audit.c -fPIC -DPIC
- -o .libs/audit.lo
gcc -Wall -I../../source/popt -I../../source -I../../source/include
- -I../.. /source/ubiqx -I../../source/smbwrapper -c audit.c -o audit.o
>/dev/null 2>&1
mv -f .libs/audit.lo audit.lo
Linking audit.lo
gcc -o audit.so audit.o -shared
ld: audit.o: RRS text relocation at 0x8bd for "_syslog"
ld: audit.o: RRS text relocation at 0x881 for "_strerror"
ld: Total: 52 RRS text relocations
Compiling skel.c
rm -f .libs/skel.lo
gcc -Wall -I../../source/popt -I../../source -I../../source/include
- -I../../source/ubiqx -I../../source/smbwrapper -c skel.c -fPIC -DPIC -o
.libs/skel.lo
gcc -Wall -I../../source/popt -I../../source -I../../source/include
- -I../../source/ubiqx -I../../source/smbwrapper -c skel.c -o skel.o
>/dev/null 2>&1
mv -f .libs/skel.lo skel.lo
Linking skel.lo
gcc -o skel.so skel.o -shared
ld: skel.o: RRS text relocation at 0xeda for "_memcpy"
ld: skel.o: RRS text relocation at 0xcb2 for "_memcpy"
ld: Total: 68 RRS text relocations
Compiling block/block.c
mkdir block/.libs
gcc -Wall -I../../source/popt -I../../source -I../../source/include
- -I..//source/ubiqx -I../../source/smbwrapper -c block/block.c -fPIC
- -DPIC -o ock/.libs/block.lo
gcc -Wall -I../../source/popt -I../../source -I../../source/include
- -I..//source/ubiqx -I../../source/smbwrapper -c block/block.c -o
block/block.o/dev/null 2>&1
mv -f block/.libs/block.lo block/block.lo
Linking block/block.lo
gcc -o block/block.so block/block.o -shared
ld: block/block.o: RRS text relocation at 0x822 for "_multibyte_strstr"
ld: block/block.o: RRS text relocation at 0x7ce for "_strlen"
ld: Total: 39 RRS text relocations
Compiling recycle/recycle.c
mkdir recycle/.libs
gcc -Wall -I../../source/popt -I../../source -I../../source/include
- -I..//source/ubiqx -I../../source/smbwrapper -c recycle/recycle.c -fPIC
- -DPICo recycle/.libs/recycle.lo
gcc -Wall -I../../source/popt -I../../source -I../../source/include
- -I..//source/ubiqx -I../../source/smbwrapper -c recycle/recycle.c -o
recycle/rycle.o >/dev/null 2>&1
mv -f recycle/.libs/recycle.lo recycle/recycle.lo
Linking recycle/recycle.lo
gcc -o recycle/recycle.so recycle/recycle.o -shared
ld: recycle/recycle.o: RRS text relocation at 0x227d for
"_default_vfs_op
ld: recycle/recycle.o: RRS text relocation at 0x2260 for "_dbgtext"
ld: Total: 242 RRS text relocations
rm block/block.lo skel.lo audit.lo recycle/recycle.lo
(are these "text realocation" messages expected?)
- --
After compiling the modules, I've moved the audit.so file to
'/usr/local/lib/samba/vfs' and configured smb.conf as the VFS Readme
told me to do.
And finally, after starting samba an trying to access a VFS-share I can
only see a log message like:
- --
(using smbclient)
Got a positive name query response from 127.0.0.1 ( 10.10.1.51 )
Password:
Domain=[EDUARDO] OS=[Unix] Server=[Samba 2.2.6]
tree connect failed: NT_STATUS_UNSUCCESSFUL
(samba relevant log message)
[2002/10/21 14:21:08, 3]
/usr/ports/net/samba/stable/w-samba-2.2.6/samba-
2.2.6/source/smbd/vfs.c:vfs_init_custom(138)
Initialising custom vfs hooks from /usr/local/lib/samba/vfs/recycle.so
[2002/10/21 14:21:08, 0]
/usr/ports/net/samba/stable/w-samba-2.2.6/samba-2.2.6/source/smbd/vfs.c:
vfs_init_custom(152) No vfs_init() symbol found in
/usr/local/lib/samba/vfs/recycle.so
[2002/10/21 14:21:08, 0]
/usr/ports/net/samba/stable/w-samba-2.2.6/samba-2.2.6/source/smbd/vfs.c:
smbd_vfs_init(188) smbd_vfs_init: vfs_init_custom failed
[2002/10/21 14:21:08, 0]
/usr/ports/net/samba/stable/w-samba-2.2.6/samba-2.2.6/source/smbd/service.c:
make_connection(540) smbd_vfs_init failed for service eduardo
[2002/10/21 14:21:08, 3]
/usr/ports/net/samba/stable/w-samba-2.2.6/samba-2.2.6/source/smbd/connection.c:
yield_connection(48) Yielding connection to eduardo
[2002/10/21 14:21:08, 3]
/usr/ports/net/samba/stable/w-samba-2.2.6/samba-2.2.6/source/smbd/error.c:
error_packet(110)
error packet at /usr/ports/net/samba/stable/w-samba-2.2.6/samba-2.2.6/source/
smbd/reply.c(166) cmd=117 (SMBtconX) NT_STATUS_UNSUCCESSFUL
- --
According to some Google/FreeBSD documentation searches, it seems to be
a bug already corrected in the FreeBSD samba port. Does anyone knows how
to correct this or in other words: "How to make Samba VFS support work
on OpenBSD?
Best Regards,
- --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Eduardo A. Alvarenga - Analista de Suporte #179653
Secretaria de Segurança Pública do Estado do Pará
Belém - Pará - (91) 223-4996 / 272-1611
eduardo_(_at_)_{thrx_(_dot_)_dyndns_(_dot_)_org,segup.pa.gov.br}
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
OpenBSD Consultant: www.openbsd.org/support.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (OpenBSD)
iD8DBQE9tDjYpKK2uJoGDlMRAqRoAJ9Wz/mimBRH5PgOS8Bl450lNGl+4ACaAsK5
fqgGomPgyl9HVtMApEJpi7c=
=eYRB
-----END PGP SIGNATURE-----
Visit your host, monkey.org