php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56677 gnupg.so fails load after build
Submitted: 2005-11-27 16:59 UTC Modified: 2005-11-27 18:09 UTC
From: thecubic at thecubic dot net Assigned:
Status: Closed Package: gnupg (PECL)
PHP Version: 5.0.4 OS: Fedora Core 4 / Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thecubic at thecubic dot net
New email:
PHP Version: OS:

 

 [2005-11-27 16:59 UTC] thecubic at thecubic dot net
Description:
------------
The extention builds perfectly with PEAR, and then on use:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gnupg.so' - /usr/lib/php/modules/gnupg.so: undefined symbol: GNUPG_ERROR in Unknown on line 0

Reproduce code:
---------------
pear install gnupg
echo "<?php dl('gnupg.so'); ?>" | php

Expected result:
----------------
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gnupg.so' - /usr/lib/php/modules/gnupg.so: undefined symbol: GNUPG_ERROR in Unknown on line 0

gnupg functions not available in PHP

Actual result:
--------------
gnupg.so loads and functions are available in PHP

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-27 17:44 UTC] traufeisen@php.net
Sorry, but I can?t reproduce this.
Please try building this extension manually.
 [2005-11-27 18:09 UTC] thecubic at thecubic dot net
I built it with phpize, and got the exact same result.

I grep'ed for GNUPG_ERROR, and found only one on line 509:
GNUPG_ERROR("invalid errormode");

everything else used GNUPG_ERR(), so I switched it to that, and it loaded.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 11 21:01:30 2024 UTC