ShadowsocksR-Live / shadowsocksr-native

翻墙 从容穿越党国敏感日 ShadowsocksR (SSRoT) native implementation for all platforms, GFW terminator
https://github.com/ShadowsocksR-Live/shadowsocksr-native/wiki
GNU General Public License v3.0
2.74k stars 762 forks source link

build error #220

Closed wonderful27x closed 2 years ago

wonderful27x commented 2 years ago

Please answer these questions before submitting your issue. Thanks!

What version of shadowsocks-native are you using?

use auto install, latest commit hash is 255e198687bce23f639f87a23f6feeab085dc628 of master

What operating system are you using?

What did you do?

wget --no-check-certificate https://raw.githubusercontent.com/ShadowsocksR-Live/shadowsocksr-native/master/install/ssrn-ot-install.sh chmod +x ssrn-ot-install.sh ./ssrn-ot-install.sh 2>&1 | tee ssr-n-ot.log

What did you expect to see?

success for install

What did you see instead?

[ 81%] Building C object src/CMakeFiles/ssr-client.dir/ssr_executive.c.o
In file included from /root/wonderful/shadowsocks-native/shadowsocksr-native/depends/cstl/inc/c_stl_lib.h:68:0,
                 from /root/wonderful/shadowsocks-native/shadowsocksr-native/src/ssr_executive.c:43:
/root/wonderful/shadowsocks-native/shadowsocksr-native/depends/cstl/inc/c_set.h:42:13: error: conflicting types for ‘cstl_set_container_traverse’
 extern void cstl_set_container_traverse(struct cstl_set *set, fn_cstl_set_iter fn, void *p);
             ^
In file included from /root/wonderful/shadowsocks-native/shadowsocksr-native/src/ssr_executive.c:37:0:
/root/wonderful/shadowsocks-native/shadowsocksr-native/src/ssr_executive.h:118:6: note: previous declaration of ‘cstl_set_container_traverse’ was here
 void cstl_set_container_traverse(struct cstl_set *set, void(*fn)(struct cstl_set *set, const void *obj, bool *stop, void *p), void *p);
      ^
make[2]: *** [src/CMakeFiles/ssr-client.dir/ssr_executive.c.o] Error 1
make[1]: *** [src/CMakeFiles/ssr-client.dir/all] Error 2
make: *** [all] Error 2
/bin/cp: cannot stat ‘./shadowsocksr-native/src/ssr-server’: No such file or directory
[Info] firewall set start...
[Warning] firewalld looks like not running or not installed, please enable port 443 manually if necessary.
[Info] firewall set completed...
ShadowsocksR Native install failed, please contact @ssrlive
[Error]  Installing ShadowsocksR Native Failed 

Besides

there is nothing wrong with running test.sh of

rm -rf ssrn
git clone --recursive https://github.com/ShadowsocksR-Live/shadowsocksr-native.git ssrn
mkdir ssrn/build && cd ssrn/build
cmake .. && make
cd ../..

What is your config in detail (with all sensitive info masked)?