New submission from Ramsey Dow <yes...@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 FreeBSD. After patching and building: ram...@wizard /opt/build/runtime/Python-2.6.1$ ./python -bb -E Lib/test/regrtest.py test_socket 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 <rep...@bugs.python.org> <http://bugs.python.org/issue5510> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com