BY: grseidel DATE: 2007-Sep-09 02:50 SUBJECT: Samba 3.xI tried to install a 3.x version of samba, but without progress. Did somebody else succeed in it?
I downloaded Samba 3.0.25c and extracted and configured it with
su
tar -xzf samba-3.0.25c.tar.gz
cd samba-3.0.25c/source/
./configure --with-smbmount --with-smbwrapper --with-msdfs
On purpose I left the location of smb.conf in /usr/local/samba/lib to test with a different (simpler) config file, which must be created to start samba.
To compile one patch is required, which I found under http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23962
vi modules/vfs_default.c
===================================================================
--- branches/SAMBA_3_2/source/modules/vfs_default.c (revision 23961)
+++ branches/SAMBA_3_2/source/modules/vfs_default.c (revision 23962)
@@ -826,10 +826,11 @@
START_PROFILE(syscall_linux_setlease);
-#ifdef LINUX
+#ifdef HAVE_KERNEL_OPLOCKS_LINUX
/* first set the signal handler */
- if(linux_set_lease_sighandler(fd) == -1)
+ if(linux_set_lease_sighandler(fd) == -1) {
return -1;
+ }
result = linux_setlease(fd, leasetype);
#else
Now it compiles (for ages, I think it was 3-4 hours), and can be installed. But starting it up it comes to an internal error when manipulating the registry.tdb.
Using the same trick as in 2.2.12 to remove the PREAD/PWRITE functions leads to a failing compile. So I am stuck there, having to revert to 2.2.12 as my previous post described.
Did anybody else tried this, and with better luck?
Rgds.
GS |