[Pixman] Build failure with pixman-0.19.4 - under MinGW64

Soeren Sandmann sandmann at daimi.au.dk
Tue Sep 21 16:12:24 PDT 2010


"Tilton, James C. (GSFC-6063)" <james.c.tilton at nasa.gov> writes:

> The following build error was encountered:
> 
> $ make
> make  all-recursive
> make[1]: Entering directory `/home/jtilton/Downloads/pixman-0.19.4'
> Making all in pixman
> make[2]: Entering directory `/home/jtilton/Downloads/pixman-0.19.4/pixman'
> make  all-am
> make[3]: Entering directory `/home/jtilton/Downloads/pixman-0.19.4/pixman'
> make[3]: Nothing to be done for `all-am'.
> make[3]: Leaving directory `/home/jtilton/Downloads/pixman-0.19.4/pixman'
> make[2]: Leaving directory `/home/jtilton/Downloads/pixman-0.19.4/pixman'
> Making all in test
> make[2]: Entering directory `/home/jtilton/Downloads/pixman-0.19.4/test'
>   CC     utils.o
> In file included from utils.c:1:0:
> utils.h:12:0: warning: ignoring #pragma omp threadprivate
> utils.c: In function 'fence_malloc':
> utils.c:226:5: warning: implicit declaration of function 'getpagesize'
> utils.c:238:5: warning: implicit declaration of function 'mmap'
> utils.c:238:33: error: 'PROT_READ' undeclared (first use in this function)
> utils.c:238:33: note: each undeclared identifier is reported only once for each
> function it appears in
> utils.c:238:45: error: 'PROT_WRITE' undeclared (first use in this function)
> utils.c:238:57: error: 'MAP_PRIVATE' undeclared (first use in this function)
> utils.c:238:71: error: 'MAP_ANONYMOUS' undeclared (first use in this function)
> utils.c:241:25: error: 'MAP_FAILED' undeclared (first use in this function)
> utils.c:247:33: warning: cast from pointer to integer of different size
> utils.c:247:20: warning: cast to pointer from integer of different size
> utils.c:257:5: warning: implicit declaration of function 'mprotect'
> utils.c:258:5: error: 'PROT_NONE' undeclared (first use in this function)
> utils.c: In function 'fence_free':
> utils.c:288:8: error: 'PROT_READ' undeclared (first use in this function)
> utils.c:288:20: error: 'PROT_WRITE' undeclared (first use in this function)
> utils.c:293:5: warning: implicit declaration of function 'munmap'

Thanks for the bug report. It would be helpful if you can send the
output of the configure script. It looks like it detects mmap() etc.,
but not the sys/mman.h header file.

> utils.c: In function 'fuzzer_test_main':
> utils.c:407:0: warning: ignoring #pragma omp parallel
> utils.c: At top level:
> utils.c:457:1: warning: 'on_alarm' defined but not used
> make[2]: *** [utils.o] Error 1
> make[2]: Leaving directory `/home/jtilton/Downloads/pixman-0.19.4/test'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/jtilton/Downloads/pixman-0.19.4'
> make: *** [all] Error 2
> 
> I am not able to find where PROT_READ, PROT_WRITE, PROT_NONE, MAP_PRIVATE, MAP_ANONYMOUS, and MAP_FAILED are defined.

On a regular Unix system, these are defined in the <sys/mman.h>
header. Do you happen to know if MinGW has that header file or the
equivalent?


Thanks,
Soren


More information about the Pixman mailing list