php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56597 Make gnupg.so fails
Submitted: 2005-10-15 21:09 UTC Modified: 2005-10-22 19:12 UTC
From: darrell at brogdon dot net Assigned:
Status: Closed Package: gnupg (PECL)
PHP Version: 5.0.4 OS: Mac OS 10.4.2
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: darrell at brogdon dot net
New email:
PHP Version: OS:

 

 [2005-10-15 21:09 UTC] darrell at brogdon dot net
Description:
------------
Note, I'm running PHP version 5.0.4 which isn't available in the versions drop-down.

When I try to install gnupg 0.3 I get the error below.  I've tried this with gpgme versions 1.0.2, 1.0.3, and 1.1.0 

Reproduce code:
---------------
sudo pecl install channel://pecl.php.net/gnupg-0.3

Expected result:
----------------
A completed build and installation of gnupg 0.3 without errors.

Actual result:
--------------
gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/gnupg-0.3/include -I/private/var/tmp/pear-build-root/gnupg-0.3/main -I/private/tmp/tmpTjRyPO/gnupg-0.3 -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -o gnupg.so  gnupg.lo gnupg_keylistiterator.lo -L/usr/local/lib -L/usr/local/lib -lgpgmeld: multiple definitions of symbol _gnupg_class_entrygnupg.lo definition of _gnupg_class_entry in section (__DATA,__common)gnupg_keylistiterator.lo definition of _gnupg_class_entry in section (__DATA,__common)ld: multiple definitions of symbol _gnupg_keylistiterator_class_entrygnupg.lo definition of _gnupg_keylistiterator_class_entry in section (__DATA,__common)gnupg_keylistiterator.lo definition of _gnupg_keylistiterator_class_entry in section (__DATA,__common)make: *** [gnupg.so] Error 1ERROR: `make' failed

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-15 21:19 UTC] darrell at brogdon dot net
When downloading gnupg-0.3 manually and trying to compile by hand I get the following errors:

Darrell-Brogdon:~/Desktop/gnupg-0.3 dbrogdon$ make
/bin/sh /Users/dbrogdon/Desktop/gnupg-0.3/libtool --mode=compile gcc  -I. -I/Users/dbrogdon/Desktop/gnupg-0.3 -DPHP_ATOM_INC -I/Users/dbrogdon/Desktop/gnupg-0.3/include -I/Users/dbrogdon/Desktop/gnupg-0.3/main -I/Users/dbrogdon/Desktop/gnupg-0.3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c -o gnupg.lo 
gcc -I. -I/Users/dbrogdon/Desktop/gnupg-0.3 -DPHP_ATOM_INC -I/Users/dbrogdon/Desktop/gnupg-0.3/include -I/Users/dbrogdon/Desktop/gnupg-0.3/main -I/Users/dbrogdon/Desktop/gnupg-0.3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c  -fno-common -DPIC -o gnupg.lo
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:33: error: parse error before "gnupg_object_handlers"
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:33: warning: data definition has no type or storage class
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:86: error: parse error before "gnupg_objects_new"
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `gnupg_objects_new':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:89: error: `zend_object_value' undeclared (first use in this function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:89: error: (Each undeclared identifier is reported only once
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:89: error: for each function it appears in.)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:89: error: parse error before "retval"
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:96: error: structure has no member named `in_get'
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:97: error: structure has no member named `in_set'
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:104: error: `retval' undeclared (first use in this function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:104: error: `zend_objects_free_object_storage_t' undeclared (first use in this function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:104: error: parse error before "gnupg_object_free_storage"
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:105: error: `zend_object_handlers' undeclared (first use in this function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:105: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: At top level:
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:121: error: `gnupg' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:121: error: `keyinfo' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:121: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: (near initialization for `gnupg_methods[0].fname')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: parse error before "ZEND_ME"
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: `verify' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: (near initialization for `gnupg_methods[0].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: (near initialization for `gnupg_methods[0]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: (near initialization for `gnupg_methods[1]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:122: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:123: error: `geterror' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:123: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:123: error: (near initialization for `gnupg_methods[2]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:123: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:123: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:123: error: (near initialization for `gnupg_methods[3].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:123: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:124: error: `setpassphrase' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:124: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:124: error: (near initialization for `gnupg_methods[3].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:124: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:124: error: (near initialization for `gnupg_methods[3]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:124: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:124: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:124: error: (near initialization for `gnupg_methods[4].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:124: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:125: error: `setsignerkey' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:125: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:125: error: (near initialization for `gnupg_methods[4].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:125: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:125: error: (near initialization for `gnupg_methods[4]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:125: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:125: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:125: error: (near initialization for `gnupg_methods[5].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:125: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:126: error: `clearsignerkey' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:126: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:126: error: (near initialization for `gnupg_methods[5].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:126: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:126: error: (near initialization for `gnupg_methods[5]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:126: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:126: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:126: error: (near initialization for `gnupg_methods[6].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:126: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:127: error: `setencryptkey' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:127: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:127: error: (near initialization for `gnupg_methods[6].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:127: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:127: error: (near initialization for `gnupg_methods[6]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:127: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:127: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:127: error: (near initialization for `gnupg_methods[7].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:127: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:128: error: `setarmor' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:128: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:128: error: (near initialization for `gnupg_methods[7].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:128: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:128: error: (near initialization for `gnupg_methods[7]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:128: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:128: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:128: error: (near initialization for `gnupg_methods[8].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:128: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:129: warning: initialization from incompatible pointer type
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:129: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:129: error: (near initialization for `gnupg_methods[8]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:129: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:129: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:129: error: (near initialization for `gnupg_methods[9].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:129: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:130: error: `decrypt' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:130: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:130: error: (near initialization for `gnupg_methods[9].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:130: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:130: error: (near initialization for `gnupg_methods[9]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:130: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:130: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:130: error: (near initialization for `gnupg_methods[10].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:130: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:131: error: `export' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:131: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:131: error: (near initialization for `gnupg_methods[10].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:131: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:131: error: (near initialization for `gnupg_methods[10]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:131: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:131: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:131: error: (near initialization for `gnupg_methods[11].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:131: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:132: error: `import' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:132: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:132: error: (near initialization for `gnupg_methods[11].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:132: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:132: error: (near initialization for `gnupg_methods[11]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:132: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:132: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:132: error: (near initialization for `gnupg_methods[12].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:132: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:133: error: `getprotocol' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:133: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:133: error: (near initialization for `gnupg_methods[12].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:133: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:133: error: (near initialization for `gnupg_methods[12]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:133: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:133: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:133: error: (near initialization for `gnupg_methods[13].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:133: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:134: error: `setsignmode' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:134: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:134: error: (near initialization for `gnupg_methods[13].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:134: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:134: error: (near initialization for `gnupg_methods[13]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:134: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:134: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:134: error: (near initialization for `gnupg_methods[14].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:134: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:135: error: `sign' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:135: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:135: error: (near initialization for `gnupg_methods[14].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:135: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:135: error: (near initialization for `gnupg_methods[14]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:135: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:135: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:135: error: (near initialization for `gnupg_methods[15].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:135: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:136: error: `encryptsign' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:136: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:136: error: (near initialization for `gnupg_methods[15].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:136: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:136: error: (near initialization for `gnupg_methods[15]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:136: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:136: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:136: error: (near initialization for `gnupg_methods[16].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:136: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:137: error: `decryptverify' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:137: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:137: error: (near initialization for `gnupg_methods[16].func_arg_types')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:137: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:137: error: (near initialization for `gnupg_methods[16]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:137: error: `ZEND_ACC_PUBLIC' undeclared here (not in a function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:137: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:137: error: (near initialization for `gnupg_methods[17].handler')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:137: error: parse error before ')' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:138: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:138: error: (near initialization for `gnupg_methods[17]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:138: error: initializer element is not constant
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:138: error: (near initialization for `gnupg_methods[18]')
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:139: error: parse error before '}' token
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `register_gnupgProperties':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:158: error: `ZEND_ACC_PROTECTED' undeclared (first use in this function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `zm_startup_gnupg':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:195: error: structure has no member named `create_object'
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:197: error: `zend_object_handlers' undeclared (first use in this function)
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:197: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `zif_gnupg_geterror':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:340: warning: assignment makes pointer from integer without a cast
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `zif_gnupg_getprotocol':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:352: warning: assignment makes pointer from integer without a cast
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `zif_gnupg_sign':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:576: warning: passing arg 2 of `gpgme_data_release_and_get_mem' from incompatible pointer type
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `zif_gnupg_encrypt':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:623: warning: passing arg 2 of `gpgme_data_release_and_get_mem' from incompatible pointer type
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `zif_gnupg_encryptsign':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:680: warning: passing arg 2 of `gpgme_data_release_and_get_mem' from incompatible pointer type
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `zif_gnupg_verify':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:735: warning: passing arg 2 of `gpgme_data_release_and_get_mem' from incompatible pointer type
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `zif_gnupg_decrypt':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:778: warning: passing arg 2 of `gpgme_data_release_and_get_mem' from incompatible pointer type
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `zif_gnupg_decryptverify':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:820: warning: passing arg 2 of `gpgme_data_release_and_get_mem' from incompatible pointer type
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c: In function `zif_gnupg_export':
/Users/dbrogdon/Desktop/gnupg-0.3/gnupg.c:868: warning: passing arg 2 of `gpgme_data_release_and_get_mem' from incompatible pointer type
make: *** [gnupg.lo] Error 1
 [2005-10-16 07:58 UTC] traufeisen@php.net
I?ve tried to reproduce this with PHP 5.0.4, but all works fine.
But the error gnupg.c:33: error: parse error before "gnupg_object_handlers" normaly occurs when trying to build against PHP 4.
Please run "phpize -v" and check the version numbers.
These should be the following:

PHP Api Version:         20031224
Zend Module Api No:      20041030
Zend Extension Api No:   220040412

If you get other version numbers, it?s possible that the buildprocess is using old PHP4 headerfiles.
Locate the correct phpize and specify it during configure with:

./configure --with-php-config=/path/to/php-config
 [2005-10-16 16:19 UTC] darrell at brogdon dot net
I did this and received the same version numbers from phpize 
as you did:

/usr/local/php5/bin/phpize -v
Configuring for:
PHP Api Version:         20031224
Zend Module Api No:      20041030
Zend Extension Api No:   220040412

When I run phpize inside the gnupg-0.3 dir I get the 
following warning:

/sw/share/aclocal/pkg.m4:5: warning: underquoted definition 
of PKG_CHECK_MODULES
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/
automake.html#Extending-aclocal
 [2005-10-16 16:54 UTC] traufeisen@php.net
This warning could result in a more recent automake-version. Should not be the problem.
It still looks so, that you?ve multiple PHP-Versions installed.
The paths
/usr/local/php5/bin/phpize 
and
/usr/include/php/
looks a bit "not default"
Perhaps you?ve installed PHP5 and still the PHP4-Headerfiles.
In this case, other PHP5 extensions should make problems too.

As far as I can see, this is not a bug of this extension.
 [2005-10-17 11:42 UTC] darrell at brogdon dot net
It appears you're right.  Marking this as closed.
 [2005-10-18 19:27 UTC] darrell at brogdon dot net
I'm reopening as I've found a few things which might be of 
interest:

The error 'multiple definitions of symbol 
_gnupg_class_entry' seems to be caused by 
'gnupg_class_entry' being defined in php_gnupg.h.  When I 
move it to gnupg.c it compiles without any errors.

However, when I run the examples I get no output.  When I 
print_r() on the $gnupg object I get:

gnupg Object
(
)

When I modify examples/encrypt.php to add '$gnupg->getError
()' after '$gnupg->setEncryptKey($fingerprint);' I get the 
error "get_key failed".  A test with similar code using the 
procedural approach gives the same results.
 [2005-10-19 11:47 UTC] traufeisen@php.net
It is still not possible for me, to reproduce this kind of error.
I?ve tried multiple PHP-Versions and all worked fine.

The examples will only work, if you have the key which is specified in main.php is in your keyring.
The errormessage "get_key failed" indicates, that you are trying to use a key, which doesn?t exists in your keyring.
When a function/method of this extension fails, "false" is returned.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 08:01:28 2024 UTC