3

このスクリプトを使用して、カスタム openssl »libressl« で nginx をコンパイルしようとしています

libressl 2.1.1 を使用すると、すべて正常に動作します。問題は、libressl 2.1.1 にセキュリティ上の問題があり、新しいリリースで解決されていることです。
ただし、ビルドを libressl 2.1.2 または libressl 2.1.3 (最新バージョン) で動作させることができません。

私が得る問題:

..
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /tmp/build/pcre-8.36 -I /tmp/build/libressl-2.1.2/.openssl/include -I objs \
        -o objs/src/core/nginx.o \
        src/core/nginx.c
In file included from /usr/include/string.h:635:0,
                 from /tmp/build/libressl-2.1.2/.openssl/include/string.h:6,
                 from src/os/unix/ngx_linux_config.h:27,
                 from src/core/ngx_config.h:26,
                 from src/core/nginx.c:8:
/tmp/build/libressl-2.1.2/.openssl/include/string.h:29:8: error: expected identifier or ‘(’ before ‘__extension__’
 char * strndup(const char *str, size_t maxlen);
        ^
make[1]: *** [objs/src/core/nginx.o] Error 1
make[1]: Leaving directory `/tmp/build/nginx-1.7.9'
make: *** [build] Error 2
All done.
..

問題とその解決方法は何ですか?
助けてくれてありがとう。

4

2 に答える 2