Hi Adam,

On Mon, Dec 22, 2008 at 11:59:56AM -0600, Adam Williams wrote:
> I'm running samba-3.2.6/packaging/RHEL/makerpms.sh and get the following 
> error.  any ideas?
> 
> make: Nothing to be done for `modules'.
> make: Nothing to be done for `pam_smbpass'.
> + cd client
> + gcc -o mount.cifs -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 
> -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE 
> -Wall -D_GNU_SOURCE -D_LARGEFILE64_SOURCE mount.cifs.c
> /tmp/ccqZWMvv.o: In function `main':
> /root/rpmbuild/BUILD/samba-3.2.6/source/client/mount.cifs.c:1415: 
> undefined reference to `unlock_mtab'
> /root/rpmbuild/BUILD/samba-3.2.6/source/client/mount.cifs.c:1416: 
> undefined reference to `lock_mtab'
> /root/rpmbuild/BUILD/samba-3.2.6/source/client/mount.cifs.c:1462: 
> undefined reference to `unlock_mtab'
> /root/rpmbuild/BUILD/samba-3.2.6/source/client/mount.cifs.c:1424: 
> undefined reference to `unlock_mtab'
> collect2: ld returned 1 exit status
> error: Bad exit status from /var/tmp/rpm-tmp.hnGqfK (%build)
> 
> 
> RPM build errors:
>    Bad exit status from /var/tmp/rpm-tmp.hnGqfK (%build)
> makerpms.sh: Done.

that's a relict in the spec file, I think.
We don't need to build [u]mount.cifs separatly any longer.
Please try the attached apcth and re-run makerps.sh. Does that solve the
problem?

Karolin
>From 38049e2d470415ef691e2b6dc6f52fbb91ad849a Mon Sep 17 00:00:00 2001
From: Karolin Seeger <ksee...@samba.org>
Date: Tue, 23 Dec 2008 09:30:16 +0100
Subject: [PATCH] s3:samba.spec: Do not build mount.cifs separately.

That leads to linking errors.

Karolin
---
 packaging/RHEL/samba.spec.tmpl |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl
index 92030fc..3f6690a 100644
--- a/packaging/RHEL/samba.spec.tmpl
+++ b/packaging/RHEL/samba.spec.tmpl
@@ -178,11 +178,6 @@ fi
 make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" %{?_smp_mflags} \
 	all modules pam_smbpass
 
-## build the cifs fs mount helper
-cd client
-gcc  -o mount.cifs $RPM_OPT_FLAGS  -D_GNU_SOURCE -Wall -D_GNU_SOURCE -D_LARGEFILE64_SOURCE mount.cifs.c
-gcc  -o umount.cifs $RPM_OPT_FLAGS  -D_GNU_SOURCE -Wall -D_GNU_SOURCE -D_LARGEFILE64_SOURCE umount.cifs.c
-cd ..
 
 # Remove some permission bits to avoid to many dependencies
 cd ..
-- 
1.6.0.2

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to