while emerging eix-0.5.5 compilation fails with error: In file included from regexp.h:31, from regexp.cc:28: /usr/include/regex.h:362: error: `size_t' does not name a type /usr/include/regex.h:460: error: `size_t' has not been declared /usr/include/regex.h:551: error: `size_t' has not been declared /usr/include/regex.h:551: error: expected primary-expression before "__restrict__" /usr/include/regex.h:551: error: expected `]' before "__restrict__" /usr/include/regex.h:551: error: expected `,' or `...' before "__restrict__" /usr/include/regex.h:556: error: `size_t' does not name a type regexp.cc: In member function `std::string Regex::get_error(int)': regexp.cc:59: error: `regerror' was not declared in this scope make[3]: *** [regexp.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/eix-0.5.5/work/eix-0.5.5/src/eixTk' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/eix-0.5.5/work/eix-0.5.5/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/eix-0.5.5/work/eix-0.5.5' make: *** [all] Error 2 adding #include <sys/types.h> before #inlude <regex.h> in file src/eixTk/regexp.h solves problem snip from /usr/include/regex.h on uclibc system /* POSIX says that <sys/types.h> must be included (by the caller) before <regex.h>. */ strange is that message exists in regex.h from glibc too but it impicitly includes <sys/types.h>
I committed appro's patch for this one, thanks for reporting.