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 763 forks source link

Compile error #25

Closed mia0x75 closed 6 years ago

mia0x75 commented 6 years ago

Fedora 27

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)
[ 85%] Building C object src/CMakeFiles/ssr-local.dir/obfs/http_simple.c.o
In file included from /src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:7:0:
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.h:10:34: warning: ‘struct obfs_t’ declared inside parameter list will not be visible outside of this definition or declaration
 void http_simple_new_obfs(struct obfs_t *obfs);
                                  ^~~~~~
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.h:11:33: warning: ‘struct obfs_t’ declared inside parameter list will not be visible outside of this definition or declaration
 void http_simple_dispose(struct obfs_t *obfs);
                                 ^~~~~~
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.h:13:41: warning: ‘struct obfs_t’ declared inside parameter list will not be visible outside of this definition or declaration
 size_t http_simple_client_encode(struct obfs_t *obfs, char **pencryptdata, size_t datalength, size_t* capacity);
                                         ^~~~~~
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.h:14:42: warning: ‘struct obfs_t’ declared inside parameter list will not be visible outside of this definition or declaration
 ssize_t http_simple_client_decode(struct obfs_t *obfs, char **pencryptdata, size_t datalength, size_t* capacity, int *needsendback);
                                          ^~~~~~
In file included from /src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:7:0:
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.h:16:39: warning: ‘struct obfs_t’ declared inside parameter list will not be visible outside of this definition or declaration
 size_t http_post_client_encode(struct obfs_t *obfs, char **pencryptdata, size_t datalength, size_t* capacity);
                                       ^~~~~~
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:44:6: error: conflicting types for ‘http_simple_new_obfs’
 void http_simple_new_obfs(struct obfs_t * obfs) {
      ^~~~~~~~~~~~~~~~~~~~
In file included from /src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:7:0:
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.h:10:6: note: previous declaration of ‘http_simple_new_obfs’ was here
 void http_simple_new_obfs(struct obfs_t *obfs);
      ^~~~~~~~~~~~~~~~~~~~
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c: In function ‘http_simple_new_obfs’:
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:50:19: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     obfs->dispose = http_simple_dispose;
                   ^
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:51:25: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     obfs->client_encode = http_simple_client_encode;
                         ^
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:52:25: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     obfs->client_decode = http_simple_client_decode;
                         ^
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c: At top level:
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:58:6: error: conflicting types for ‘http_simple_dispose’
 void http_simple_dispose(struct obfs_t *obfs) {
      ^~~~~~~~~~~~~~~~~~~
In file included from /src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:7:0:
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.h:11:6: note: previous declaration of ‘http_simple_dispose’ was here
 void http_simple_dispose(struct obfs_t *obfs);
      ^~~~~~~~~~~~~~~~~~~
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:86:8: error: conflicting types for ‘http_simple_client_encode’
 size_t http_simple_client_encode(struct obfs_t *obfs, char **pencryptdata, size_t datalength, size_t* capacity) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:7:0:
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.h:13:8: note: previous declaration of ‘http_simple_client_encode’ was here
 size_t http_simple_client_encode(struct obfs_t *obfs, char **pencryptdata, size_t datalength, size_t* capacity);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:197:9: error: conflicting types for ‘http_simple_client_decode’
 ssize_t http_simple_client_decode(struct obfs_t *obfs, char **pencryptdata, size_t datalength, size_t* capacity, int *needsendback) {
         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:7:0:
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.h:14:9: note: previous declaration of ‘http_simple_client_decode’ was here
 ssize_t http_simple_client_decode(struct obfs_t *obfs, char **pencryptdata, size_t datalength, size_t* capacity, int *needsendback);
         ^~~~~~~~~~~~~~~~~~~~~~~~~
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:233:8: error: conflicting types for ‘http_post_client_encode’
 size_t http_post_client_encode(struct obfs_t *obfs, char **pencryptdata, size_t datalength, size_t* capacity) {
        ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.c:7:0:
/src/github.com/ShadowsocksR-Live/shadowsocksr-native/src/obfs/http_simple.h:16:8: note: previous declaration of ‘http_post_client_encode’ was here
 size_t http_post_client_encode(struct obfs_t *obfs, char **pencryptdata, size_t datalength, size_t* capacity);
        ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/ssr-local.dir/build.make:297: src/CMakeFiles/ssr-local.dir/obfs/http_simple.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:780: src/CMakeFiles/ssr-local.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
ssrlive commented 6 years ago

done.