|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56815 pecl-gnupg can't find gpgme because it's looking in the wrong place
Submitted: 2006-02-01 20:14 UTC Modified: 2006-02-02 08:03 UTC
From: me at ben-xo dot com Assigned: traufeisen (profile)
Status: Closed Package: gnupg (PECL)
PHP Version: 4.4.1 OS: Gentoo Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: me at ben-xo dot com
New email:
PHP Version: OS:


 [2006-02-01 20:14 UTC] me at ben-xo dot com
pecl-gnupg can't find gpgme because it's looking in the wrong place during ./configure .

* ./configure looks for /include/gpgme.h inside of /usr/local and /usr

-- but Gentoo puts gpgme.h inside of /usr/include/gpgme/.

Reproduce code:

apply following diff before phpize

--- gnupg-1.0/config.m4.old     2006-02-01 19:43:56.000000000 +0000
+++ gnupg-1.0/config.m4 2006-02-01 19:44:22.000000000 +0000
@@ -6,7 +6,7 @@
 if test "$PHP_GNUPG" != "no"; then
   SEARCH_PATH="/usr/local /usr" 
-  SEARCH_FOR="/include/gpgme.h"  
+  SEARCH_FOR="/include/gpgme/gpgme.h"  
   if test -r $PHP_GNUPG/$SEARCH_FOR; then
@@ -24,7 +24,7 @@
     AC_MSG_ERROR([Please reinstall the gpgme distribution])
+  PHP_ADD_INCLUDE($GNUPG_DIR/include/gpgme)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-02 08:03 UTC]
Thanks for you report.
This has been fixed in CVS and an additional note for a user defined searchpath has been added to config.m4
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 19:01:27 2023 UTC