Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127184 - eix-0.5.5 compilation fails on uclibc system
Summary: eix-0.5.5 compilation fails on uclibc system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-22 05:55 UTC by Jetchko Jekov
Modified: 2006-03-22 06:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jetchko Jekov 2006-03-22 05:55:36 UTC
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>
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-03-22 06:20:42 UTC
I committed appro's patch for this one, thanks for reporting.