smb_share_modes.c has problems compiling on Solaris 5.8 with cc
compiler
Richard Bollinger
rabollinger at gmail.com
Fri Sep 9 18:56:59 GMT 2005
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.
More information about the samba-technical
mailing list