samba-2.2.0 fails to build on NetBSD 1.5

Andrew Bartlett abartlet at pcug.org.au
Fri Apr 20 01:48:27 GMT 2001


Douglas Egan wrote:
> 
> 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
> 

Fixed in current CVS.  There are two issues:  The first is that we link
mktemp into binaries that dont use it, only smbd actualy needs in in
2.2.0, and secondly smbd has now had this rewritten to use mkstemp for
exactly this reason.

Andrew Bartlett

> 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
> 
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
Andrew Bartlett
abartlet at pcug.org.au




More information about the samba mailing list