[Samba] samba 3.2.6 link error

Michael Adam obnox at samba.org
Thu Dec 18 09:54:03 GMT 2008


George Sherwood wrote:
> On Wed, 17 Dec 2008 15:44:19 +0100
> Michael Adam <obnox at samba.org> wrote:
> > How do you compile/link mount.cifs?
> > 
> > When doing a fresh build (autogen / configure / make everything),
> > this should correctly create you bin/mount.cifs.
> > 
> > In 3.2.6, a new object has been added to mount.cifs, namely
> > client/mtab.o. So when you compile with a individual command
> > like "gcc -o mount.cifs client/mount.cifs.c", this will fail with
> > exactly the error message as specified above.
> > 
> 
> Michael,
> Thanks for the pointer.  That was exactly the problem.  Not sure
> why, but out distro was building mount.cifs.c separately for some
> reason.  I took that part out and added the option for
> --with-cifsmount and everything seems to be working now.

We encountered the same problem when packaging.

The reason is this:

Originally, mount.cifs was not built by make all or make
everything. It did not even have a make target at some point.
That is why there was a separate compile call to build mount.cifs.

Now there has been a make target for some time.
So the separate compile call was redundant but did not harm.
But now in 3.2.6, a new object has been added to the mount.cifs
target, so the old "gcc -o mount.cifs mount.cifs.c" is simply
wrong now.

I hope this makes it clear.

Cheers - Michael

-- 
Michael Adam <ma at sernet.de>  <obnox at samba.org>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 206 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20081218/aa560543/attachment.bin


More information about the samba mailing list