Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601834 - app-crypt/gpgme-1.8.0-r1[python]: /usr/include/signal.h:69:42: error: use of undeclared identifier 'NSIG'
Summary: app-crypt/gpgme-1.8.0-r1[python]: /usr/include/signal.h:69:42: error: use of ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-06 16:26 UTC by Guilherme Amadio
Modified: 2017-03-16 03:39 UTC (History)
0 users

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 Guilherme Amadio gentoo-dev 2016-12-06 16:26:38 UTC
On macOS Sierra, when USE=python is enabled, there seems to be a problem in configuration that leads to the following error:

In file included from helpers.c:30:
In file included from /Library/Gentoo/usr/include/python2.7/Python.h:156:
In file included from /Library/Gentoo/usr/include/python2.7/pyfpe.h:129:
/usr/include/signal.h:69:42: error: use of undeclared identifier 'NSIG'
extern __const char *__const sys_signame[NSIG];
                                         ^
/usr/include/signal.h:70:42: error: use of undeclared identifier 'NSIG'
extern __const char *__const sys_siglist[NSIG];
                                         ^

As a workaround, it's possible to use

$ CFLAGS='-D_DARWIN_C_SOURCE' emerge gpgme

to avoid the problem of 'NSIG' not being defined when including signal.h.

Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2017-01-03 09:26:21 UTC
macports does a similar trick
Comment 2 Guilherme Amadio gentoo-dev 2017-03-16 03:39:30 UTC
I've applied the workaround to the tree:

commit 797a6d141df1134691a85d13ec1e6db091eaf57b
Author: Guilherme Amadio <amadio@gentoo.org>
Date:   Thu Mar 16 00:34:43 2017 -0300

    app-crypt/gpgme: Fix bug 601834 on macOS
    
    Package-Manager: Portage-2.3.4, Repoman-2.3.2

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=797a6d141df1134691a85d13ec1e6db091eaf57b