this issue applies to latest git, samba-3.4.2, and probably older. the client/mtab.c file does things like: i = open (linktargetfile, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR); the S_xxx defines come from sys/stat.h, but mtab.c never includes it. thus we easily hit errors like so: Compiling client/mtab.c ../samba-3.4.2/source3/client/mtab.c: In function ‘lock_mtab’: ../samba-3.4.2/source3/client/mtab.c:142: error: ‘S_IRUSR’ undeclared (first use in this function) ../samba-3.4.2/source3/client/mtab.c:142: error: (Each undeclared identifier is reported only once ../samba-3.4.2/source3/client/mtab.c:142: error: for each function it appears in.) ../samba-3.4.2/source3/client/mtab.c:142: error: ‘S_IWUSR’ undeclared (first use in this function)
sorry, "latest git" is probably wrong. i had the wrong branch checked out locally and so was looking at much older source.
Closing as fixed. client/mtab.c has gone from current source. If you have different compile problems, please feel free to open another bug. Volker