MMAP broken in Beta-5

Dejan Ilic svedja at lysator.liu.se
Thu Dec 31 16:29:28 GMT 1998


Well, the function does exist in source/lib/system.c but the function
is not included in the linking, so the resulting Makefile is actualy
the one busted (or the define HAVE_SHARED_MMAP is not included when
compiling system.c)

source/lib/system.c:

#if defined(HAVE_SHARED_MMAP)

/*******************************************************************
 An mmap() wrapper that will deal with 64 bit filesizes.
********************************************************************/

void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd,
SMB_OFF_T offset)
{
#if defined(LARGE_SMB_OFF_T) && defined(HAVE_MMAP64)
  return mmap64(addr, len, prot, flags, fd, offset);
#else
  return mmap(addr, len, prot, flags, fd, offset);
#endif
}

#endif /* HAVE_SHARED_MMAP */

**


On Thu, 31 Dec 1998, Ken Stone wrote:

> 
> I would second that ... has been for a week or so in the CVS code, sorry
> I couldn't warn you sooner :-(
> 
> HP-UX 10.20 here ... from a first look thru, it appears that maybe --with-mmap
> in general is busted.
> 
>   -- Ken
> 
> > /configure--with-smbwrapper --with-mmap --with-quotas
> > 
> > Samba2.0.0 -beta5 on Solaris_x86 2.6 with GCC-2.8.1
> > 
> > # make all
> > Using FLAGS = -O -Iinclude -I./include -I./ubiqx -I./smbwrapper
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -DSMBLOGFILE="/usr/local/samba/var/log.smb"
> > -DNMBLOGFILE="/usr/local/samba/var/log.nmb"
> > -DCONFIGFILE="/usr/local/samba/lib/smb.conf"
> > -DLMHOSTSFILE="/usr/local/samba/lib/lmhosts"
> > -DSWATDIR="/usr/local/samba/swat" -DSBINDIR="/usr/local/samba/bin"
> > -DLOCKDIR="/usr/local/samba/var/locks"
> > -DSMBRUN="/usr/local/samba/bin/smbrun"
> > -DCODEPAGEDIR="/usr/local/samba/lib/codepages"
> > -DDRIVERFILE="/usr/local/samba/lib/printers.def"
> > -DBINDIR="/usr/local/samba/bin"
> > -DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/bin/passwd"
> > -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
> > -DSMB_PASSWD_PROGRAM=""
> > Using LIBS = -lsec -lsocket -lnsl -ldl  -lpam -lbind
> > Linking bin/smbd
> > Undefined                       first referenced
> >  symbol                             in file
> > sys_mmap                            smbd/open.o
> > ld: fatal: Symbol referencing errors. No output written to bin/smbd
> > make: *** [bin/smbd] Error 1
> > 
> 

=====================================================================
Dejan Ilic, Tech Univ. of Linkoping, Sweden    Phone:+46-13-473 01 06
Email: svedja at lysator.liu.se   Web: http://www.lysator.liu.se/~svedja
=====================================================================
[finger -l svedja at lysator.liu.se for public PGP key]



More information about the samba-ntdom mailing list