kbandla / libdnet

Automatically exported from code.google.com/p/libdnet
Other
1 stars 0 forks source link

Windows x64 Support? #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure
2. cd python && python setup.py bdist_wininst
3.

What is the expected output? What do you see instead?
Compiled Succesfully or something equivalent.
but compilation broke in between using MSVC++ when building libdnet for python
and got this:

E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nolo
go /Ox /MD /W3 /GS- /DNDEBUG -I../include -I../../WPdpack/Include -IE:\Python27\
include -IE:\Python27\PC /Tc./dnet.c /Fobuild\temp.win-amd64-2.7\Release\./dnet.
obj
dnet.c
../include\dnet/os.h(26) : error C2371: 'ssize_t' : redefinition; different basi
c types
        e:\python27\include\pyconfig.h(199) : see declaration of 'ssize_t'
./dnet.c(658) : warning C4244: 'function' : conversion from 'ssize_t' to 'long',
 possible loss of data
./dnet.c(883) : warning C4244: 'function' : conversion from 'ssize_t' to 'long',
 possible loss of data
./dnet.c(1044) : warning C4133: 'function' : incompatible types - from 'int *' t
o 'Py_ssize_t *'
./dnet.c(1125) : warning C4133: 'function' : incompatible types - from 'int *' t
o 'Py_ssize_t *'
./dnet.c(1485) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(1491) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(1787) : warning C4244: 'function' : conversion from 'Py_ssize_t' to 'lo
ng', possible loss of data
./dnet.c(1810) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(1816) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(1910) : warning C4244: 'function' : conversion from 'Py_ssize_t' to 'lo
ng', possible loss of data
./dnet.c(1935) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(1941) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(2021) : warning C4244: 'function' : conversion from 'Py_ssize_t' to 'lo
ng', possible loss of data
./dnet.c(2044) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(2050) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(2748) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(2754) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(3118) : warning C4090: 'function' : different 'const' qualifiers
./dnet.c(3118) : warning C4028: formal parameter 1 different from declaration
./dnet.c(3567) : warning C4018: '<' : signed/unsigned mismatch
./dnet.c(3647) : warning C4013: 'strlcpy' undefined; assuming extern returning i
nt
./dnet.c(3655) : warning C4244: '=' : conversion from 'long' to 'unsigned short'
, possible loss of data
./dnet.c(3730) : warning C4018: '<' : signed/unsigned mismatch
./dnet.c(4135) : warning C4090: 'function' : different 'const' qualifiers
./dnet.c(4135) : warning C4028: formal parameter 1 different from declaration
./dnet.c(4556) : warning C4090: 'function' : different 'const' qualifiers
./dnet.c(4556) : warning C4028: formal parameter 1 different from declaration
./dnet.c(5216) : warning C4090: 'function' : different 'const' qualifiers
./dnet.c(5216) : warning C4028: formal parameter 1 different from declaration
./dnet.c(5730) : warning C4018: '>' : signed/unsigned mismatch
./dnet.c(6069) : warning C4244: 'function' : conversion from 'ssize_t' to 'long'
, possible loss of data
./dnet.c(6099) : warning C4244: '=' : conversion from 'ssize_t' to 'int', possib
le loss of data
error: command '"E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd6
4\cl.exe"' failed with exit status 2

What version of the product are you using? On what operating system?
libdnet-1.12

Please provide any additional information below.
Is this because of change in architecture?

Original issue reported on code.google.com by Xavier8...@gmail.com on 4 Nov 2010 at 1:14

GoogleCodeExporter commented 9 years ago
Is there any fix to compile libdnet for Windows 7 x64? Could you make it work? 
Some help would be nice :D

Original comment by capitan....@gmail.com on 20 Jun 2013 at 8:51