[augeas-devel] mingw compile error 'uint'

Adam Stokes ajs at redhat.com
Fri Jul 16 18:00:55 UTC 2010


Hi,

internal.h sets a type of api_entries to uint, however, i dont see where this is defined in any of the standards. mingw32 is also complaining during compile:

make[4]: Leaving directory `/home/akimbo/Documents/dev/augeas-0.7.2/gnulib/lib'
make[3]: Leaving directory `/home/akimbo/Documents/dev/augeas-0.7.2/gnulib/lib'
make[2]: Leaving directory `/home/akimbo/Documents/dev/augeas-0.7.2/gnulib/lib'
Making all in src
make[2]: Entering directory `/home/akimbo/Documents/dev/augeas-0.7.2/src'
echo '#define DATADIR "/usr/local/share"' > datadir.h1
../build/aux/move-if-change datadir.h1 datadir.h
make  all-am
make[3]: Entering directory `/home/akimbo/Documents/dev/augeas-0.7.2/src'
echo '#define DATADIR "/usr/local/share"' > datadir.h1
../build/aux/move-if-change datadir.h1 datadir.h
  CC     fa.lo
In file included from fa.c:37:
internal.h:301: error: expected specifier-qualifier-list before 'uint'
fa.c: In function 'alphabet':
fa.c:2694: error: 'uint' undeclared (first use in this function)
fa.c:2694: error: (Each undeclared identifier is reported only once
fa.c:2694: error: for each function it appears in.)
fa.c:2694: error: expected ';' before 'c'
fa.c:2694: error: 'c' undeclared (first use in this function)
fa.c: In function 'last_chars':
fa.c:2707: error: 'uint' undeclared (first use in this function)
fa.c:2707: error: expected ';' before 'c'
fa.c:2707: error: 'c' undeclared (first use in this function)
fa.c: In function 'first_chars':
fa.c:2720: error: 'uint' undeclared (first use in this function)
fa.c:2720: error: expected ';' before 'c'
fa.c:2720: error: 'c' undeclared (first use in this function)
make[3]: *** [fa.lo] Error 1
make[3]: Leaving directory `/home/akimbo/Documents/dev/augeas-0.7.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/akimbo/Documents/dev/augeas-0.7.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/akimbo/Documents/dev/augeas-0.7.2'
make: *** [all] Error 2

What if we used a portable type of 'unsigned int'?

Thanks




More information about the augeas-devel mailing list