keengo99 / kangle

GNU General Public License v3.0
83 stars 24 forks source link

想测试下3.6.0一直编译报错,不知道怎么解决 #71

Closed 1265578519 closed 2 months ago

1265578519 commented 3 months ago

开-DZSTD_DIR编译选项也是一直报错,已确认文件在/usr/include/zstd.h

[root@CentOS-79-64-minimal ~]# cd /root
[root@CentOS-79-64-minimal ~]# ls
[root@CentOS-79-64-minimal ~]# git clone https://gitee.com/keengo/kangle
Cloning into 'kangle'...
remote: Enumerating objects: 6452, done.
remote: Counting objects: 100% (461/461), done.
remote: Compressing objects: 100% (454/454), done.
remote: Total 6452 (delta 240), reused 0 (delta 0), pack-reused 5991
Receiving objects: 100% (6452/6452), 4.67 MiB | 1.77 MiB/s, done.
Resolving deltas: 100% (4815/4815), done.
[root@CentOS-79-64-minimal ~]# cd kangle
[root@CentOS-79-64-minimal kangle]# git submodule update --init --recursive
Submodule 'kasync' (https://gitee.com/keengo/kasync) registered for path 'kasync'
Submodule 'khttpd' (https://gitee.com/keengo/khttpd) registered for path 'khttpd'
Cloning into 'kasync'...
remote: Enumerating objects: 1535, done.
remote: Counting objects: 100% (135/135), done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 1535 (delta 85), reused 98 (delta 69), pack-reused 1400
Receiving objects: 100% (1535/1535), 387.45 KiB | 546.00 KiB/s, done.
Resolving deltas: 100% (1125/1125), done.
Submodule path 'kasync': checked out 'd765145bc53fa53ee92717da7094206f6cd06c3c'
Submodule 'libucontext' (https://github.com/keengo99/libucontext) registered for path 'libucontext'
Cloning into 'libucontext'...
remote: Enumerating objects: 1691, done.
remote: Counting objects: 100% (310/310), done.
remote: Compressing objects: 100% (126/126), done.
remote: Total 1691 (delta 173), reused 289 (delta 168), pack-reused 1381 (from 1)
Receiving objects: 100% (1691/1691), 259.14 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1146/1146), done.
Submodule path 'kasync/libucontext': checked out '3dcc4cd9f67b4b473a55ed15c58104f5a516acfc'
Cloning into 'khttpd'...
remote: Enumerating objects: 1820, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 1820 (delta 0), reused 0 (delta 0), pack-reused 1812
Receiving objects: 100% (1820/1820), 416.44 KiB | 557.00 KiB/s, done.
Resolving deltas: 100% (1408/1408), done.
Submodule path 'khttpd': checked out '6be7ac04508a5eec0a4e61be3847835775ce9d3d'
[root@CentOS-79-64-minimal kangle]# mkdir build
[root@CentOS-79-64-minimal kangle]# cd build
[root@CentOS-79-64-minimal build]# cmake .. -DCMAKE_INSTALL_PREFIX=/vhs/kangle -DENABLE_BROTLI=ON -DENABLE_FCONTEXT=1
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PCRE: /usr/lib64/libpcre.so  
-- Looking for timegm
-- Looking for timegm - found
-- Looking for KSOCKET_SSL
-- Looking for KSOCKET_SSL - not found
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7") 
-- system is Linux
-- OPENSSL_DIR is 
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.0.2k")  
-- build with tls/ssl support /usr/include
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Boost.Context: architecture x86_64, binary format elf, ABI sysv, assembler gas, suffix .S, implementation fcontext
-- Looking for accept4
-- Looking for accept4 - found
-- Looking for memalign
-- Looking for memalign - found
-- Looking for setmntent
-- Looking for setmntent - found
-- /root/kangle/kasync/include/usr/include
-- build as static libary
-- KHTTP_LIBS OpenSSL::SSL;OpenSSL::Crypto;pthread;boost_context
-- Found SQLite3: /usr/include (found version "3.7.17") 
-- kangle version 3.6.0
-- Looking for 3 include files ksapi.h, ..., kforwin32.h
-- Looking for 3 include files ksapi.h, ..., kforwin32.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /root/kangle/build
[root@CentOS-79-64-minimal build]# make 
[  0%] Building C object khttpd/kasync/fcontext/CMakeFiles/boost_context.dir/src/fcontext.c.o
[  0%] Building ASM object khttpd/kasync/fcontext/CMakeFiles/boost_context.dir/src/asm/make_x86_64_sysv_elf_gas.S.o
[  0%] Building ASM object khttpd/kasync/fcontext/CMakeFiles/boost_context.dir/src/asm/jump_x86_64_sysv_elf_gas.S.o
[  1%] Building ASM object khttpd/kasync/fcontext/CMakeFiles/boost_context.dir/src/asm/ontop_x86_64_sysv_elf_gas.S.o
[  1%] Linking C static library libboost_context.a
[  1%] Built target boost_context
[  1%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KAutoBuffer.cpp.o
[  2%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KDechunkContext.cpp.o
[  2%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KDechunkEngine.cpp.o
[  2%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttp2.cpp.o
[  3%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttp2Sink.cpp.o
[  3%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttp2Table.cpp.o
[  3%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttp2Upstream.cpp.o
[  3%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttp2WriteBuffer.cpp.o
[  4%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttp3.cpp.o
[  4%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttp3Connection.cpp.o
[  4%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttp3Sink.cpp.o
[  5%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttpHeader.cpp.o
[  5%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttpKeyValue.cpp.o
[  5%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttpLib.cpp.o
[  5%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttpParser.cpp.o
[  6%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttpServer.cpp.o
[  6%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttpSink.cpp.o
[  6%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHttpUpstream.cpp.o
[  7%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHuffDecode.cpp.o
[  7%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KHuffEncode.cpp.o
[  7%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KPoolableSocketContainer.cpp.o
[  7%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KPreRequest.cpp.o
[  8%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KProxy.cpp.o
[  8%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KRequest.cpp.o
[  8%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KSink.cpp.o
[  9%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KSockPoolHelper.cpp.o
[  9%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KStream.cpp.o
[  9%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KStringBuf.cpp.o
[  9%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KTcpSink.cpp.o
[ 10%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KTcpUpstream.cpp.o
[ 10%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KTsUpstream.cpp.o
[ 10%] Building CXX object khttpd/CMakeFiles/khttpd.dir/src/KUpstream.cpp.o
[ 12%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kaddr.c.o
[ 12%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kasync_file.c.o
[ 12%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kasync_worker.c.o
[ 12%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kbuf.c.o
[ 13%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kconnection.c.o
[ 13%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kepoll_selector.c.o
[ 13%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kfiber.c.o
[ 14%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kfiber_sync.c.o
[ 14%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kfile.c.o
[ 14%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kgl_ssl.c.o
[ 14%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kiocp_selector.c.o
[ 15%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kiouring_selector.c.o
[ 15%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kkqueue_selector.c.o
[ 15%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/klib.c.o
[ 15%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/klog.c.o
[ 16%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kmalloc.c.o
[ 16%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kmalloc_debug.c.o
[ 16%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kmalloc_debug_win32.c.o
[ 17%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/krbtree.c.o
[ 17%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kselectable.c.o
[ 17%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kselector.c.o
[ 17%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kselector_manager.c.o
[ 18%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kserver.c.o
[ 18%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/ksocket.c.o
[ 18%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kssl_bio.c.o
[ 19%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kthread.c.o
[ 19%] Building CXX object khttpd/CMakeFiles/khttpd.dir/__/kasync/src/kudp.c.o
[ 19%] Linking CXX static library libkhttpd.a
[ 19%] Built target khttpd
[ 20%] Building CXX object CMakeFiles/kangle.dir/module/whm/KWhmService.cpp.o
[ 20%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmCallMap.cpp.o
[ 20%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmCommand.cpp.o
[ 21%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmContext.cpp.o
[ 21%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmDso.cpp.o
[ 21%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmExtend.cpp.o
[ 21%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmLog.cpp.o
[ 23%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmPackage.cpp.o
[ 23%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmPackageManage.cpp.o
[ 23%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmShell.cpp.o
[ 24%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmShellProcess.cpp.o
[ 24%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmShellSession.cpp.o
[ 24%] Building CXX object CMakeFiles/kangle.dir/module/whm/WhmUrl.cpp.o
[ 24%] Building CXX object CMakeFiles/kangle.dir/module/whm/dllmain.cpp.o
[ 25%] Building CXX object CMakeFiles/kangle.dir/module/whm/stdafx.cpp.o
[ 25%] Building CXX object CMakeFiles/kangle.dir/module/whm/whm.cpp.o
[ 25%] Building CXX object CMakeFiles/kangle.dir/module/whm/whmdso/core/core.cpp.o
[ 25%] Building CXX object CMakeFiles/kangle.dir/src/HttpCore.cpp.o
[ 26%] Building CXX object CMakeFiles/kangle.dir/src/HttpFiber.cpp.o
[ 26%] Building CXX object CMakeFiles/kangle.dir/src/KAccess.cpp.o
[ 26%] Building CXX object CMakeFiles/kangle.dir/src/KAccessDso.cpp.o
[ 27%] Building CXX object CMakeFiles/kangle.dir/src/KAccessDsoSupport.cpp.o
[ 27%] Building CXX object CMakeFiles/kangle.dir/src/KAccessParser.cpp.o
[ 27%] Building CXX object CMakeFiles/kangle.dir/src/KAcserver.cpp.o
[ 27%] Building CXX object CMakeFiles/kangle.dir/src/KAcserverManager.cpp.o
[ 28%] Building CXX object CMakeFiles/kangle.dir/src/KAjpFetchObject.cpp.o
[ 28%] Building CXX object CMakeFiles/kangle.dir/src/KAjpMessage.cpp.o
[ 28%] Building CXX object CMakeFiles/kangle.dir/src/KApacheVirtualHost.cpp.o
[ 29%] Building CXX object CMakeFiles/kangle.dir/src/KApiDso.cpp.o
[ 29%] Building CXX object CMakeFiles/kangle.dir/src/KApiEnv.cpp.o
[ 29%] Building CXX object CMakeFiles/kangle.dir/src/KApiFetchObject.cpp.o
[ 29%] Building CXX object CMakeFiles/kangle.dir/src/KApiPipeStream.cpp.o
[ 30%] Building CXX object CMakeFiles/kangle.dir/src/KApiProcess.cpp.o
[ 30%] Building CXX object CMakeFiles/kangle.dir/src/KApiRedirect.cpp.o
[ 30%] Building CXX object CMakeFiles/kangle.dir/src/KAsyncFetchObject.cpp.o
[ 31%] Building CXX object CMakeFiles/kangle.dir/src/KAsyncFileApi.cpp.o
[ 31%] Building CXX object CMakeFiles/kangle.dir/src/KAuthMark.cpp.o
[ 31%] Building CXX object CMakeFiles/kangle.dir/src/KBaseVirtualHost.cpp.o
[ 31%] Building CXX object CMakeFiles/kangle.dir/src/KBigObject.cpp.o
[ 32%] Building CXX object CMakeFiles/kangle.dir/src/KBigObjectContext.cpp.o
[ 32%] Building CXX object CMakeFiles/kangle.dir/src/KBigObjectStream.cpp.o
[ 32%] Building CXX object CMakeFiles/kangle.dir/src/KBrotli.cpp.o
[ 34%] Building CXX object CMakeFiles/kangle.dir/src/KBugReport.cpp.o
[ 34%] Building CXX object CMakeFiles/kangle.dir/src/KCache.cpp.o
[ 34%] Building CXX object CMakeFiles/kangle.dir/src/KCacheStream.cpp.o
[ 34%] Building CXX object CMakeFiles/kangle.dir/src/KCdnContainer.cpp.o
[ 35%] Building CXX object CMakeFiles/kangle.dir/src/KCdnRedirect.cpp.o
[ 35%] Building CXX object CMakeFiles/kangle.dir/src/KCdnRewriteMark.cpp.o
[ 35%] Building CXX object CMakeFiles/kangle.dir/src/KCgiEnv.cpp.o
[ 36%] Building CXX object CMakeFiles/kangle.dir/src/KChain.cpp.o
[ 36%] Building CXX object CMakeFiles/kangle.dir/src/KCloudIpAcl.cpp.o
[ 36%] Building CXX object CMakeFiles/kangle.dir/src/KCmdPoolableRedirect.cpp.o
[ 36%] Building CXX object CMakeFiles/kangle.dir/src/KCmdProcess.cpp.o
[ 37%] Building CXX object CMakeFiles/kangle.dir/src/KCompressStream.cpp.o
[ 37%] Building CXX object CMakeFiles/kangle.dir/src/KConfig.cpp.o
[ 37%] Building CXX object CMakeFiles/kangle.dir/src/KConfigBuilder.cpp.o
[ 38%] Building CXX object CMakeFiles/kangle.dir/src/KConfigParser.cpp.o
[ 38%] Building CXX object CMakeFiles/kangle.dir/src/KConfigTree.cpp.o
[ 38%] Building CXX object CMakeFiles/kangle.dir/src/KConnectionLimit.cpp.o
[ 38%] Building CXX object CMakeFiles/kangle.dir/src/KContentType.cpp.o
[ 39%] Building CXX object CMakeFiles/kangle.dir/src/KContext.cpp.o
[ 39%] Building CXX object CMakeFiles/kangle.dir/src/KDefaultFetchObject.cpp.o
[ 39%] Building CXX object CMakeFiles/kangle.dir/src/KDirectoryFetchObject.cpp.o
[ 40%] Building CXX object CMakeFiles/kangle.dir/src/KDiskCache.cpp.o
[ 40%] Building CXX object CMakeFiles/kangle.dir/src/KDiskCacheIndex.cpp.o
[ 40%] Building CXX object CMakeFiles/kangle.dir/src/KDiskCacheStream.cpp.o
[ 40%] Building CXX object CMakeFiles/kangle.dir/src/KDsoAsyncFetchObject.cpp.o
[ 41%] Building CXX object CMakeFiles/kangle.dir/src/KDsoConfigParser.cpp.o
[ 41%] Building CXX object CMakeFiles/kangle.dir/src/KDsoExtend.cpp.o
[ 41%] Building CXX object CMakeFiles/kangle.dir/src/KDsoExtendManage.cpp.o
[ 42%] Building CXX object CMakeFiles/kangle.dir/src/KDsoFilter.cpp.o
[ 42%] Building CXX object CMakeFiles/kangle.dir/src/KDsoModule.cpp.o
[ 42%] Building CXX object CMakeFiles/kangle.dir/src/KDsoRedirect.cpp.o
[ 42%] Building CXX object CMakeFiles/kangle.dir/src/KDynamicListen.cpp.o
[ 43%] Building CXX object CMakeFiles/kangle.dir/src/KDynamicString.cpp.o
[ 43%] Building CXX object CMakeFiles/kangle.dir/src/KEnvInterface.cpp.o
[ 43%] Building CXX object CMakeFiles/kangle.dir/src/KExtendProgram.cpp.o
[ 43%] Building CXX object CMakeFiles/kangle.dir/src/KFastcgiFetchObject.cpp.o
[ 45%] Building CXX object CMakeFiles/kangle.dir/src/KFastcgiUtils.cpp.o
[ 45%] Building CXX object CMakeFiles/kangle.dir/src/KFetchBigObject.cpp.o
[ 45%] Building CXX object CMakeFiles/kangle.dir/src/KFetchObject.cpp.o
[ 46%] Building CXX object CMakeFiles/kangle.dir/src/KFileName.cpp.o
[ 46%] Building CXX object CMakeFiles/kangle.dir/src/KGeoMark.cpp.o
[ 46%] Building CXX object CMakeFiles/kangle.dir/src/KGzip.cpp.o
[ 46%] Building CXX object CMakeFiles/kangle.dir/src/KHtAccess.cpp.o
[ 47%] Building CXX object CMakeFiles/kangle.dir/src/KHtRewriteModule.cpp.o
[ 47%] Building CXX object CMakeFiles/kangle.dir/src/KHttpAuth.cpp.o
[ 47%] Building CXX object CMakeFiles/kangle.dir/src/KHttpBasicAuth.cpp.o
[ 48%] Building CXX object CMakeFiles/kangle.dir/src/KHttpDigestAuth.cpp.o
[ 48%] Building CXX object CMakeFiles/kangle.dir/src/KHttpExt.cpp.o
[ 48%] Building CXX object CMakeFiles/kangle.dir/src/KHttpField.cpp.o
[ 48%] Building CXX object CMakeFiles/kangle.dir/src/KHttpFilterDso.cpp.o
[ 49%] Building CXX object CMakeFiles/kangle.dir/src/KHttpManage.cpp.o
[ 49%] Building CXX object CMakeFiles/kangle.dir/src/KHttpObject.cpp.o
[ 49%] Building CXX object CMakeFiles/kangle.dir/src/KHttpObjectApi.cpp.o
[ 50%] Building CXX object CMakeFiles/kangle.dir/src/KHttpObjectHash.cpp.o
[ 50%] Building CXX object CMakeFiles/kangle.dir/src/KHttpObjectSwaping.cpp.o
[ 50%] Building CXX object CMakeFiles/kangle.dir/src/KHttpPost.cpp.o
[ 50%] Building CXX object CMakeFiles/kangle.dir/src/KHttpProxyFetchObject.cpp.o
[ 51%] Building CXX object CMakeFiles/kangle.dir/src/KHttpRequest.cpp.o
[ 51%] Building CXX object CMakeFiles/kangle.dir/src/KHttpResponseParser.cpp.o
[ 51%] Building CXX object CMakeFiles/kangle.dir/src/KHttpTransfer.cpp.o
[ 52%] Building CXX object CMakeFiles/kangle.dir/src/KISAPIServiceProvider.cpp.o
[ 52%] Building CXX object CMakeFiles/kangle.dir/src/KIpList.cpp.o
[ 52%] Building CXX object CMakeFiles/kangle.dir/src/KIpMap.cpp.o
[ 52%] Building CXX object CMakeFiles/kangle.dir/src/KIpSpeedLimitMark.cpp.o
[ 53%] Building CXX object CMakeFiles/kangle.dir/src/KLang.cpp.o
[ 53%] Building CXX object CMakeFiles/kangle.dir/src/KLangParser.cpp.o
[ 53%] Building CXX object CMakeFiles/kangle.dir/src/KLineFile.cpp.o
[ 54%] Building CXX object CMakeFiles/kangle.dir/src/KListenConfigParser.cpp.o
[ 54%] Building CXX object CMakeFiles/kangle.dir/src/KLogDrill.cpp.o
[ 54%] Building CXX object CMakeFiles/kangle.dir/src/KLogElement.cpp.o
[ 54%] Building CXX object CMakeFiles/kangle.dir/src/KLogHandle.cpp.o
[ 56%] Building CXX object CMakeFiles/kangle.dir/src/KLogManage.cpp.o
[ 56%] Building CXX object CMakeFiles/kangle.dir/src/KMapRedirectMark.cpp.o
[ 56%] Building CXX object CMakeFiles/kangle.dir/src/KMultiAcserver.cpp.o
[ 57%] Building CXX object CMakeFiles/kangle.dir/src/KMultiHostAcl.cpp.o
[ 57%] Building CXX object CMakeFiles/kangle.dir/src/KObjectList.cpp.o
[ 57%] Building CXX object CMakeFiles/kangle.dir/src/KPathRedirect.cpp.o
[ 57%] Building CXX object CMakeFiles/kangle.dir/src/KPerIpAcl.cpp.o
[ 58%] Building CXX object CMakeFiles/kangle.dir/src/KPipeStream.cpp.o
[ 58%] Building CXX object CMakeFiles/kangle.dir/src/KProcess.cpp.o
[ 58%] Building CXX object CMakeFiles/kangle.dir/src/KProcessManage.cpp.o
[ 59%] Building CXX object CMakeFiles/kangle.dir/src/KPushGate.cpp.o
[ 59%] Building CXX object CMakeFiles/kangle.dir/src/KQueueMark.cpp.o
[ 59%] Building CXX object CMakeFiles/kangle.dir/src/KRedirectMark.cpp.o
[ 59%] Building CXX object CMakeFiles/kangle.dir/src/KReg.cpp.o
[ 60%] Building CXX object CMakeFiles/kangle.dir/src/KReportIp.cpp.o
[ 60%] Building CXX object CMakeFiles/kangle.dir/src/KRequestQueue.cpp.o
[ 60%] Building CXX object CMakeFiles/kangle.dir/src/KRewriteMark.cpp.o
[ 61%] Building CXX object CMakeFiles/kangle.dir/src/KRewriteMarkEx.cpp.o
[ 61%] Building CXX object CMakeFiles/kangle.dir/src/KSSLSniContext.cpp.o
[ 61%] Building CXX object CMakeFiles/kangle.dir/src/KSboFile.cpp.o
[ 61%] Building CXX object CMakeFiles/kangle.dir/src/KSequence.cpp.o
[ 62%] Building CXX object CMakeFiles/kangle.dir/src/KServiceProvider.cpp.o
[ 62%] Building CXX object CMakeFiles/kangle.dir/src/KSharedBigObject.cpp.o
[ 62%] Building CXX object CMakeFiles/kangle.dir/src/KSimulateRequest.cpp.o
[ 62%] Building CXX object CMakeFiles/kangle.dir/src/KSingleAcserver.cpp.o
[ 63%] Building CXX object CMakeFiles/kangle.dir/src/KSingleProgram.cpp.o
[ 63%] Building CXX object CMakeFiles/kangle.dir/src/KSocketApi.cpp.o
[ 63%] Building CXX object CMakeFiles/kangle.dir/src/KSocketBuffer.cpp.o
[ 64%] Building CXX object CMakeFiles/kangle.dir/src/KSqliteDiskCacheIndex.cpp.o
[ 64%] Building CXX object CMakeFiles/kangle.dir/src/KStaticFetchObject.cpp.o
[ 64%] Building CXX object CMakeFiles/kangle.dir/src/KSubVirtualHost.cpp.o
[ 64%] Building CXX object CMakeFiles/kangle.dir/src/KTable.cpp.o
[ 65%] Building CXX object CMakeFiles/kangle.dir/src/KTargetRate.cpp.o
[ 65%] Building CXX object CMakeFiles/kangle.dir/src/KTempFile.cpp.o
[ 65%] Building CXX object CMakeFiles/kangle.dir/src/KTimeMatch.cpp.o
[ 67%] Building CXX object CMakeFiles/kangle.dir/src/KTimer.cpp.o
[ 67%] Building CXX object CMakeFiles/kangle.dir/src/KUrlParser.cpp.o
[ 67%] Building CXX object CMakeFiles/kangle.dir/src/KUrlValue.cpp.o
[ 67%] Building CXX object CMakeFiles/kangle.dir/src/KVary.cpp.o
[ 68%] Building CXX object CMakeFiles/kangle.dir/src/KVirtualHost.cpp.o
[ 68%] Building CXX object CMakeFiles/kangle.dir/src/KVirtualHostContainer.cpp.o
[ 68%] Building CXX object CMakeFiles/kangle.dir/src/KVirtualHostDatabase.cpp.o
[ 69%] Building CXX object CMakeFiles/kangle.dir/src/KVirtualHostManage.cpp.o
[ 69%] Building CXX object CMakeFiles/kangle.dir/src/KVirtualHostProcess.cpp.o
[ 69%] Building CXX object CMakeFiles/kangle.dir/src/KWhiteList.cpp.o
[ 69%] Building CXX object CMakeFiles/kangle.dir/src/KWinCgiEnv.cpp.o
[ 70%] Building CXX object CMakeFiles/kangle.dir/src/KWriteBack.cpp.o
[ 70%] Building CXX object CMakeFiles/kangle.dir/src/KWriteBackManager.cpp.o
[ 70%] Building CXX object CMakeFiles/kangle.dir/src/KXmlSupport.cpp.o
[ 71%] Building CXX object CMakeFiles/kangle.dir/src/KZstd.cpp.o
[ 71%] Building CXX object CMakeFiles/kangle.dir/src/cache.cpp.o
[ 71%] Building CXX object CMakeFiles/kangle.dir/src/crash.cpp.o
[ 71%] Building CXX object CMakeFiles/kangle.dir/src/directory.cpp.o
[ 72%] Building CXX object CMakeFiles/kangle.dir/src/garbage_c.cpp.o
[ 72%] Building CXX object CMakeFiles/kangle.dir/src/kmd5.cpp.o
[ 72%] Building CXX object CMakeFiles/kangle.dir/src/log.cpp.o
[ 73%] Building CXX object CMakeFiles/kangle.dir/src/main.cpp.o
[ 73%] Building CXX object CMakeFiles/kangle.dir/src/process.cpp.o
[ 73%] Building CXX object CMakeFiles/kangle.dir/src/ssl_utils.cpp.o
[ 73%] Building CXX object CMakeFiles/kangle.dir/src/test.cpp.o
[ 74%] Building CXX object CMakeFiles/kangle.dir/src/time_utils.cpp.o
[ 74%] Building CXX object CMakeFiles/kangle.dir/src/utils.cpp.o
[ 74%] Building CXX object CMakeFiles/kangle.dir/src/win_iconv.cpp.o
[ 75%] Building CXX object CMakeFiles/kangle.dir/src/windows_service.cpp.o
[ 75%] Building CXX object CMakeFiles/kangle.dir/src/work.cpp.o
[ 75%] Building CXX object CMakeFiles/kangle.dir/khttpd/davlib/KXml.cpp.o
[ 75%] Building CXX object CMakeFiles/kangle.dir/khttpd/davlib/KXmlDocument.cpp.o
[ 76%] Building CXX object CMakeFiles/kangle.dir/khttpd/davlib/KXmlContext.cpp.o
[ 76%] Building CXX object CMakeFiles/kangle.dir/khttpd/davlib/KXmlException.cpp.o
[ 76%] Linking CXX executable kangle
/usr/bin/ld: cannot find -lbrotlienc-static
/usr/bin/ld: cannot find -lbrotlicommon-static
collect2: error: ld returned 1 exit status
make[2]: *** [kangle] Error 1
make[1]: *** [CMakeFiles/kangle.dir/all] Error 2
make: *** [all] Error 2
[root@CentOS-79-64-minimal build]# make install
[  1%] Built target boost_context
[ 19%] Built target khttpd
[ 19%] Linking CXX executable kangle
/usr/bin/ld: cannot find -lbrotlienc-static
/usr/bin/ld: cannot find -lbrotlicommon-static
collect2: error: ld returned 1 exit status
make[2]: *** [kangle] Error 1
make[1]: *** [CMakeFiles/kangle.dir/all] Error 2
make: *** [all] Error 2
[root@CentOS-79-64-minimal build]# 
1265578519 commented 3 months ago

目前已知不启用-DENABLE_BROTLI和-DZSTD_DIR编译选项,可以正常编译,一旦cmake中包含这两个选项就会失败,成功编译的信息如下

[ 98%] Building CXX object CMakeFiles/kangle.dir/src/windows_service.cpp.o
[ 98%] Building CXX object CMakeFiles/kangle.dir/src/work.cpp.o
[ 98%] Building CXX object CMakeFiles/kangle.dir/khttpd/davlib/KXml.cpp.o
[ 98%] Building CXX object CMakeFiles/kangle.dir/khttpd/davlib/KXmlDocument.cpp.o
[100%] Building CXX object CMakeFiles/kangle.dir/khttpd/davlib/KXmlContext.cpp.o
[100%] Building CXX object CMakeFiles/kangle.dir/khttpd/davlib/KXmlException.cpp.o
[100%] Linking CXX executable kangle
[100%] Built target kangle
[root@CentOS-79-64-minimal build]# make install
[  1%] Built target boost_context
[ 19%] Built target khttpd
[ 76%] Built target kangle
[ 83%] Built target extworker
[ 84%] Built target vhs_sqlite
[ 86%] Built target testdso
[ 89%] Built target filter
[ 91%] Built target davlib
[ 91%] Built target server_example
[ 92%] Built target webdav_client_example
[ 98%] Built target webdav
[100%] Built target test_child
Install the project...
-- Install configuration: ""
-- Installing: /vhs/kangle/bin/extworker
-- Set runtime path of "/vhs/kangle/bin/extworker" to ""
-- Installing: /vhs/kangle/bin/vhs_sqlite.so
-- Set runtime path of "/vhs/kangle/bin/vhs_sqlite.so" to ""
-- Installing: /vhs/kangle/bin/kangle
-- Set runtime path of "/vhs/kangle/bin/kangle" to ""
-- Installing: /vhs/kangle/include/ksapi.h
-- Installing: /vhs/kangle/include/kfeature.h
-- Installing: /vhs/kangle/include/kforwin32.h
-- Installing: /vhs/kangle/include/kasync_config.h
-- Installing: /vhs/kangle/include/khttp.h
-- Installing: /vhs/kangle/webadmin
-- Installing: /vhs/kangle/webadmin/core.whm
-- Installing: /vhs/kangle/webadmin/main.css
-- Installing: /vhs/kangle/webadmin/lang_tw.xml
-- Installing: /vhs/kangle/webadmin/lang.xml
-- Installing: /vhs/kangle/webadmin/obj.html
-- Installing: /vhs/kangle/webadmin/lang_en.xml
-- Installing: /vhs/kangle/webadmin/logo.gif
-- Installing: /vhs/kangle/webadmin/lang_zh.xml
-- Installing: /vhs/kangle/etc/config-default.xml
-- Installing: /vhs/kangle/bin/webdav.so
-- Installing: /vhs/kangle/bin/test_child
-- Set runtime path of "/vhs/kangle/bin/test_child" to ""
[root@CentOS-79-64-minimal build]# /vhs/kangle/bin/kangle -v
kangle/3.6.0(web) build with support: ipv6 ssl[SNA]  h2 proxy big-object-206 disk-cache debug
pcre version: 8.32 2012-11-30
openssl version: OpenSSL 1.0.2k-fips  26 Jan 2017
[root@CentOS-79-64-minimal build]# 
1265578519 commented 2 months ago

已修复