error: ‘size_t’ undeclared (first use in this function)

Bug #984177 reported by klonuo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
djvulibre (Ubuntu)
New
Undecided
Unassigned

Bug Description

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?

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

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

Revision history for this message
klonuo (klonuo) wrote :

Yes, that's right and apparently fixed in 3.5.25.
Changing miniexp.h appropriately solves this issue

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.