Giter Club home page Giter Club logo

Comments (10)

zfl9 avatar zfl9 commented on June 15, 2024

更新再试。

from ipt2socks.

windrosecn avatar windrosecn commented on June 15, 2024

no errors, but still some warnings:
gcc -w -O2 -c libev/ev.c -o ev.o
gcc -std=c99 -Wall -Wextra -O2 -pthread -c ipt2socks.c -o ipt2socks.o
ipt2socks.c: In function 'tcp_stream_payload_forward_cb':
ipt2socks.c:40:58: warning: implicit declaration of function 'syscall' [-Wimplicit-function-declaration]
40 | #define splice(fdin, offin, fdout, offout, len, flags) syscall(__NR_splice, fdin, offin, fdout, offout, len, flags)
| ^~~~~~~
ipt2socks.c:741:25: note: in expansion of macro 'splice'
741 | ssize_t nrecv = splice(self_watcher->fd, NULL, self_pipefd[1], NULL, TCP_SPLICE_MAXLEN, SPLICE_F_MOVE | SPLICE_F_NONBLOCK);
| ^~~~~~
gcc -std=c99 -Wall -Wextra -O2 -pthread -c logutils.c -o logutils.o
logutils.c: In function 'my_strerror':
logutils.c:10:12: warning: implicit declaration of function 'strerror_r'; did you mean 'strerror'? [-Wimplicit-function-declaration]
10 | return strerror_r(errnum, g_errstr_buffer, ERRSTR_BUFLEN);
| ^~~~~~~~~~
| strerror
logutils.c:10:12: warning: returning 'int' from a function with return type 'const char *' makes pointer from integer without a cast [-Wint-conversion]
10 | return strerror_r(errnum, g_errstr_buffer, ERRSTR_BUFLEN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -std=c99 -Wall -Wextra -O2 -pthread -c lrucache.c -o lrucache.o
gcc -std=c99 -Wall -Wextra -O2 -pthread -c netutils.c -o netutils.o
gcc -std=c99 -Wall -Wextra -O2 -pthread -c protocol.c -o protocol.o
gcc -std=c99 -Wall -Wextra -O2 -pthread -s -o ipt2socks ipt2socks.o logutils.o lrucache.o netutils.o protocol.o ev.o -lm

from ipt2socks.

zfl9 avatar zfl9 commented on June 15, 2024

编辑 Makefile,将 c99 改为 gnu99 试下。

from ipt2socks.

zfl9 avatar zfl9 commented on June 15, 2024

edit makefile...
make clean && make all

from ipt2socks.

zfl9 avatar zfl9 commented on June 15, 2024

明天我有时间再看下这个警告如何消除(alpine真是奇怪)。。。

from ipt2socks.

windrosecn avatar windrosecn commented on June 15, 2024

把Makefile里的c99改为gnu99之后,出现同样的警告信息。

from ipt2socks.

windrosecn avatar windrosecn commented on June 15, 2024

运行时出现的错误提示:
2020-06-09 10:58:47 ERR: [tcp_stream_payload_forward_cb] recv from client stream: (null)

from ipt2socks.

zfl9 avatar zfl9 commented on June 15, 2024

..这只是网络错误。只是errmsg没有打印出来。

from ipt2socks.

zfl9 avatar zfl9 commented on June 15, 2024

更新再试,看下是否还有警告。

from ipt2socks.

windrosecn avatar windrosecn commented on June 15, 2024

警告没有了,编译正常

from ipt2socks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.