Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

SSL-specific build error #10

Open
enp opened this issue Dec 22, 2018 · 0 comments
Open

SSL-specific build error #10

enp opened this issue Dec 22, 2018 · 0 comments

Comments

@enp
Copy link

enp commented Dec 22, 2018

Can't build with:

cc   -Wall -Werror -g -o vpn-ws src/main.o src/error.o src/tuntap.o src/memory.o src/bits.o src/base64.o src/exec.o src/websocket.o src/utils.o src/socket.o src/event.o src/io.o src/uwsgi.o src/sha1.o src/macmap.o 
src/ssl.c: In function '_vpn_ws_ssl_wait_read':
src/ssl.c:4:12: error: type of 'fd' defaults to 'int' [-Werror=implicit-int]
 static int _vpn_ws_ssl_wait_read(fd) {
            ^
src/ssl.c: In function '_vpn_ws_ssl_wait_write':
src/ssl.c:15:12: error: type of 'fd' defaults to 'int' [-Werror=implicit-int]
 static int _vpn_ws_ssl_wait_write(fd) {
            ^
cc1: all warnings being treated as errors
make: *** [src/ssl.o] Error 1

Can be fixed by adding types - http://git.altlinux.org/people/enp/packages/?p=vpn-ws.git;a=blobdiff;f=src/ssl.c;h=4f0405cec2c210bd6d4253a66e6ffc3a209d205b;hp=751d101a7daa76943708bebd87f8be12b0ac642c;hb=44bf8b772379f35a1bed4a150081557e3ef5359c;hpb=3d15958bfeb668ae860376f650083ca37146e807

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant