ID:               45907
 Updated by:       [EMAIL PROTECTED]
 Reported By:      olivier at ajeux dot com
 Status:           Assigned
 Bug Type:         PHAR related
 Operating System: Linux i686 2.6.17
 PHP Version:      5.3CVS-2008-09-29 (snap)
 Assigned To:      cellog
 New Comment:

another update: this should be completely unnecessary as we include
ext/hash/php_hash_sha.h which has:

PHP_HASH_API void PHP_SHA256Init(PHP_SHA256_CTX *);

all defined properly

I wonder if building hash shared prevents the proper export of this
function?


Previous Comments:
------------------------------------------------------------------------

[2008-09-29 23:57:03] [EMAIL PROTECTED]

I think we can fix this by using php_hash_sha256_ops and
php_hash_sha512_ops to extract the actual address of PHP_SHA512Init and
company, will try a fix later if I have time, otherwise tomorrow. 
Unless Steph beats me to it (check php_hash.h and hash_sha.c, searching
for php_hash_sha256_ops to see what I'm talking about)

------------------------------------------------------------------------

[2008-09-29 14:31:31] [EMAIL PROTECTED]

Greg, please have a look. Phar should properly check for the existence
of hash imo.

------------------------------------------------------------------------

[2008-09-29 12:44:24] olivier at ajeux dot com

New configure/make without "--enable-hash=shared" (replaced with
"--enable-hash"): OK
Build complete.

------------------------------------------------------------------------

[2008-09-29 12:04:49] [EMAIL PROTECTED]

Can someone please confirm that this occurs only when ext/hash is built
as shared?

------------------------------------------------------------------------

[2008-09-29 10:36:04] olivier at ajeux dot com

Tested again with php5.3 200809290830

Same bug.

ext/phar/.libs/util.o: In function `phar_create_signature':
/usr/src/php5.3-200809290830/ext/phar/util.c:2047: undefined reference
to `PHP_SHA512Init'
/usr/src/php5.3-200809290830/ext/phar/util.c:2050: undefined reference
to `PHP_SHA512Update'
/usr/src/php5.3-200809290830/ext/phar/util.c:2053: undefined reference
to `PHP_SHA512Final'
/usr/src/php5.3-200809290830/ext/phar/util.c:2062: undefined reference
to `PHP_SHA256Init'
/usr/src/php5.3-200809290830/ext/phar/util.c:2065: undefined reference
to `PHP_SHA256Update'
/usr/src/php5.3-200809290830/ext/phar/util.c:2068: undefined reference
to `PHP_SHA256Final'
ext/phar/.libs/util.o: In function `phar_verify_signature':
/usr/src/php5.3-200809290830/ext/phar/util.c:1916: undefined reference
to `PHP_SHA256Init'
/usr/src/php5.3-200809290830/ext/phar/util.c:1926: undefined reference
to `PHP_SHA256Update'
/usr/src/php5.3-200809290830/ext/phar/util.c:1883: undefined reference
to `PHP_SHA512Init'
/usr/src/php5.3-200809290830/ext/phar/util.c:1893: undefined reference
to `PHP_SHA512Update'
/usr/src/php5.3-200809290830/ext/phar/util.c:1900: undefined reference
to `PHP_SHA512Final'
/usr/src/php5.3-200809290830/ext/phar/util.c:1933: undefined reference
to `PHP_SHA256Final'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/45907

-- 
Edit this bug report at http://bugs.php.net/?id=45907&edit=1

Reply via email to