Opened 14 years ago

Last modified 14 years ago

#5168 closed bug

checking for working mmap... no — at Initial Version

Reported by: andrewbachmann Owned by: axeld
Priority: normal Milestone: R1
Component: System/libroot.so Version: R1/alpha1
Keywords: mmap malloc Cc:
Blocked By: Blocking:
Platform: x86

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).

Change History (1)

by andrewbachmann, 14 years ago

Attachment: mman.c added
Note: See TracTickets for help on using tickets.