id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	branch	branch_author	launchpad_bug
5907	Setup.py (install) partly fails on OpenBSD due to unresolved compilation issues (sendmsg.c)	epdittmer		"The installation (setup.py install) of Twisted-12.1.0 partly fails do to an unresolved compilation issue in sendmsg.c.

At least on OpenBSD (version 5.1) the iovec struct is undefined. Including sys/uio.h resolves the issue.

Compilation output:

{{{
cc -pthread -fno-strict-aliasing -O2 -pipe -DNDEBUG -O2 -pipe \
    -DTHREAD_STACK_SIZE=0x20000 -fPIC -fPIC -I/usr/local/include/python2.7 \
    -c twisted/python/sendmsg.c \
    -o build/temp.openbsd-5.1-amd64-2.7/twisted/python/sendmsg.o
twisted/python/sendmsg.c: In function 'sendmsg_sendmsg':
twisted/python/sendmsg.c:174: error: array type has incomplete element type
twisted/python/sendmsg.c: In function 'sendmsg_recvmsg':
twisted/python/sendmsg.c:369: error: array type has incomplete element type
error: command 'cc' failed with exit status 1
}}}
"	enhancement	closed	normal		core	fixed		teratorn@…	branches/bsd-include-header-5907	teratorn	
