smb_share_modes.c has problems compiling on Solaris 5.8 with cc
compiler
Jeremy Allison
jra at samba.org
Fri Sep 9 19:19:57 GMT 2005
On Fri, Sep 09, 2005 at 02:56:59PM -0400, Richard Bollinger wrote:
> SunOS SS10 5.8 Generic_117350-24 sun4u sparc SUNW,Ultra-2
> cc: WorkShop Compilers 5.0 98/12/15 C 5.0
>
> Compiling libsmb/smb_share_modes.c with -KPIC
> "include/smb_share_modes.h", line 28: cannot find include file: <stdint.h>
> "libsmb/smb_share_modes.c", line 98: identifier redeclared:
> smb_unlock_share_mode_entry
> current : function(pointer to struct smbdb_ctx {pointer to struct
> tdb_context {..} smb_tdb}, ulong, ullong) returning int
> previous: function(pointer to struct smbdb_ctx {pointer to struct
> tdb_context {..} smb_tdb}, ullong, ullong) returning int :
> "include/smb_share_modes.h", line 69
> cc: acomp failed for libsmb/smb_share_modes.c
> *** Error code 2
> make: Fatal error: Command failed for target `libsmb/smb_share_modes.po.o'
>
> Simple patch to finish the compile is:
> --- ../source/include/smb_share_modes.h Mon Sep 5 16:40:19 2005
> +++ ./include/smb_share_modes.h Fri Sep 9 14:52:30 2005
> @@ -25,7 +25,7 @@
> extern "C" {
> #endif
>
> -#include <stdint.h>
> +/*#include <stdint.h>*/
> #include "tdb.h"
>
> /* Database context handle. */
> @@ -67,8 +67,8 @@
> uint64_t ino);
>
> int smb_unlock_share_mode_entry(struct smbdb_ctx *db_ctx,
> - uint64_t dev,
> - uint64_t ino);
> + dev_t dev,
> + ino_t ino);
>
> /*
> * Share mode database accessor functions.
Yes, sorry about that. I probably need to make this
file Linux-only at the moment. It really does need to be
a 64-bit int type here, and I need to add standard
detection methods. I'll look into tidying this up before
ship.
Thanks,
Jeremy.
More information about the samba-technical
mailing list