Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 475042

Summary: dev-libs/libevent-2.0.21: __USE_XOPEN2K8 not defined with new compilers
Product: Gentoo/Alt Reporter: yegle <cnyegle>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description yegle 2013-06-27 23:05:51 UTC
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"
Comment 1 yegle 2016-06-06 04:06:52 UTC
The latest version 2.1.5-r4 works fine in my prefix install.