GCC 4.3.2 says that calls to open specifying O_CREAT in the second argument requires a third argument to be specified. I used 0666 based on some other google results.
Please forward this to the developer responsible for the sample code so a proper fix can be created.
Yes, thanks. I've met this problem too. Now problem line in vm_mmap.linux32.c will be the following
handle->fd = open(file, O_RDWR | O_CREAT, VM_DEFAULT_MAP_CREATE_MODE);
PS. The third parameter for open(.....) was optional up for gcc 4.3.2. And even for this compiler without -O2 switch compilation will be OK.