Comments (9)
你把那两个函数的
return 0;
改成
return nret;
好了
最近在改个大东西,不能提交
from hetao.
[root@centos-512mb-nyc3-01 hetao]# make -f makefile.Linux install
make[1]: Entering directory `/root/hetao/src'
gcc -g -fPIC -O2 -Wall -Werror -fno-strict-aliasing -I. -c fasterhttp.c
In file included from fasterhttp.c:1:0:
fasterhttp.h:37:25: fatal error: openssl/ssl.h: No such file or directory
#include "openssl/ssl.h"
^
compilation terminated.
make[1]: *** [fasterhttp.o] Error 1
make[1]: Leaving directory `/root/hetao/src'
make: *** [install] Error 1
还是等你改好了我再试试吧
from hetao.
今晚很顺利,WINDOWS版本终于支持HTTPS了。
顺便把你前面的问题也解决了。
你后面的问题是因为你没有安装openssl,hetao的SSL依赖于openssl。你安装上openssl和openssl-devel再编译试试 ^_^
from hetao.
最好在文档里把 依赖的库也都说明一下。
然后 LOGC.c 的问题还是在。
然后
[root@centos-512mb-sgp1-01 hetao]# make -f makefile.Linux install
make[1]: Entering directory `/root/hetao/src'
gcc -g -fPIC -O2 -Wall -Werror -fno-strict-aliasing -I. -c IDL_hetao_conf.dsc.c
IDL_hetao_conf.dsc.c: In function ‘CallbackOnJsonNode_hetao_conf’:
IDL_hetao_conf.dsc.c:1090:7: error: subscripted value is neither array nor pointer nor vector
index[0] = 0 ;
^
IDL_hetao_conf.dsc.c:1087:6: error: variable ‘index’ set but not used [-Werror=unused-but-set-variable]
int index = 10;
^
cc1: all warnings being treated as errors
make[1]: *** [IDL_hetao_conf.dsc.o] Error 1
make[1]: Leaving directory `/root/hetao/src'
make: *** [install] Error 1
又有新问题
from hetao.
IDL_hetao_conf.dsc.c是自动生成的,某些情况下可能会增加生成使用到index的代码。
你把编译选项-Werror=unused-but-set-variable去掉吧,在makefile.Linux里。
from hetao.
gcc -g -fPIC -O2 -Wall -o minihetao minihetao.o ListenSession.o LOGC.o rbtree.o list.o fasterjson.o fasterhttp.o IDL_hetao_conf.dsc.o Util.o Config.o Envirment.o MonitorProcess.o WorkerProcess.o WorkerThread.o TimerThread.o OnAcceptingSocket.o OnAcceptingSslSocket.o OnReceivingSocket.o OnSendingSocket.o ProcessHttpRequest.o OnConnectingForward.o OnConnectingSslForward.o OnSendingForward.o OnReceivingForward.o VirtualHostHash.o HttpSession.o HtmlCacheSession.o HtmlCacheEventHander.o HtmlCacheWdTree.o HtmlCachePathfilenameTree.o HttpSessionTimeoutTree.o HttpSessionElapseTree.o LeastConnectionCountTree.o MimeTypeHash.o RewriteUrl.o IpLimitsHash.o -L. -lpcre -lpthread -lssl -lz
/bin/ld: OnAcceptingSslSocket.o: undefined reference to symbol 'X509_get_subject_name@@libcrypto.so.10'
/bin/ld: note: 'X509_get_subject_name@@libcrypto.so.10' is defined in DSO /lib64/libcrypto.so.10 so try adding it to the linker command line
/lib64/libcrypto.so.10: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [minihetao] Error 1
make[1]: Leaving directory `/root/hetao/src'
make: *** [install] Error 1
from hetao.
你的openssl环境和我的不一样,我重整了 makefile*,你再试试
from hetao.
这下编译倒是过了,不过 install 的过程肯定有问题
mkdir -p /var/hetao
mkdir -p /var/hetao/log
cp -rf hetaocheck /usr/local/bin/
cp -rf minihetao /usr/local/bin/
cp -rf hetao /usr/local/bin/
cp -rf ../bin/hetao.sh /usr/local/bin/
mkdir -p /etc/hetao
cp -rf ../conf/hetao.conf /etc/hetao/
cp: cannot stat ‘../conf/hetao.conf’: No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/root/hetao/src'
make: *** [install] Error 1
from hetao.
git pull
再试试?
from hetao.
Related Issues (5)
- 有详细的文档么? HOT 3
- reserved identifier violation HOT 8
- Fix signal handler HOT 4
- Windows 上无法启动 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hetao.