[New-bugs-announce] [issue5510] patches for Modules/socketmodule.c for NetBSD

Ramsey Dow report at bugs.python.org
Wed Mar 18 19:21:34 CET 2009

New submission from Ramsey Dow <yesmar at speakeasy.net>:

I couldn't install setuptools (required by gitosis) because Python 2.6.1
didn't install socket when I built it. A little digging and I
uncommented the "_socket socketmodule.c" line in Modules/Setup.
Unfortunately, the Bluetooth socket stuff in Modules/socketmodule.c was
broken under NetBSD. I made this patch and tested on NetBSD 4.0.1.

When researching this bug on bugs.python.org, I noticed issue5400 which,
in order to get Modules/socketmodule.c compiling, disabled Bluetooth
socket support entirely. That isn't necessary. I just had to ensure the
various structure references made use of the proper member names
(according to NetBSD's /usr/include/netbt/bluetooth.h header file). The
changes I made were similar, though not precisely the same, as those for

After patching and building:

ramsey at wizard /opt/build/runtime/Python-2.6.1$ ./python -bb -E
Lib/test/regrtest.py test_socket
1 test OK.

components: Build
files: Python-2.6.1.patch
keywords: patch
messages: 83767
nosy: yesmar
severity: normal
status: open
title: patches for Modules/socketmodule.c for NetBSD
type: compile error
versions: Python 2.6
Added file: http://bugs.python.org/file13366/Python-2.6.1.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list