samba-2.2.0 fails to build on NetBSD 1.5

Douglas Egan doug.egan at windriver.com
Fri Apr 20 00:56:10 GMT 2001


Another observation when building under netbsd 1.5  Lots of the following when linking.

Linking bin/smbd
lib/util.o: In function `smbd_mktemp':
lib/util.o(.text+0x2609): warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp()
Linking bin/nmbd
lib/util.o: In function `smbd_mktemp':
lib/util.o(.text+0x2609): warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp()
Linking bin/swat
lib/util.o: In function `smbd_mktemp':
lib/util.o(.text+0x2609): warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp()
Linking bin/smbclient
lib/util.o: In function `smbd_mktemp':
lib/util.o(.text+0x2609): warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp()

Does this happen on other os's too?

Doug Egan

Douglas Egan wrote:
> 
> Problems on NetBSD also.
> 
> I don't know if this is correct, but it compiled, and is working so far.
> 
> source/profile/profile.c  SHM_R and SHM_W were undefined.
> 
> The following 2 lines were added, (they were defined in shm.c in Solaris 2.7)
> /*
>  *      Permission Definitions.
>  */
> #define SHM_R   0400    /* read permission */
> #define SHM_W   0200    /* write permission */
> 
> Doug Egan




More information about the samba mailing list