Bug 5835 - samba 3.3.0pre2 RPM build under RHEL4 fails on /usr/sbin/cifs.upcall
Summary: samba 3.3.0pre2 RPM build under RHEL4 fails on /usr/sbin/cifs.upcall
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Build environment (show other bugs)
Version: unspecified
Hardware: x86 Linux
: P3 normal
Target Milestone: ---
Assignee: Karolin Seeger
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-18 23:06 UTC by D.L. Meyer
Modified: 2009-05-04 08:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description D.L. Meyer 2008-10-18 23:06:29 UTC
On a RHEL4 (update 7) system, when trying to build RPMs from the source tarball, I expand the tarball, cd into samba-3.3.0pre2/packaging/RHEL/, patch for the ccache bug from #5832, and then run the makerpms.sh script...

The package build fails after compiles and links, during the packaging steps:
----------------------------------
Provides: samba-doc = 3.3.0pre2-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.3.0pre2-root/usr/sbin/cifs.upcall
bash: Done.
----------------------------------

For some reason, the cifs.upcall utility is not being built or installed.  (No cifs.upcall.o file exists in the BUILD directory after the compile processing is done, and no executable exists in the usr/sbin/ directory.
Comment 1 Diego Remolina 2009-05-02 09:41:34 UTC
This bug is still present in 3.3.4, the cifs.upcall binary and the man page are missing.

However, there is a warning during configure:
... 
checking keyutils.h usability... no
checking keyutils.h presence... no
checking for keyutils.h... no
checking whether to build cifs.upcall... configure: WARNING: keyutils package is required for cifs.upcall
...

So this means that the samba.spec file is missing a dependency on the package keyutils-devel (at least for RHEL4).

After installing keyutils-devel, samba compiles just fine:

yum -y install keyutils-devel

Then run sh makerpm.sh

Enjoy your new rpms...

....snip....
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/samba-3.3.4-root
Wrote: /usr/src/redhat/SRPMS/samba-3.3.4-1.src.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/samba-3.3.4-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/samba-client-3.3.4-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/samba-common-3.3.4-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/samba-swat-3.3.4-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/samba-doc-3.3.4-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/samba-debuginfo-3.3.4-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.71328
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd samba-3.3.4
+ rm -rf /var/tmp/samba-3.3.4-root
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.38753
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf samba-3.3.4
+ exit 0
makerpms.sh: Done.
Comment 2 Karolin Seeger 2009-05-04 08:57:07 UTC
Fixed with commit d8de7e31 in master.
Will be included in the next releases.

Thanks for reporting!