mainGnuTLS - Support: sr #108094, unresolved symbols in windows...

 
 

sr #108094: unresolved symbols in windows because wincrypt.h is not included

Submitter:  Steve Trotman <stevetrotman>
Submitted:  Wed 25 Jul 2012 07:41:08 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  5 - Blocker Status:  Need Info
Privacy:  Public Assigned to:  nmav
Open/Closed:  Closed Operating System:  Microsoft Windows
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 06 Aug 2012 07:13:40 PM UTC, comment #4: 

This was fixed in 3.0.21

-*- <_74148>
Fri 03 Aug 2012 06:36:07 PM UTC, comment #3: 

This is a mingw32 bug. You can use mingw64 to compile gnutls.

Nikos Mavrogiannopoulos <nmav>
Group administrator
Fri 03 Aug 2012 06:07:01 PM UTC, comment #2: 

Gnutls 3.0.20

GCC 4.6.2 under MSYS/Mingw32
 
offending functions below:

  CC     gnutls_x509.lo
gnutls_x509.c: In function 'set_x509_system_trust_file':
gnutls_x509.c:1595:1: error: unknown type name 'HCERTSTORE'
gnutls_x509.c:1595:1: warning: implicit declaration of function 'CertOpenSystemStore' [-Wimplicit-function-declaration]
gnutls_x509.c:1596:1: error: unknown type name 'CERT_CONTEXT'
gnutls_x509.c:1597:1: error: unknown type name 'CRL_CONTEXT'
gnutls_x509.c:1608:17: warning: comparison between pointer and integer [enabled by default]
gnutls_x509.c:1610:7: warning: implicit declaration of function 'CertEnumCertificatesInStore' [-Wimplicit-function-decla
ration]
gnutls_x509.c:1610:12: warning: assignment makes pointer from integer without a cast [enabled by default]
gnutls_x509.c:1611:7: warning: implicit declaration of function 'CertEnumCRLsInStore' [-Wimplicit-function-declaration]
gnutls_x509.c:1611:11: warning: assignment makes pointer from integer without a cast [enabled by default]
gnutls_x509.c:1615:19: error: request for member 'dwCertEncodingType' in something not a structure or union
gnutls_x509.c:1615:43: error: 'X509_ASN_ENCODING' undeclared (first use in this function)
gnutls_x509.c:1615:43: note: each undeclared identifier is reported only once for each function it appears in
gnutls_x509.c:1617:31: error: request for member 'pbCertEncoded' in something not a structure or union
gnutls_x509.c:1618:31: error: request for member 'cbCertEncoded' in something not a structure or union
gnutls_x509.c:1622:16: warning: assignment makes pointer from integer without a cast [enabled by default]
gnutls_x509.c:1627:18: error: request for member 'dwCertEncodingType' in something not a structure or union
gnutls_x509.c:1629:30: error: request for member 'pbCrlEncoded' in something not a structure or union
gnutls_x509.c:1630:30: error: request for member 'cbCrlEncoded' in something not a structure or union
gnutls_x509.c:1634:15: warning: assignment makes pointer from integer without a cast [enabled by default]
gnutls_x509.c:1636:7: warning: implicit declaration of function 'CertCloseStore' [-Wimplicit-function-declaration]
make[3]: * [gnutls_x509.lo] Error 1

Steve Trotman <stevetrotman>
Wed 01 Aug 2012 11:28:21 PM UTC, comment #1: 

Hello,
 Which version of gnutls is that and which compiler? gnutls_x509.c already includes wincrypt.h and crypto-api.c doesn't seem to call any windows API function.

Nikos Mavrogiannopoulos <nmav>
Group administrator
Wed 25 Jul 2012 07:41:08 PM UTC, original submission:  

crypto-api.c and gnutls_x509.c both use certificate functions that need wincrypt.h under windows.  Adding #include <wincrypt.h> to these two files allowed them to compile successfully.

Steve Trotman <stevetrotman>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by _74148 (Posted a comment)
  • -email is unavailable- added by nmav (Posted a comment)
  • -email is unavailable- added by stevetrotman (Submitted the item)
  • -email is unavailable- added by stevetrotman
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-03 nmav Open/ClosedOpen Closed
    2012-08-01 nmav StatusNone Need Info
        Assigned toNone nmav
    2012-07-25 stevetrotman Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code