Is compilation supported on Windows?

Asked by hwiechers

I'm running Windows 7 (64 bit) with mingw32.
When I try to build the source I get this:

09:14 > python setup.py build -c mingw32
running build
running build_py
running build_ext
building 'dulwich._objects' extension
writing build\temp.win32-2.5\Release\dulwich\_objects.def
C:\MinGW\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.5\Release\dulwich\_objects.o build\temp.win32-2.5\Release
\dulwich\_objects.def -LC:\Python25\libs -LC:\Python25\PCBuild -lpython25 -lmsvcr71 -o build\lib.win32-2.5\dulwich\_obje
cts.pyd
build\temp.win32-2.5\Release\dulwich\_objects.o:_objects.c:(.text+0x3e5): undefined reference to `strnlen'
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

It looks like strnlen isn't available. Should I log a bug for this or are the extensions unsupported on Windows?

I can still install with the pure option.

Question information

Language:
English Edit question
Status:
Solved
For:
Dulwich Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ronald Blaschke (rblasch) said :
#1

Compilation works with Visual C++ on Windows. It may also work with MinGW using a recent Dulwich trunk, because of commit f72cac196a361e14b7a9d766dfa6cd85132c7478 ("Provide strnlen() on mingw32 which doesn't have it.")

Revision history for this message
Jelmer Vernooij (jelmer) said :
#2

This should be fixed in newer versions of dulwich.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#3

This should be fixed in newer versions of Dulwich.