Samba compilation with option '--with-smbwrapper'

Gerald Carter gcarter at valinux.com
Fri Sep 14 07:34:03 GMT 2001


On Thu, 6 Sep 2001, Sabrina LAUTIER wrote:

> it goes almost all the way to the end...and then I get the following error:
> ****************************************************
> ...
> Using LIBS = -lsec -lgen -lsocket -lnsl  -ldl
> Compiling smbwrapper/wrapped.c with -fpic
> smbwrapper/wrapped.c:466: conflicting types for `utimes'
> /usr/include/sys/time.h:327: previous declaration of `utimes'
> *** Error code 1
> make: Fatal error: Command failed for target `smbwrapper/wrapped.po'
> ...
> ****************************************************

I'm checking in a fix to SAMBA_2_2 now.  Here's the patch.

-------- cut here ----------------------------------------
diff -u -r1.35 wrapped.c
--- smbwrapper/wrapped.c        6 Jul 2000 02:28:44 -0000       1.35
+++ smbwrapper/wrapped.c        14 Sep 2001 14:29:15 -0000
@@ -462,7 +462,7 @@
 #endif

 #ifdef HAVE_UTIMES
- int utimes(char *name,void *tvp)
+ int utimes(const char *name, const struct timeval *tvp)
 {
        if (smbw_path(name)) {
                return smbw_utimes(name, tvp);
-------- cut here ----------------------------------------





cheers, jerry
 ---------------------------------------------------------------------
 www.samba.org              SAMBA Team              jerry_at_samba.org
 www.plainjoe.org                                jerry_at_plainjoe.org
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba mailing list