sassanp / pynetinfo

Python module for retrieving network information
http://pypi.python.org/pypi/pynetinfo/
GNU General Public License v2.0
11 stars 10 forks source link

fails with python3 #5

Open haozhenxiao opened 8 years ago

haozhenxiao commented 8 years ago

it failed with python3 setup.py install :

building 'netinfo' extension
creating build/temp.linux-x86_64-3.4
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c netinfo.c -o build/temp.linux-x86_64-3.4/netinfo.o
netinfo.c:39:16: error: conflicting types for ‘initnetinfo’
 PyMODINIT_FUNC initnetinfo(void)
                ^
In file included from netinfo.c:14:0:
netinfo.h:2:6: note: previous declaration of ‘initnetinfo’ was here
 void initnetinfo(void);
      ^
netinfo.c: In function ‘initnetinfo’:
netinfo.c:41:5: warning: implicit declaration of function ‘Py_InitModule’ [-Wimplicit-function-declaration]
     (void) Py_InitModule("netinfo", netinfo_methods);
     ^
netinfo.c:42:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
mecworks commented 8 years ago

This is still happening. Oct, 25, 2016. This library hasn't been updated in a while. Is this project still alive?