[haiku-bugs] Re: [Haiku] #5168: checking for working mmap... no

  • From: "andrewbachmann" <trac@xxxxxxxxxxxx>
  • Date: Sun, 27 Dec 2009 20:27:56 -0000

#5168: checking for working mmap... no
--------------------------------+-------------------------------------------
  Reporter:  andrewbachmann     |       Owner:  axeld      
      Type:  bug                |      Status:  closed     
  Priority:  normal             |   Milestone:  R1         
 Component:  System/libroot.so  |     Version:  R1/alpha1  
Resolution:  invalid            |    Keywords:  mmap malloc
 Blockedby:                     |    Platform:  x86        
  Blocking:                     |  
--------------------------------+-------------------------------------------
Description changed by andrewbachmann:

Old description:

> While trying to configure a gcc build I noticed configure said:
>
> "checking for working mmap... no"
>
> I extracted the test program from the configure script and it fails in a
> malloc.  I have added printfs to the program so as to make it more
> descriptive.  The error printed is: "data3 null".  The failing line is:
> data3 = (char *) malloc (pagesize);
>
> To compile this program, simply: gcc mman.c -o mman
> And run ./mman
>
> I am running revision 34251, gcc2hybrid.  The program fails if I compile
> it with gcc2.95.3-haiku-090629 or if I compile it with gcc 4.4.2 (from
> joe protsko).

New description:

 REVISIONS from R1/alpha1 through r34335 exhibit the following behavior:

 While trying to configure a gcc build I noticed configure said:

 "checking for working mmap... no"

 I extracted the test program from the configure script and it fails in a
 malloc.  I have added printfs to the program so as to make it more
 descriptive.  The error printed is: "data3 null".  The failing line is:
 data3 = (char *) malloc (pagesize);

 To compile this program, simply: gcc mman.c -o mman
 And run ./mman

 I am running revision 34251, gcc2hybrid.  The program fails if I compile
 it with gcc2.95.3-haiku-090629 or if I compile it with gcc 4.4.2 (from joe
 protsko).

 THE ABOVE BEHAVIOR WENT AWAY in r34336 from 11/29/09 09:20:58

--

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5168#comment:12>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: