winshining / nginx-http-flv-module

A media streaming server based on nginx-rtmp-module. In addtion to the features nginx-rtmp-module provides, HTTP-FLV, GOP cache, VHosts (one IP for multi domain names) and JSON style statistics are supported now.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make error

devishell opened this issue · comments

Expected behavior / 期望行为

Actual behavior / 实际行为

sudo ./configure --prefix=/usr/local/nginx --add-module=/Users/ting/nginx-1.22.1/nginx-http-flv-module --with-openssl=/Users/ting/openssl-1.1.1q --with-cc-opt="-Wno-error=implicit-fallthrough"
sudo make
...
...
...
cc -I. -Iinclude -arch x86_64 -O3 -Wall -DNDEBUG -MMD -MF test/tls13encryptiontest.d.tmp -MT test/tls13encryptiontest.o -c -o test/tls13encryptiontest.o test/tls13encryptiontest.c
rm -f test/tls13encryptiontest
${LDCMD:-cc} -arch x86_64 -O3 -Wall -L. -Wl,-search_paths_first
-o test/tls13encryptiontest test/tls13encryptiontest.o
libssl.a test/libtestutil.a -lcrypto
cc -I. -Iinclude -Iapps -arch x86_64 -O3 -Wall -DNDEBUG -MMD -MF test/uitest.d.tmp -MT test/uitest.o -c -o test/uitest.o test/uitest.c
rm -f test/uitest
${LDCMD:-cc} -arch x86_64 -O3 -Wall -L. -Wl,-search_paths_first
-o test/uitest test/uitest.o
apps/libapps.a -lssl test/libtestutil.a -lcrypto
cc -Iinclude -arch x86_64 -O3 -Wall -DNDEBUG -MMD -MF test/v3ext.d.tmp -MT test/v3ext.o -c -o test/v3ext.o test/v3ext.c
test/v3ext.c:201:24: error: implicitly declaring library function 'memcmp' with type 'int (const void *, const
void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
if (!TEST_true(memcmp(ip1->data, ip2->data, ip1->length) <= 0))
^
test/v3ext.c:201:24: note: include the header <string.h> or explicitly provide a declaration for 'memcmp'
1 error generated.
make[3]: *** [test/v3ext.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [/Users/ting/openssl-1.1.1q/.openssl/include/openssl/ssl.h] Error 2
make: *** [build] Error 2

OS and Nginx version / 操作系统和 Nginx 版本号

MacOS 10.15.7 / nginx 1.22.1(not installed)

Configuration file / 配置文件

Steps to reproduce the behavior / 复现问题步骤

sudo ./configure --prefix=/usr/local/nginx --add-module=/Users/ting/nginx-1.22.1/nginx-http-flv-module --with-openssl=/Users/ting/openssl-1.1.1q
sudo make