Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475042 - dev-libs/libevent-2.0.21: __USE_XOPEN2K8 not defined with new compilers
Summary: dev-libs/libevent-2.0.21: __USE_XOPEN2K8 not defined with new compilers
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-27 23:05 UTC by yegle
Modified: 2016-06-06 04:06 UTC (History)
1 user (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 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.