Skip to content

Instantly share code, notes, and snippets.

@Strazzom
Created July 5, 2018 03:32
Show Gist options
  • Save Strazzom/9f1157c036a9b4f1fb128bfb68d0ae84 to your computer and use it in GitHub Desktop.
Save Strazzom/9f1157c036a9b4f1fb128bfb68d0ae84 to your computer and use it in GitHub Desktop.
Installing collected packages: KCP
Running setup.py install for KCP: started
Running setup.py install for KCP: finished with status 'error'
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-nCZu_6/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-4VLCUE/install-record.txt --single-version-externally-managed --compile:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-nCZu_6/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-4VLCUE/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-req-build-nCZu_6/
running install
running build
running build_ext
building 'kcp' extension
creating build
creating build/temp.linux-i386-2.7
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Os -fPIC -pipe -L/opt/static -fPIC -I/usr/include/python2.7 -c pykcp.c -o build/temp.linux-i386-2.7/pykcp.o -g -O3 -Wall -std=gnu89
pykcp.c:10:22: kcp/ikcp.h: No such file or directory
pykcp.c:11:22: kcp/ikcp.c: No such file or directory
In file included from pykcp.c:12:
clock.c:13:1: warning: "_POSIX_C_SOURCE" redefined
/usr/include/features.h:131:1: warning: this is the location of the previous definition
In file included from pykcp.c:12:
clock.c:65: parse error before "iclock"
clock.c:66: warning: return type defaults to `int'
clock.c: In function `iclock':
clock.c:69: `IUINT32' undeclared (first use in this function)
clock.c:69: (Each undeclared identifier is reported only once
clock.c:69: for each function it appears in.)
pykcp.c: At top level:
pykcp.c:125: parse error before "ikcpcb"
pykcp.c:125: warning: no semicolon at end of struct or union
pykcp.c:129: parse error before '}' token
pykcp.c:129: warning: type defaults to `int' in declaration of `kcp_KCPObject'
pykcp.c:129: warning: type defaults to `int' in declaration of `pkcp_KCPObject'
pykcp.c:129: warning: data definition has no type or storage class
pykcp.c:132: warning: `struct IKCPCB' declared inside parameter list
pykcp.c:132: warning: its scope is only this definition or declaration, which is probably not what you want.
pykcp.c: In function `kcp_KCPObjectType_log_callback':
pykcp.c:135: parse error before "self"
pykcp.c:137: `self' undeclared (first use in this function)
pykcp.c: At top level:
pykcp.c:150: warning: `struct IKCPCB' declared inside parameter list
pykcp.c: In function `kcp_KCPObjectType_send_callback':
pykcp.c:153: parse error before "self"
pykcp.c:155: `self' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_dealloc':
pykcp.c:170: parse error before "v"
pykcp.c:172: `v' undeclared (first use in this function)
pykcp.c:189: warning: implicit declaration of function `ikcp_release'
pykcp.c: In function `kcp_KCPObjectType_new':
pykcp.c:198: parse error before "self"
pykcp.c:200: `self' undeclared (first use in this function)
pykcp.c:200: parse error before "type"
pykcp.c: At top level:
pykcp.c:216: parse error before "ikcpcb"
pykcp.c:216: warning: function declaration isn't a prototype
pykcp.c: In function `socksend':
pykcp.c:217: parse error before "v"
pykcp.c:220: `v' undeclared (first use in this function)
pykcp.c:221: `buf' undeclared (first use in this function)
pykcp.c:221: `len' undeclared (first use in this function)
pykcp.c: At top level:
pykcp.c:237: parse error before "self"
pykcp.c:238: warning: function declaration isn't a prototype
pykcp.c: In function `kcp_KCPObjectType_init':
pykcp.c:258: `args' undeclared (first use in this function)
pykcp.c:258: `kwds' undeclared (first use in this function)
pykcp.c:266: `self' undeclared (first use in this function)
pykcp.c:266: warning: implicit declaration of function `ikcp_create'
pykcp.c:375: warning: implicit declaration of function `ikcp_nodelay'
pykcp.c: In function `kcp_KCPObjectType_get_log':
pykcp.c:387: parse error before "v"
pykcp.c:388: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_set_log':
pykcp.c:398: parse error before "v"
pykcp.c:401: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_get_check':
pykcp.c:419: parse error before "v"
pykcp.c:420: `IUINT32' undeclared (first use in this function)
pykcp.c:421: warning: implicit declaration of function `ikcp_check'
pykcp.c:421: `v' undeclared (first use in this function)
pykcp.c:421: `now' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_get_peeksize':
pykcp.c:426: parse error before "v"
pykcp.c:427: warning: implicit declaration of function `ikcp_peeksize'
pykcp.c:427: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_get_mtu':
pykcp.c:432: parse error before "v"
pykcp.c:433: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_set_mtu':
pykcp.c:438: parse error before "v"
pykcp.c:446: warning: implicit declaration of function `ikcp_setmtu'
pykcp.c:446: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_get_wndsize':
pykcp.c:456: parse error before "v"
pykcp.c:457: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_set_wndsize':
pykcp.c:462: parse error before "v"
pykcp.c:467: warning: implicit declaration of function `ikcp_wndsize'
pykcp.c:467: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_get_waitsnd':
pykcp.c:482: parse error before "v"
pykcp.c:483: warning: implicit declaration of function `ikcp_waitsnd'
pykcp.c:483: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_get_conv':
pykcp.c:488: parse error before "v"
pykcp.c:489: warning: implicit declaration of function `ikcp_getconv'
pykcp.c:489: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_get_interval':
pykcp.c:499: parse error before "v"
pykcp.c:500: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_update':
pykcp.c:565: parse error before "v"
pykcp.c:566: warning: implicit declaration of function `ikcp_update'
pykcp.c:566: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_flush':
pykcp.c:572: parse error before "v"
pykcp.c:573: warning: implicit declaration of function `ikcp_flush'
pykcp.c:573: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_send':
pykcp.c:579: parse error before "v"
pykcp.c:598: warning: implicit declaration of function `ikcp_send'
pykcp.c:598: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_submit':
pykcp.c:613: parse error before "v"
pykcp.c:631: warning: implicit declaration of function `ikcp_input'
pykcp.c:631: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_pollread':
pykcp.c:643: parse error before "v"
pykcp.c:644: `IUINT32' undeclared (first use in this function)
pykcp.c:660: `start' undeclared (first use in this function)
pykcp.c:660: `now' undeclared (first use in this function)
pykcp.c:662: `v' undeclared (first use in this function)
pykcp.c:667: `tosleep' undeclared (first use in this function)
pykcp.c:740: warning: implicit declaration of function `ikcp_recv'
pykcp.c:749: `current' undeclared (first use in this function)
pykcp.c:755: parse error before "maxsleep"
pykcp.c:766: break statement not within loop or switch
pykcp.c: At top level:
pykcp.c:769: parse error before "if"
pykcp.c: In function `kcp_KCPObjectType_recv':
pykcp.c:778: parse error before "v"
pykcp.c:779: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_update_clock':
pykcp.c:801: parse error before "v"
pykcp.c:802: `IUINT32' undeclared (first use in this function)
pykcp.c:805: `clk' undeclared (first use in this function)
pykcp.c:811: `v' undeclared (first use in this function)
pykcp.c:812: `next' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPObjectType_check_clock':
pykcp.c:819: parse error before "v"
pykcp.c:820: `IUINT32' undeclared (first use in this function)
pykcp.c:822: `clk' undeclared (first use in this function)
pykcp.c:827: `v' undeclared (first use in this function)
pykcp.c: In function `kcp_KCPDispatcherObjectType_dispatch':
pykcp.c:1041: `IUINT32' undeclared (first use in this function)
pykcp.c:1041: parse error before "now"
pykcp.c:1066: parse error before "kcp"
pykcp.c:1076: `started' undeclared (first use in this function)
pykcp.c:1076: `now' undeclared (first use in this function)
pykcp.c:1080: `spent' undeclared (first use in this function)
pykcp.c:1087: parse error before "tmpkcp"
pykcp.c:1090: `tmpkcp' undeclared (first use in this function)
pykcp.c:1164: `kcp' undeclared (first use in this function)
pykcp.c:1176: warning: implicit declaration of function `offsetof'
pykcp.c:1176: parse error before "struct"
pykcp.c:1185: parse error before "struct"
pykcp.c:1209: parse error before "PyDict_GetItem"
pykcp.c:1219: parse error before "PyObject_CallObject"
pykcp.c:1263: warning: implicit declaration of function `iqueue_is_empty'
pykcp.c:1167: warning: `offset' might be used uninitialized in this function
pykcp.c: In function `iclock':
pykcp.c:1402: warning: control reaches end of non-void function
pykcp.c: In function `kcp_KCPObjectType_new':
pykcp.c:1402: warning: control reaches end of non-void function
error: command 'gcc' failed with exit status 1
----------------------------------------
@brezuicabogdan
Copy link

Same issue here ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment