[flow-tools] Compile issues on Solaris 2.8

Mark Fullmer maf@eng.oar.net
Wed, 12 Sep 2001 13:05:51 -0400


0.55 is missing a conditional.  It's a simple fix if you
can't wait for 0.56:

Index: ftio.c
===================================================================
RCS file: /usr/home/djnz-cvsroot/flow-tools/lib/ftio.c,v
retrieving revision 1.29
diff -c -r1.29 ftio.c
*** ftio.c	2001/07/06 14:26:59	1.29
--- ftio.c	2001/08/24 01:06:42
***************
*** 189,194 ****
--- 189,196 ----
        }
    
        ftio->flags |= FT_IO_FLAG_ZINIT;
+ 
+ #ifdef HAVE_MMAP
   
        if (flag & FT_IO_FLAG_MMAP) {
  
***************
*** 197,207 ****
  
        }
  
        ftio->zs.avail_out = ftio->rec_size;
        ftio->zs.next_out = (Bytef*)ftio->d_buf;
  
      }
!   
      /* mark stream for reading */
      ftio->flags |= FT_IO_FLAG_READ;
  
--- 199,211 ----
  
        }
  
+ #endif /* HAVE_MMAP */
+ 
        ftio->zs.avail_out = ftio->rec_size;
        ftio->zs.next_out = (Bytef*)ftio->d_buf;
  
      }
! 
      /* mark stream for reading */
      ftio->flags |= FT_IO_FLAG_READ;
  
***************

On Mon, Sep 10, 2001 at 01:12:44PM -0700, Diane Proscino-Tharp wrote:
> Hi Everyone:
> 
> I am trying to compile flow-tools 0.55 on Solaris 2.8 amd it dies.