id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	branch	branch_author	launchpad_bug
4612	build Twisted on 64-bit Windows with mingw	carsonmyers		"Like the title says, I'm having trouble buidling twisted 10.1. Previously I just used the windows installer but there isn't a python 2.7 installer as of now. 

Firstly, I get these messages:

{{{
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include -IC:\Python27\PC -c conftest.c -o conftest.o
conftest.c:1:21: rpc/rpc.h: No such file or directory
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python
27\include -IC:\Python27\PC -c conftest.c -o conftest.o
conftest.c:1:23: sys/epoll.h: No such file or directory
}}}

From what I have gathered from looking around, conftest failures don't fail the whole build, which they didn't. Are they important in any way though?

I then got all of this, which did fail the build:

{{{
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DWIN32=1 -IC:\Python27\include -IC:\Python27\PC -c twisted/protocols/_c_urlarg.c -o build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o
writing build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.def
C:\MinGW\bin\gcc.exe -mno-cygwin -shared -s build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.def -LC:\Python27\libs -LC:\Python27\PCbuild\amd64 -lpython27 -lmsvcr90 -o build\lib.win-amd64-2.7\twisted\protocols\_c_urlarg.pyd
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x5a): undefined reference to `_imp__PyArg_ParseTupleAndKeywords'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x82): undefined reference to `_imp__PyString_FromStringAndSize'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x9d): undefined reference to `_imp__PyString_FromStringAndSize'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0xb9): undefined reference to `_imp__PyString_AsString'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x1f1): undefined reference to `_imp___PyString_Resize'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x232): undefined reference to `_imp__Py_InitModule4'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x23b): undefined reference to `_imp__PyModule_GetDict'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x24a): undefined reference to `_imp__PyExc_Exception'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x25d): undefined reference to `_imp__PyErr_NewException'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x277): undefined reference to `_imp__PyDict_SetItemString'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x2d9): undefined reference to `_imp__PyErr_Occurred'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x2e3): undefined reference to `_imp__PyErr_Print'
build\temp.win-amd64-2.7\Release\twisted\protocols\_c_urlarg.o:_c_urlarg.c:(.text+0x2f0): undefined reference to `_imp__Py_FatalError'
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
}}}

It seems it can't find references to python components? I have both py26 and py27 installed on my machine, don't know if that makes a difference. "	defect	closed	normal	Python-2.7	core	fixed	build, win32, win64	davidsarah techtonik@… zooko@… thijs			
