Welcome! Log In Create A New Profile

Advanced

Re: [nginx] can't compile with debug and openssl

March 03, 2011 03:18AM
On Mar 3, 2011, at 11:05 , Jérôme Loyet wrote:

> Hi,
>
> I'm having a problem compiling nginx with debug and ssl :
>
> make -f objs/Makefile
> make[1]: Entering directory `/misc/distrib/BUILD/nginx-0.8.54'
> gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter
> -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I
> src/core -I src/event -I src/event/modules -I src/os/unix -I
> /usr/include/libxml2 -I objs \
> -o objs/src/event/ngx_event_openssl.o \
> src/event/ngx_event_openssl.c
> cc1: warnings being treated as errors
> src/event/ngx_event_openssl.c: In function ‘ngx_ssl_handshake’:
> src/event/ngx_event_openssl.c:569: error: assignment discards
> qualifiers from pointer target type
> make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1
> make[1]: Leaving directory `/misc/distrib/BUILD/nginx-0.8.54'
> make: *** [build] Error 2
>
>
> I'm using openssl-1.0.0 from redhat 6.
>
> The problem comes from src/event/ngx_event_openssl.c arround line 564
>
> #if OPENSSL_VERSION_NUMBER >= 0x1000000fL
> const
> #endif
>
> In /usr/include/openssl/opensslv.h, OPENSSL_VERSION_NUMBER is defined as this:
>
> #define OPENSSL_VERSION_NUMBER 0x10000003L
>
> I don't know if redhat has backported some patch from newer release of
> openssl or if we should just change the #if to >= 0x10000003L (at
> least).
>
> Hope it helps

This has been fixed in 0.9.4.
0x10000000L is correct value.


--
Igor Sysoev
http://sysoev.ru/en/


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] can't compile with debug and openssl

Jérôme Loyet 2437 March 03, 2011 03:06AM

Re: [nginx] can't compile with debug and openssl

Igor Sysoev 870 March 03, 2011 03:18AM

Re: [nginx] can't compile with debug and openssl

Jérôme Loyet 542 March 03, 2011 03:18AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready