php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
31 - 23 = ?
Subscribe to this entry?

 
 [2006-02-01 20:14 UTC] me at ben-xo dot com
Description:
------------
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:
---------------
Workaround:

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
     GNUPG_DIR=$PHP_GNUPG
   else
@@ -24,7 +24,7 @@
     AC_MSG_ERROR([Please reinstall the gpgme distribution])
   fi
 
-  PHP_ADD_INCLUDE($GNUPG_DIR/include)
+  PHP_ADD_INCLUDE($GNUPG_DIR/include/gpgme)
 
   LIBNAME=gpgme
   LIBSYMBOL=gpgme_check_version


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-02 08:03 UTC] traufeisen@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 02 07:01:30 2024 UTC