| Summary: | dev-libs/libevent-2.0.21: __USE_XOPEN2K8 not defined with new compilers | ||
|---|---|---|---|
| Product: | Gentoo/Alt | Reporter: | yegle <cnyegle> |
| Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | jer |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
The latest version 2.1.5-r4 works fine in my prefix install. |
Seems like new compilers won't define __USE_XOPEN2K8 anymore thus on old systems (well not that old, on CentOS 6.3) when pthread.h is included, there will be an error about __locale_t not defined In file included from /usr/include/pthread.h:26:0, from evthread_pthread.c:30: /usr/include/time.h:226:5: error: unknown type name '__locale_t' workaround: in make.conf CFLAGS="${CFLAGS} -D__USE_XOPEN2K8"