Compilation errors with 1.1.1b

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compilation errors with 1.1.1b

OpenSSL - User mailing list
Hi,

Earlier our application used OpenSSL version 1.0.2n. Now we wanted to upgrade to 1.1.1b.
After upgrade when i compile OpenSSL, i see the following errors:

Tried to generate the Makefile with both the ways mentioned below..

But getting compilation errors as attached mainly at places where DEPRECATEDIN_1_1_0 and DEPRECATEDIN_0_9_8 are used.


./config >> ../build.log \

            no-idea no-md2 no-md4 no-mdc2 no-rc2 no-rc5 \

            -DOPENSSL_SYSNAME_LINUX -DOPENSSL_USE_IPV6 -DOPENSSL_IMPLEMENTS_strncasecmp \

    -DOPENSSL_API_COMPAT=0x1010102fL \

            -ffunction-sections -fdata-sections \

            no-hw shared no-asm


./config >> ../build.log \

            no-idea no-md2 no-md4 no-mdc2 no-rc2 no-rc5 \

            -DOPENSSL_SYSNAME_LINUX -DOPENSSL_USE_IPV6 -DOPENSSL_IMPLEMENTS_strncasecmp \

    disable-deprecated \

            -ffunction-sections -fdata-sections \

            no-hw shared no-asm


Can you please suggest the possible solution to fix the errors? 

Regards,
Sravani

OpenSSL 1.1.1 Compilation Errors.txt (39K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Compilation errors with 1.1.1b

Christian Heimes
On 01/03/2019 12.34, Sravani Maddukuri via openssl-users wrote:

> Hi,
>
> Earlier our application used OpenSSL version 1.0.2n. Now we wanted to
> upgrade to 1.1.1b.
> After upgrade when i compile OpenSSL, i see the following errors:
>
> Tried to generate the Makefile with both the ways mentioned below..
>
> But getting compilation errors as attached mainly at places
> where DEPRECATEDIN_1_1_0 and DEPRECATEDIN_0_9_8 are used.

Your system is missing 'struct hostent':

error: 'struct hostent' declared inside parameter list [-Werror]

The structure is provided by netdb.h. Does the error go away if you put
"#include <netdb.h>" before you include any OpenSSL headers?

Christian