Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_multiprocessing doesn't build on macosx 10.3 #48315

Closed
ronaldoussoren opened this issue Oct 7, 2008 · 4 comments
Closed

_multiprocessing doesn't build on macosx 10.3 #48315

ronaldoussoren opened this issue Oct 7, 2008 · 4 comments
Labels
build The build process and cross-build extension-modules C modules in the Modules dir

Comments

@ronaldoussoren
Copy link
Contributor

BPO 4065
Nosy @loewis, @ronaldoussoren

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2009-01-19.15:41:52.421>
created_at = <Date 2008-10-07.10:52:51.509>
labels = ['extension-modules', 'build']
title = "_multiprocessing doesn't build on macosx 10.3"
updated_at = <Date 2009-01-19.15:41:52.420>
user = 'https://github.com/ronaldoussoren'

bugs.python.org fields:

activity = <Date 2009-01-19.15:41:52.420>
actor = 'jnoller'
assignee = 'jnoller'
closed = True
closed_date = <Date 2009-01-19.15:41:52.421>
closer = 'jnoller'
components = ['Extension Modules']
creation = <Date 2008-10-07.10:52:51.509>
creator = 'ronaldoussoren'
dependencies = []
files = []
hgrepos = []
issue_num = 4065
keywords = []
message_count = 4.0
messages = ['74436', '74469', '78830', '80142']
nosy_count = 3.0
nosy_names = ['loewis', 'ronaldoussoren', 'jnoller']
pr_nums = []
priority = 'low'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue4065'
versions = ['Python 2.6']

@ronaldoussoren
Copy link
Contributor Author

I'm trying to build python 2.6 on a Mac OS X 10.3 system. This fails to
build the multiprocessing extension due to a missing definition of "struct
iovec".

It turns out that you have to include <sys/uio.h> to get that definition
on OSX 10.3.

Adding '#include <sys/uio.h>' to multiprocessing.h enables building the
extension on OSX 10.3, but is probably not the right solution.

@ronaldoussoren ronaldoussoren added extension-modules C modules in the Modules dir build The build process and cross-build labels Oct 7, 2008
@loewis
Copy link
Mannequin

loewis mannequin commented Oct 7, 2008

What does sendmsg(2) say what to include? What about writev(2)? (the
latter, on Linux, says that sys/uio.h is indeed the correct header)

@ronaldoussoren
Copy link
Contributor Author

The manpage for writev(2) mentions #include <sys/uio.h>. Adding a #include
for <sys/uio.h> is the right fix after all...

@jnoller jnoller mannequin self-assigned this Jan 8, 2009
@jnoller
Copy link
Mannequin

jnoller mannequin commented Jan 19, 2009

This issues was fixed on 2008-11-04 by Martin Loewis in r67098

Index: multiprocessing.h
===================================================================

--- multiprocessing.h	(revision 67097)
+++ multiprocessing.h	(revision 67098)
@@ -20,7 +20,9 @@
 #  define SEM_VALUE_MAX LONG_MAX
 #else
 #  include <fcntl.h>                 /* O_CREAT and O_EXCL */
+#  include <netinet/in.h>
 #  include <sys/socket.h>
+#  include <sys/uio.h>
 #  include <arpa/inet.h>             /* htonl() and ntohl() */
 #  if HAVE_SEM_OPEN
 #    include <semaphore.h>

Closing

@jnoller jnoller mannequin closed this as completed Jan 19, 2009
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build extension-modules C modules in the Modules dir
Projects
None yet
Development

No branches or pull requests

1 participant