libdjvulibre-dev 3.5.23-3 on Ubuntu 11.04
I tried to build zathura-djvu plugin which depends on djvulibre and get this error:
In file included from page-text.c:3:0:
/usr/include/libdjvu/miniexp.h: In function ‘miniexp_numberp’:
/usr/include/libdjvu/miniexp.h:79:13: error: ‘size_t’ undeclared (first use in this function)
/usr/include/libdjvu/miniexp.h:79:13: note: each undeclared identifier is reported only once for each function it appears in
/usr/include/libdjvu/miniexp.h: In function ‘miniexp_to_int’:
/usr/include/libdjvu/miniexp.h:87:18: error: ‘size_t’ undeclared (first use in this function)
/usr/include/libdjvu/miniexp.h: In function ‘miniexp_number’:
/usr/include/libdjvu/miniexp.h:94:23: error: ‘size_t’ undeclared (first use in this function)
/usr/include/libdjvu/miniexp.h: In function ‘miniexp_symbolp’:
/usr/include/libdjvu/miniexp.h:112:14: error: ‘size_t’ undeclared (first use in this function)
/usr/include/libdjvu/miniexp.h:112:21: error: expected ‘)’ before ‘p’
/usr/include/libdjvu/miniexp.h: In function ‘miniexp_listp’:
/usr/include/libdjvu/miniexp.h:152:14: error: ‘size_t’ undeclared (first use in this function)
/usr/include/libdjvu/miniexp.h:152:21: error: expected ‘)’ before ‘p’
/usr/include/libdjvu/miniexp.h: In function ‘miniexp_car’:
/usr/include/libdjvu/miniexp.h:175:10: error: ‘size_t’ undeclared (first use in this function)
/usr/include/libdjvu/miniexp.h:175:10: error: expected ‘)’ before numeric constant
/usr/include/libdjvu/miniexp.h: In function ‘miniexp_cdr’:
/usr/include/libdjvu/miniexp.h:181:10: error: ‘size_t’ undeclared (first use in this function)
/usr/include/libdjvu/miniexp.h:181:10: error: expected ‘)’ before numeric constant
/usr/include/libdjvu/miniexp.h: In function ‘miniexp_objectp’:
/usr/include/libdjvu/miniexp.h:228:14: error: ‘size_t’ undeclared (first use in this function)
/usr/include/libdjvu/miniexp.h:228:21: error: expected ‘)’ before ‘p’
make: *** [page-text.o] Error 1
Why could this be?
It may have something to do with not explicitly including stddef.h in miniexp.h: http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 625073