FC Mario Patty
2008-Dec-05 10:06 UTC
[Samba] Samba 3.3.0rc1 for production server - is it save?
Hi guys, My samba server stop to respond many times today even though I've upgraded the memory from 1Gb to 5Gb (it keeps eating my memory out). I've tried samba 3.0.32, 3.2.4 before, but no success. I go to samba.org and found samba-3.3.0rc1. Is it save to use it in our production server? I'm really desperate here. Anyway, I've been trying to rpmbuild its source code but failed with this message (after resolved other things first in samba.spec for RHEL) .... Compiling nsswitch/pam_winbind.c Compiling localedir.c Linking non-shared library bin/libtalloc.a Linking shared library bin/libtalloc.so.1 Linking non-shared library bin/libtdb.a nsswitch/pam_winbind.c: In function `_pam_error_code_str': nsswitch/pam_winbind.c:96: error: `PAM_AUTHTOK_RECOVERY_ERR' undeclared (first use in this function) nsswitch/pam_winbind.c:96: error: (Each undeclared identifier is reported only once nsswitch/pam_winbind.c:96: error: for each function it appears in.) Linking shared library bin/libtdb.so.1 Linking non-shared library bin/libaddns.a Linking non-shared library bin/libnetapi.a Linking non-shared library bin/libsmbclient.a Linking non-shared library bin/libsmbsharemodes.a Compiling smbd/build_options.c The following command failed: gcc -I. -I/home/tilangga/src/rpm/BUILD/samba-3.3.0rc1/source -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -I/home/tilangga/src/rpm/BUILD/samba-3.3.0rc1/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -DLDAP_DEPRECATED -I/include -I/home/tilangga/src/rpm/BUILD/samba-3.3.0rc1/source/lib -D_SAMBA_BUILD_=3 -fPIC -c nsswitch/pam_winbind.c -o nsswitch/pam_winbind.o Linking bin/mount.cifs Linking bin/umount.cifs make: *** [nsswitch/pam_winbind.o] Error 1 make: *** Waiting for unfinished jobs.... error: Bad exit status from /home/tilangga/tmp/rpm-tmp.52525 (%build) RPM build errors: Bad exit status from /home/tilangga/tmp/rpm-tmp.52525 (%build) I have checked build_options.c file but couldn't find the respective failed command. I'm also curious about the line "-DLDAP_DEPRECATED". Does it mean I cannot use my openldap for samba authentication again? It's really confusing me. Thank you for your help. Regards,
Miguel Medalha
2008-Dec-05 19:42 UTC
[Samba] Samba 3.3.0rc1 for production server - is it save?
Maybe the answer to your problem is here: http://ftp.sernet.de/pub/samba/recent/
Miguel Medalha
2008-Dec-05 21:14 UTC
[Samba] Samba 3.3.0rc1 for production server - is it save?
Version 3.3.0 (Testing) is here: http://download.opensuse.org/repositories/network:/samba:/TESTING/
FC Mario Patty
2008-Dec-08 15:55 UTC
[Samba] Samba 3.3.0rc1 for production server - is it save?
Hi, You're right. I got this after changing samba.spec: Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 RPM build errors: File listed twice: samba-3.3.0rc1.tar.gz File not found: /home/tilangga/tmp/samba-3.3.0rc1-root/usr/sbin/cifs.upcall I don't understand what are those things. :) Thank you. On Mon, Dec 8, 2008 at 10:11 PM, Henkel Henning <henkel@hs-furtwangen.de>wrote:> Hi, > I had the same problem building, you need to alter the samba.spec file: > > gcc -c -o mount.cifs $RPM_OPT_FLAGS -D_GNU_SOURCE -Wall -D_GNU_SOURCE > -D_LARGEFILE64_SOURCE mount.cifs.c > gcc -o mount.cifs mount.cifs.o mtab.o > gcc -c -o umount.cifs $RPM_OPT_FLAGS -D_GNU_SOURCE -Wall -D_GNU_SOURCE > -D_LARGEFILE64_SOURCE umount.cifs.c > gcc -o umount.cifs umount.cifs.o mtab.o > > As far as I remember you also get problems when packing the rpms, as there > are > two or three files that are not packed in any rpm. > > Cheers > > Henning > >
FC Mario Patty
2008-Dec-11 04:47 UTC
[Samba] Samba 3.3.0rc1 for production server - is it save?
Hi Henkel, I've finally succeed rpmbuild-ing samba, but this time it's the newest release of samba, the 3.2.6 version. To handle the cifs.upcall.8.gz thing, I added %{_mandir}/man8/cifs.upcall.8* in the respective line in samba.spec. I also installed ccache so I don't have to uncomment the ccache part in samba.spece. I have simulated the installation (upgrade) and they work. :) Hope this can help. Regards, On Mon, Dec 8, 2008 at 10:11 PM, Henkel Henning <henkel@hs-furtwangen.de>wrote:> Hi, > I had the same problem building, you need to alter the samba.spec file: > > gcc -c -o mount.cifs $RPM_OPT_FLAGS -D_GNU_SOURCE -Wall -D_GNU_SOURCE > -D_LARGEFILE64_SOURCE mount.cifs.c > gcc -o mount.cifs mount.cifs.o mtab.o > gcc -c -o umount.cifs $RPM_OPT_FLAGS -D_GNU_SOURCE -Wall -D_GNU_SOURCE > -D_LARGEFILE64_SOURCE umount.cifs.c > gcc -o umount.cifs umount.cifs.o mtab.o > > As far as I remember you also get problems when packing the rpms, as there > are > two or three files that are not packed in any rpm. > > Cheers > > Henning > >
Javier Barroso
2008-Dec-11 22:39 UTC
[Samba] Samba 3.3.0rc1 for production server - is it save?
Hi, On Fri, Dec 5, 2008 at 11:01 AM, FC Mario Patty <fcmario76@gmail.com> wrote:> Hi guys, > > My samba server stop to respond many times today even though I've upgraded > the memory from 1Gb to 5Gb (it keeps eating my memory out).How a samba server could eat 5 Gb ? How many users has you got ? which proccess is eating the memory ? Regards