George Sherwood wrote: > On Wed, 17 Dec 2008 15:44:19 +0100 > Michael Adam <[email protected]> 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 <[email protected]> <[email protected]> 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
pgpT6yKc2vQrv.pgp
Description: PGP signature
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
