Make sure that the order when you link them is libssl then libcrypto. The VMS linker searches object libraries in order (and does not go back). Since libssl references some routines in libcrypto that may not be directly referenced by your code it is necessary to put libssl before libcrypto in the list of object libraries.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabucino Sent: Sunday, June 10, 2007 5:14 AM To: openssl-users@openssl.org Subject: OpenSSL on VAX/VMS Greetings. I have compiled OpenSSL 0.9.8e on VAX/VMS 7.3 (had to disable SHA512, because it insists on having 64bit long long). The created libraries were: libcrypto.olb and libssl.olb Yet, when I try to link them to my application, I get: %LINK-W-NUDFSYMS, 29 undefined symbols: %LINK-I-UDFSYM, BIO_F_BUFFER %LINK-I-UDFSYM, COMP_COMPRESS_BLOCK %LINK-I-UDFSYM, COMP_CTX_FREE %LINK-I-UDFSYM, COMP_CTX_NEW %LINK-I-UDFSYM, COMP_EXPAND_BLOCK %LINK-I-UDFSYM, COMP_ZLIB %LINK-I-UDFSYM, D2I_DHPARAMS %LINK-I-UDFSYM, ECDH_COMPUTE_KEY %LINK-I-UDFSYM, ERR_LOAD_CRYPTO_STRINGS %LINK-I-UDFSYM, EVP_ENC_NULL %LINK-I-UDFSYM, I2D_DHPARAMS %LINK-I-UDFSYM, OPENSSL_DIR_END %LINK-I-UDFSYM, OPENSSL_DIR_READ %LINK-I-UDFSYM, PEM_READ_BIO_PRIVATEKEY %LINK-I-UDFSYM, PEM_READ_BIO_RSAPRIVATEKEY %LINK-I-UDFSYM, PEM_READ_BIO_X509 %LINK-I-UDFSYM, PITEM_FREE %LINK-I-UDFSYM, PITEM_NEW %LINK-I-UDFSYM, PQUEUE_FIND %LINK-I-UDFSYM, PQUEUE_FREE %LINK-I-UDFSYM, PQUEUE_INSERT %LINK-I-UDFSYM, PQUEUE_ITERATOR %LINK-I-UDFSYM, PQUEUE_NEW %LINK-I-UDFSYM, PQUEUE_NEXT %LINK-I-UDFSYM, PQUEUE_PEEK %LINK-I-UDFSYM, PQUEUE_POP %LINK-I-UDFSYM, X509_CERTIFICATE_TYPE %LINK-I-UDFSYM, X509_STORE_LOAD_LOCATIONS %LINK-I-UDFSYM, X509_STORE_SET_DEFAULT_PATHS %LINK-W-USEUNDEF, undefined symbol D2I_DHPARAMS referenced in psect $CODE offset %X00001133 in module D1_CLNT file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 %LINK-W-USEUNDEF, undefined symbol I2D_DHPARAMS referenced in psect $CODE offset %X00001139 in module D1_CLNT file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 %LINK-W-USEUNDEF, undefined symbol PQUEUE_NEW referenced in psect $CODE offset %X000000E2 in module D1_LIB file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 %LINK-W-USEUNDEF, undefined symbol PQUEUE_FREE referenced in psect $CODE offset %X00000135 in module D1_LIB file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 %LINK-W-USEUNDEF, undefined symbol PQUEUE_FREE referenced in psect $CODE offset %X00000146 in module D1_LIB file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 %LINK-W-USEUNDEF, undefined symbol PQUEUE_FREE referenced in psect $CODE offset %X00000157 in module D1_LIB file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 %LINK-W-USEUNDEF, undefined symbol PQUEUE_FREE referenced in psect $CODE offset %X00000168 in module D1_LIB file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 %LINK-W-USEUNDEF, undefined symbol PQUEUE_POP referenced in psect $CODE offset %X000001B7 in module D1_LIB file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 %LINK-W-USEUNDEF, undefined symbol PITEM_FREE referenced in psect $CODE offset %X000001D2 in module D1_LIB file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 %LINK-W-USEUNDEF, undefined symbol PQUEUE_POP referenced in psect $CODE offset %X000001E1 in module D1_LIB file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 %LINK-W-USEUNDEF, undefined symbol PQUEUE_FREE referenced in psect $CODE offset %X000001FC in module D1_LIB file SSLROOT:[VAX_LIB]LIBSSL.OLB;3 ... ... ... I tried the publicly available WASD/SSL package (which also contains these libs), but got the same results. -- Bérczi Gábor http://www.gabucino.be/ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]