From: marco Trevisani
Subject: gcl2-2 & Linux
Date: 
Message-ID: <4uofvc$ln9@nntp.Stanford.EDU>
I had an error trying to install gcl-2.2 on a linux machine (166 pentium).
This happened at the end of the 'make' during the initialization
of the .o files in lsp.
It has to do (as you will see in the error message) with the mmap.
Old Linux couldnt mmap files (as written in the mmap man page) but the  
version i'm working with is 1.2.13: does still have the same problem (or  
feature...:-) )?
Is there a way to turn around this problem?
I'd really appreciate any help,
thank you,
        marco  trevisani

-----

This is the error message i got  followed by the place where mmap is called.

Can't mmap (saved_gcl): errno 22
make[1]: *** [saved_gcl] Error 1
make[1]: Leaving directory `/tmp/other-stuff/gcl-2.2/unixport'
make: *** [all] Error 2

###These are the lines of code where mmap appear.


/o/sfaslelf.c:   
  base = mmap (0, stat_buf.st_size,PROT_READ|PROT_WRITE, MAP_PRIVATE, file,  
0);

/o/unexelfsgi.c:  
  old_base = mmap (0, stat_buf.st_size, PROT_READ, MAP_SHARED, old_file, 0);

/o/unexelfsgi.c:  
  new_base = mmap (0, new_file_size, PROT_READ | PROT_WRITE, MAP_SHARED,

/o/unexelf-19.29.c:  
      old_base = mmap (0, stat_buf.st_size, PROT_READ, MAP_SHARED, old_file,  
0);

/o/unexelf-19.29.c:  
   new_base = mmap (0, new_file_size, PROT_READ | PROT_WRITE, MAP_PRIVATE,
/o/unexelf-19.29.c:  
   new_base = mmap (0, new_file_size, PROT_READ | PROT_WRITE, MAP_SHARED,



--
marco trevisani
CCRMA (Center for Computer Research in Music and Acoustic)
Stanford. University
e-mail: ·····@ccrma.stanford.edu
Main Phone:1-(415)723-4971  #308 #312 or #304
FAX: 1-(415)723-8468