[openssl-users] Migrating to openssl 1.1.0
Richard Levitte
levitte at openssl.org
Wed Mar 21 03:39:37 UTC 2018
It would help if you showed us the exact command that ended up with
that bunch of errors... however, having seen this before, I'm going
to venture a guess that you either didn't include '-lssl' in your
linking command, or got the order between '-lcrypto' and '-lssl'
wrong.
However, seeing the actual command will help clear this, rather than
having to guss...
Cheers,
Richard
In message <AT5PR8401MB10908F2008C51B2F168C0F7287AB0 at AT5PR8401MB1090.NAMPRD84.PROD.OUTLOOK.COM> on Tue, 20 Mar 2018 21:08:07 +0000, "Beecherla, Hemantha" <hemantha.beecherla at hpe.com> said:
hemantha.beecherla> Hi There,
hemantha.beecherla>
hemantha.beecherla> I am trying to migrate my application(OpenHPI) to
hemantha.beecherla> Openssl 1.1.0g-2, and getting few linker error
hemantha.beecherla> when I compile my sources with openssl 1.1.0g-2.
hemantha.beecherla>
hemantha.beecherla> I checked the ssl header files in
hemantha.beecherla> /usr/include/openssl/ and I can clearly see this
hemantha.beecherla> functions visible in the header files.
hemantha.beecherla>
hemantha.beecherla> Also checked the openssl 1.1.0 man pages for this
hemantha.beecherla> function and found that there are no changes to
hemantha.beecherla> these functions.
hemantha.beecherla>
hemantha.beecherla> But when I compile my sources I am getting below
hemantha.beecherla> errors, could you please guide me how to fix this
hemantha.beecherla> errors.
hemantha.beecherla>
hemantha.beecherla> Thank you very much in advance.
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_CTX_free'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_get_error'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_get_fd'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_read'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_shutdown'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to
hemantha.beecherla> `OPENSSL_init_ssl'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_CTX_new'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `BIO_f_ssl'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to
hemantha.beecherla> `TLS_client_method'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to
hemantha.beecherla> `SSL_CTX_set_default_verify_paths'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to
hemantha.beecherla> `SSL_CTX_set_options'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_connect'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_free'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_write'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_set_fd'
hemantha.beecherla>
hemantha.beecherla> /home/hemanth/hemanth/trunk/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_new'
hemantha.beecherla>
hemantha.beecherla> collect2: error: ld returned 1 exit status
hemantha.beecherla>
hemantha.beecherla> make[3]: *** [openhpid] Error 1
hemantha.beecherla>
hemantha.beecherla> make[2]: *** [all-recursive] Error 1
hemantha.beecherla>
hemantha.beecherla> make[1]: *** [all-recursive] Error 1
hemantha.beecherla>
hemantha.beecherla> make: *** [all] Error 2
hemantha.beecherla>
hemantha.beecherla> Thanks,
hemantha.beecherla>
hemantha.beecherla> Hemantha Reddy
hemantha.beecherla>
More information about the openssl-users
mailing list