[Samba] compiling 3.2.6 fails on fedora 10 i386

Karolin Seeger ks at sernet.de
Tue Dec 23 08:33:55 GMT 2008

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-samba.spec-Do-not-build-mount.cifs-separately.patch
Type: text/x-patch
Size: 1002 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20081223/97f391e7/0001-s3-samba.spec-Do-not-build-mount.cifs-separately.bin

More information about the samba mailing list