You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2011/05/26 15:27:44 UTC

DO NOT REPLY [Bug 51271] New: APR-Util 1.5.x branch: crypto/apr_crypto_nss.c: Compilation failure

https://issues.apache.org/bugzilla/show_bug.cgi?id=51271

             Bug #: 51271
           Summary: APR-Util 1.5.x branch: crypto/apr_crypto_nss.c:
                    Compilation failure
           Product: APR
           Version: HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR-util
        AssignedTo: bugs@apr.apache.org
        ReportedBy: Arfrever.FTA@GMail.Com
                CC: minfrin@apache.org
    Classification: Unclassified


crypto/apr_crypto_nss.c of APR-Util 1.5.x branch fails to compile due to errors
introduced in r1127693.

crypto/apr_crypto_nss.c:62:5: error: expected specifier-qualifier-list before
‘CK_MECHANISM_TYPE’
crypto/apr_crypto_nss.c:72:5: error: expected specifier-qualifier-list before
‘PK11Context’
crypto/apr_crypto_nss.c: In function ‘crypto_shutdown’:
crypto/apr_crypto_nss.c:92:5: warning: implicit declaration of function
‘NSS_IsInitialized’
crypto/apr_crypto_nss.c:93:9: error: ‘SECStatus’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:93:9: note: each undeclared identifier is reported only
once for each function it appears in
crypto/apr_crypto_nss.c:93:19: error: expected ‘;’ before ‘s’
crypto/apr_crypto_nss.c:94:13: error: ‘s’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:94:18: error: ‘SECSuccess’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c: In function ‘crypto_shutdown_helper’:
crypto/apr_crypto_nss.c:103:17: warning: unused variable ‘pool’
crypto/apr_crypto_nss.c: In function ‘crypto_init’:
crypto/apr_crypto_nss.c:112:5: error: ‘SECStatus’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:112:15: error: expected ‘;’ before ‘s’
crypto/apr_crypto_nss.c:150:9: error: ‘s’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:150:9: warning: implicit declaration of function
‘NSS_Initialize’
crypto/apr_crypto_nss.c:153:9: warning: implicit declaration of function
‘NSS_InitReadWrite’
crypto/apr_crypto_nss.c:156:9: warning: implicit declaration of function
‘NSS_NoDB_Init’
crypto/apr_crypto_nss.c:158:14: error: ‘SECSuccess’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c: In function ‘crypto_block_cleanup’:
crypto/apr_crypto_nss.c:178:14: error: ‘apr_crypto_block_t’ has no member named
‘ctx’
crypto/apr_crypto_nss.c:179:9: warning: implicit declaration of function
‘PK11_DestroyContext’
crypto/apr_crypto_nss.c:179:34: error: ‘apr_crypto_block_t’ has no member named
‘ctx’
crypto/apr_crypto_nss.c:180:14: error: ‘apr_crypto_block_t’ has no member named
‘ctx’
crypto/apr_crypto_nss.c: In function ‘crypto_cleanup’:
crypto/apr_crypto_nss.c:204:20: error: ‘apr_crypto_key_t’ has no member named
‘symKey’
crypto/apr_crypto_nss.c:205:17: warning: implicit declaration of function
‘PK11_FreeSymKey’
crypto/apr_crypto_nss.c:205:36: error: ‘apr_crypto_key_t’ has no member named
‘symKey’
crypto/apr_crypto_nss.c:206:20: error: ‘apr_crypto_key_t’ has no member named
‘symKey’
crypto/apr_crypto_nss.c: In function ‘crypto_passphrase’:
crypto/apr_crypto_nss.c:313:5: error: ‘PK11SlotInfo’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c:313:20: error: ‘slot’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:314:5: error: ‘SECItem’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:314:13: error: expected ‘;’ before ‘passItem’
crypto/apr_crypto_nss.c:315:13: error: expected ‘;’ before ‘saltItem’
crypto/apr_crypto_nss.c:316:5: error: ‘SECAlgorithmID’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c:316:21: error: ‘algid’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:335:16: error: ‘apr_crypto_key_t’ has no member named
‘cipherOid’
crypto/apr_crypto_nss.c:335:30: error: ‘SEC_OID_DES_EDE3_CBC’ undeclared (first
use in this function)
crypto/apr_crypto_nss.c:344:16: error: ‘apr_crypto_key_t’ has no member named
‘cipherOid’
crypto/apr_crypto_nss.c:344:30: error: ‘SEC_OID_AES_128_CBC’ undeclared (first
use in this function)
crypto/apr_crypto_nss.c:347:16: error: ‘apr_crypto_key_t’ has no member named
‘cipherOid’
crypto/apr_crypto_nss.c:347:30: error: ‘SEC_OID_AES_128_ECB’ undeclared (first
use in this function)
crypto/apr_crypto_nss.c:352:16: error: ‘apr_crypto_key_t’ has no member named
‘cipherOid’
crypto/apr_crypto_nss.c:352:30: error: ‘SEC_OID_AES_192_CBC’ undeclared (first
use in this function)
crypto/apr_crypto_nss.c:355:16: error: ‘apr_crypto_key_t’ has no member named
‘cipherOid’
crypto/apr_crypto_nss.c:355:30: error: ‘SEC_OID_AES_192_ECB’ undeclared (first
use in this function)
crypto/apr_crypto_nss.c:360:16: error: ‘apr_crypto_key_t’ has no member named
‘cipherOid’
crypto/apr_crypto_nss.c:360:30: error: ‘SEC_OID_AES_256_CBC’ undeclared (first
use in this function)
crypto/apr_crypto_nss.c:363:16: error: ‘apr_crypto_key_t’ has no member named
‘cipherOid’
crypto/apr_crypto_nss.c:363:30: error: ‘SEC_OID_AES_256_ECB’ undeclared (first
use in this function)
crypto/apr_crypto_nss.c:372:8: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:372:5: warning: implicit declaration of function
‘PK11_AlgtagToMechanism’
crypto/apr_crypto_nss.c:372:49: error: ‘apr_crypto_key_t’ has no member named
‘cipherOid’
crypto/apr_crypto_nss.c:373:12: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:373:28: error: ‘CKM_INVALID_MECHANISM’ undeclared
(first use in this function)
crypto/apr_crypto_nss.c:377:9: error: ‘CK_MECHANISM_TYPE’ undeclared (first use
in this function)
crypto/apr_crypto_nss.c:377:27: error: expected ‘;’ before ‘paddedMech’
crypto/apr_crypto_nss.c:378:9: error: ‘paddedMech’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c:378:9: warning: implicit declaration of function
‘PK11_GetPadMechanism’
crypto/apr_crypto_nss.c:378:46: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:379:55: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:382:12: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:386:5: error: ‘passItem’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:388:5: error: ‘saltItem’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:393:5: warning: implicit declaration of function
‘PK11_CreatePBEV2AlgorithmID’
crypto/apr_crypto_nss.c:393:44: error: ‘apr_crypto_key_t’ has no member named
‘cipherOid’
crypto/apr_crypto_nss.c:393:60: error: ‘apr_crypto_key_t’ has no member named
‘cipherOid’
crypto/apr_crypto_nss.c:393:73: error: ‘SEC_OID_HMAC_SHA1’ undeclared (first
use in this function)
crypto/apr_crypto_nss.c:395:9: warning: implicit declaration of function
‘PK11_GetBestSlot’
crypto/apr_crypto_nss.c:395:36: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:397:16: error: ‘apr_crypto_key_t’ has no member named
‘symKey’
crypto/apr_crypto_nss.c:397:13: warning: implicit declaration of function
‘PK11_PBEKeyGen’
crypto/apr_crypto_nss.c:398:13: warning: implicit declaration of function
‘PK11_FreeSlot’
crypto/apr_crypto_nss.c:400:9: warning: implicit declaration of function
‘SECOID_DestroyAlgorithmID’
crypto/apr_crypto_nss.c:404:13: error: ‘apr_crypto_key_t’ has no member named
‘symKey’
crypto/apr_crypto_nss.c:405:9: warning: implicit declaration of function
‘PORT_GetError’
crypto/apr_crypto_nss.c:413:8: error: ‘apr_crypto_key_t’ has no member named
‘ivSize’
crypto/apr_crypto_nss.c:413:5: warning: implicit declaration of function
‘PK11_GetIVLength’
crypto/apr_crypto_nss.c:413:39: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:415:22: error: ‘apr_crypto_key_t’ has no member named
‘ivSize’
crypto/apr_crypto_nss.c: In function ‘crypto_block_encrypt_init’:
crypto/apr_crypto_nss.c:442:5: error: ‘SECItem’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:442:15: error: ‘secParam’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:443:13: error: expected ‘;’ before ‘ivItem’
crypto/apr_crypto_nss.c:460:12: error: ‘apr_crypto_key_t’ has no member named
‘ivSize’
crypto/apr_crypto_nss.c:465:22: error: ‘apr_crypto_key_t’ has no member named
‘ivSize’
crypto/apr_crypto_nss.c:465:22: error: ‘apr_crypto_key_t’ has no member named
‘ivSize’
crypto/apr_crypto_nss.c:469:13: error: ‘SECStatus’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c:469:23: error: expected ‘;’ before ‘s’
crypto/apr_crypto_nss.c:470:17: error: ‘s’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:470:22: error: ‘SECSuccess’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c:478:9: error: ‘ivItem’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:479:25: error: ‘apr_crypto_key_t’ has no member named
‘ivSize’
crypto/apr_crypto_nss.c:480:9: warning: implicit declaration of function
‘PK11_ParamFromIV’
crypto/apr_crypto_nss.c:480:40: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:483:9: warning: implicit declaration of function
‘PK11_GenerateNewParam’
crypto/apr_crypto_nss.c:483:45: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:483:62: error: ‘apr_crypto_key_t’ has no member named
‘symKey’
crypto/apr_crypto_nss.c:485:10: error: ‘apr_crypto_block_t’ has no member named
‘blockSize’
crypto/apr_crypto_nss.c:485:5: warning: implicit declaration of function
‘PK11_GetBlockSize’
crypto/apr_crypto_nss.c:485:45: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:486:10: error: ‘apr_crypto_block_t’ has no member named
‘ctx’
crypto/apr_crypto_nss.c:486:5: warning: implicit declaration of function
‘PK11_CreateContextBySymKey’
crypto/apr_crypto_nss.c:486:48: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:486:62: error: ‘CKA_ENCRYPT’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c:486:78: error: ‘apr_crypto_key_t’ has no member named
‘symKey’
crypto/apr_crypto_nss.c:490:23: error: ‘apr_crypto_block_t’ has no member named
‘ctx’
crypto/apr_crypto_nss.c:497:39: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c: In function ‘crypto_block_encrypt’:
crypto/apr_crypto_nss.c:530:32: error: ‘apr_crypto_block_t’ has no member named
‘blockSize’
crypto/apr_crypto_nss.c:534:55: error: ‘apr_crypto_block_t’ has no member named
‘blockSize’
crypto/apr_crypto_nss.c:541:5: error: ‘SECStatus’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:541:15: error: expected ‘;’ before ‘s’
crypto/apr_crypto_nss.c:542:9: error: ‘s’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:542:14: error: ‘SECSuccess’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c: In function ‘crypto_block_encrypt_finish’:
crypto/apr_crypto_nss.c:581:5: error: ‘SECStatus’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:581:15: error: expected ‘;’ before ‘s’
crypto/apr_crypto_nss.c:584:9: error: ‘s’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:584:14: error: ‘SECSuccess’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c: In function ‘crypto_block_decrypt_init’:
crypto/apr_crypto_nss.c:618:5: error: ‘SECItem’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:618:15: error: ‘secParam’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:634:12: error: ‘apr_crypto_key_t’ has no member named
‘ivSize’
crypto/apr_crypto_nss.c:635:17: error: expected ‘;’ before ‘ivItem’
crypto/apr_crypto_nss.c:639:9: error: ‘ivItem’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:640:25: error: ‘apr_crypto_key_t’ has no member named
‘ivSize’
crypto/apr_crypto_nss.c:641:40: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:644:45: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:644:62: error: ‘apr_crypto_key_t’ has no member named
‘symKey’
crypto/apr_crypto_nss.c:646:10: error: ‘apr_crypto_block_t’ has no member named
‘blockSize’
crypto/apr_crypto_nss.c:646:45: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:647:10: error: ‘apr_crypto_block_t’ has no member named
‘ctx’
crypto/apr_crypto_nss.c:647:48: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c:647:62: error: ‘CKA_DECRYPT’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c:647:78: error: ‘apr_crypto_key_t’ has no member named
‘symKey’
crypto/apr_crypto_nss.c:651:23: error: ‘apr_crypto_block_t’ has no member named
‘ctx’
crypto/apr_crypto_nss.c:658:43: error: ‘apr_crypto_key_t’ has no member named
‘cipherMech’
crypto/apr_crypto_nss.c: In function ‘crypto_block_decrypt’:
crypto/apr_crypto_nss.c:691:32: error: ‘apr_crypto_block_t’ has no member named
‘blockSize’
crypto/apr_crypto_nss.c:695:55: error: ‘apr_crypto_block_t’ has no member named
‘blockSize’
crypto/apr_crypto_nss.c:702:5: error: ‘SECStatus’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:702:15: error: expected ‘;’ before ‘s’
crypto/apr_crypto_nss.c:703:9: error: ‘s’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:703:14: error: ‘SECSuccess’ undeclared (first use in
this function)
crypto/apr_crypto_nss.c: In function ‘crypto_block_decrypt_finish’:
crypto/apr_crypto_nss.c:742:5: error: ‘SECStatus’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:742:15: error: expected ‘;’ before ‘s’
crypto/apr_crypto_nss.c:745:9: error: ‘s’ undeclared (first use in this
function)
crypto/apr_crypto_nss.c:745:14: error: ‘SECSuccess’ undeclared (first use in
this function)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


DO NOT REPLY [Bug 51271] APR-Util 1.5.x branch: crypto/apr_crypto_nss.c: Compilation failure

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51271

--- Comment #1 from Arfrever Frehtes Taifersar Arahesis <Ar...@GMail.Com> 2011-05-26 13:30:08 UTC ---
The following preprocessor definitions are not defined:
  HAVE_NSS_NSS_H
  HAVE_NSS_H
  HAVE_NSS_PK11PUB_H
  HAVE_PK11PUB_H

Addition of the following line fixes compilation:
#include "apu_config.h"

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


DO NOT REPLY [Bug 51271] APR-Util 1.5.x branch: crypto/apr_crypto_nss.c: Compilation failure

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51271

Arfrever Frehtes Taifersar Arahesis <Ar...@GMail.Com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Arfrever Frehtes Taifersar Arahesis <Ar...@GMail.Com> 2011-05-31 19:42:30 UTC ---
This bug has been fixed in r1129341 (1.5.x branch) and r1129342 (1.4.x branch).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org