David Magda
2009-Oct-28 19:42 UTC
[Samba] compiling 3.2.15: cifs.upcall not found afer RPM build
Hello, Trying to compile Samba 3.2.15 on a RHEL AS 4u2 (i686) and I'm getting the following result from 'sh makerpms.sh':> Provides: samba-doc = 3.2.15-1 > Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <3.0.3-1> > > RPM build errors: > File not found: /var/tmp/samba-3.2.15-root/usr/sbin/cifs.upcall > File not found by glob:/var/tmp/samba-3.2.15-root/usr/share/man/man8/cifs.upcall.8.*> makerpms.sh: Done.Not really anything present either:> # find /var/tmp/samba-3.2.15-root -name 'cifs*' > /var/tmp/samba-3.2.15-root/usr/share/swat/help/manpages/cifs.upcall.8.html > #No binaries seem to be present either:> # find /usr/src/redhat/BUILD/samba-3.2.15 -name 'cifs*' > /usr/src/redhat/BUILD/samba-3.2.15/source/client/cifs_spnego.h > /usr/src/redhat/BUILD/samba-3.2.15/source/client/cifs.upcall.c > /usr/src/redhat/BUILD/samba-3.2.15/docs-xml/Samba3-Developers-Guide/cifsntdomain.xml/usr/src/redhat/BUILD/samba-3.2.15/docs-xml/manpages-3/cifs.upcall.8.xml> /usr/src/redhat/BUILD/samba-3.2.15/docs-xml/Samba4-HOWTO/cifsfs.xml > #Is this an issue with the samba.spec file, or am i missing something?
Marcel Ritter
2009-Oct-29 17:10 UTC
[Samba] compiling 3.2.15: cifs.upcall not found afer RPM build
>>> On 10/28/2009 at 08:42 PM, in message<63944.207.61.230.154.1256758963.squirrel at webmail.ee.ryerson.ca>, "David Magda" <dmagda at ee.ryerson.ca> wrote:> Hello, > > Trying to compile Samba 3.2.15 on a RHEL AS 4u2 (i686) and I'm getting the > following result from 'sh makerpms.sh': > > > Provides: samba-doc = 3.2.15-1 > > Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 > rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= > 3.0.3-1 > > > RPM build errors: > > File not found: /var/tmp/samba-3.2.15-root/usr/sbin/cifs.upcall > > File not found by glob: > /var/tmp/samba-3.2.15-root/usr/share/man/man8/cifs.upcall.8.* > > makerpms.sh: Done. > > Is this an issue with the samba.spec file, or am i missing something?Look at the configure output, maybe you're missing the dependency for keyutils-devel (SuSE's RPM name, no idea what it's called on RHEL) which is required for cifs.upcall? At least that helped building latest git version... # Required to build cifs.upcall: BuildRequires: keyutils-devel Bye, Marcel
Jeff Layton
2009-Oct-29 19:05 UTC
[Samba] compiling 3.2.15: cifs.upcall not found afer RPM build
On Wed, 28 Oct 2009 15:42:43 -0400 (EDT) "David Magda" <dmagda at ee.ryerson.ca> wrote:> Hello, > > Trying to compile Samba 3.2.15 on a RHEL AS 4u2 (i686) and I'm getting the > following result from 'sh makerpms.sh': > > > Provides: samba-doc = 3.2.15-1 > > Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 > rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <> 3.0.3-1 > > > > > > RPM build errors: > > File not found: /var/tmp/samba-3.2.15-root/usr/sbin/cifs.upcall > > File not found by glob: > /var/tmp/samba-3.2.15-root/usr/share/man/man8/cifs.upcall.8.* > > makerpms.sh: Done. > > Not really anything present either: > > > # find /var/tmp/samba-3.2.15-root -name 'cifs*' > > /var/tmp/samba-3.2.15-root/usr/share/swat/help/manpages/cifs.upcall.8.html > > # > > No binaries seem to be present either: > > > # find /usr/src/redhat/BUILD/samba-3.2.15 -name 'cifs*' > > /usr/src/redhat/BUILD/samba-3.2.15/source/client/cifs_spnego.h > > /usr/src/redhat/BUILD/samba-3.2.15/source/client/cifs.upcall.c > > /usr/src/redhat/BUILD/samba-3.2.15/docs-xml/Samba3-Developers-Guide/cifsntdomain.xml > /usr/src/redhat/BUILD/samba-3.2.15/docs-xml/manpages-3/cifs.upcall.8.xml > > /usr/src/redhat/BUILD/samba-3.2.15/docs-xml/Samba4-HOWTO/cifsfs.xml > > # > > Is this an issue with the samba.spec file, or am i missing something? > > >Be forewarned that there's no kernel support for DFS or krb5 in RHEL4 (unless you've added that yourself). So there's little reason to install cifs.upcall there. -- Jeff Layton <jlayton at samba.org>
David Magda
2009-Oct-29 19:30 UTC
[Samba] compiling 3.2.15: cifs.upcall not found afer RPM build
On Thu, October 29, 2009 14:33, David Magda wrote:> On Thu, October 29, 2009 13:10, Marcel Ritter wrote: >>> On 10/28/2009 at 08:42 PM, "David Magda" wrote: > [...] >>> > RPM build errors: >>> > File not found: /var/tmp/samba-3.2.15-root/usr/sbin/cifs.upcallFile not found by glob:>>> /var/tmp/samba-3.2.15-root/usr/share/man/man8/cifs.upcall.8.* >>> > makerpms.sh: Done. >>> Is this an issue with the samba.spec file, or am i missing something? >> Look at the configure output, maybe you're missing the dependency forkeyutils-devel>> (SuSE's RPM name, no idea what it's called on RHEL) which is required for >> cifs.upcall? >> At least that helped building latest git version... >> # Required to build cifs.upcall: >> BuildRequires: keyutils-devel > > It is present: > >> # rpm -qa | grep keyutils >> keyutils-0.3-1 >> keyutils-devel-0.3-1 >> [root at host RHEL]# rpm -ql keyutils-devel-0.3-1 >> /lib/libkeyutil.so >> /usr/include/keyutil.h > > I just tried compiling 3.4.3, and get the same 'file not found' error.Ah, minor discrepancy. Samba is looking for "keyutils.h", with an 's':> | #include <keyutils.h> > configure:66352: result: no > configure:66387: checking for keyutils.h > configure:66394: result: no > configure:66412: checking whether to build cifs.upcall > configure:66462: WARNING: keyutils package is required for cifs.upcallBut what's installed is "keyutil.h", without any 's'. Same for "libkeyutil.so" and "libkeyutils.so". Seems that RHEL4 does not have an 's', while RHEL5 does. Creating a link from the non-S to the an S version allowed the build to finish and RPMs be generated. Not sure if this is the "proper" way to fix the issue. Next step will be to see if the binaries actually work.
Jeff Layton
2009-Oct-30 14:27 UTC
[Samba] compiling 3.2.15: cifs.upcall not found afer RPM build
On Fri, 30 Oct 2009 10:01:40 -0400 David Magda <dmagda at ee.ryerson.ca> wrote:> On Oct 29, 2009, at 19:40, Jeff Layton wrote: > > > It sounds like something is broken with your install. My RHEL4 host > > has > > a keyutils.so and keyutils.h as part of the keyutils-devel and > > keyutils-libs packages. > > > According to the RPM database things are the way they should be: > > $ rpm -qa | grep keyutil > keyutils-0.3-1 > keyutils-devel-0.3-1 > $ rpm -Vv keyutils keyutils-devel > ........ /bin/keyctl > ........ c /etc/request-key.conf > ........ /lib/libkeyutil.so.0 > ........ /lib/libkeyutil.so.0.3.1 > ........ /sbin/request-key > ........ /usr/share/doc/keyutils-0.3 > ........ d /usr/share/doc/keyutils-0.3/LICENCE.GPL > ........ d /usr/share/doc/keyutils-0.3/LICENCE.LGPL > ........ d /usr/share/doc/keyutils-0.3/README > ........ /usr/share/keyutils/request-key-debug.sh > ........ /usr/share/man/man1 > ........ d /usr/share/man/man1/keyctl.1.gz > ........ /usr/share/man/man5 > ........ d /usr/share/man/man5/request-key.conf.5.gz > ........ /usr/share/man/man8 > ........ d /usr/share/man/man8/request-key.8.gz > ........ /lib/libkeyutil.so > ........ /usr/include/keyutil.h > > $ cat /etc/redhat-release > Red Hat Enterprise Linux AS release 4 (Nahant Update 2) > $ uname -a > Linux foo.example.com 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT > 2005 i686 i686 i386 GNU/Linux >Ahh, that would explain it. RHEL4.2 is 4 years old. From the keyutils changelog: * Mon Nov 28 2005 David Howells <dhowells at redhat.com> - 1.0-1 - Rename library and header file "keyutil" -> "keyutils" for consistency ...I suggest patching your RHEL4 machine(s) and not just for this reason. -- Jeff Layton <jlayton at samba.org>
Possibly Parallel Threads
- [cifs-utils PATCH v3 0/4] cifs.upcall: allow cifs.upcall to scrape cache location initiating task's environment
- [PATCH v2 0/2] cifs.upcall: allow cifs.upcall to grab $KRB5CCNAME from initiating process
- [cifs-utils PATCH v3 0/4] cifs.upcall: allow cifs.upcall to scrape cache location initiating task's environment
- [RFC][cifs-utils PATCH] cifs.upcall: allow scraping of KRB5CCNAME out of initiating task's /proc/<pid>/environ file
- Samba 3.0.21 Available for Download