#45907 [Asn]: undefined reference to `PHP_SHA512Init'
| From: | sfox@php.net | Date: | Tue, 30 Sep 2008 11:25:30 +0000 |
| Subject: | #45907 [Asn]: undefined reference to `PHP_SHA512Init' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-129358@lists.php.net to get a copy of this message | ||
ID: 45907
Updated by: sfox@php.net
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:
Sorry Greg, would if I could but still have no way to build 5.3. I'll
poke Marcus.
Previous Comments:
------------------------------------------------------------------------
[2008-09-30 00:02:30] cellog@php.net
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?
------------------------------------------------------------------------
[2008-09-29 23:57:03] cellog@php.net
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] johannes@php.net
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] sfox@php.net
Can someone please confirm that this occurs only when ext/hash is built
as shared?
------------------------------------------------------------------------
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