[Samba] compiling 3.2.15: cifs.upcall not found afer RPM build

David Magda dmagda at ee.ryerson.ca
Thu Oct 29 13:30:44 MDT 2009

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.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
>> (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.upcall

But 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.

More information about the samba mailing list