[ python-Bugs-877973 ] selectmodule won't compile on OS/X 10.3
SourceForge.net
noreply at sourceforge.net
Fri Jan 16 04:57:37 EST 2004
Bugs item #877973, was opened at 2004-01-16 03:48
Message generated for change (Comment added) made by jackjansen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=877973&group_id=5470
Category: Macintosh
Group: Python 2.3
>Status: Pending
>Resolution: Works For Me
Priority: 5
Submitted By: Jean-Pierre Becotte (jpbecotte)
Assigned to: Jack Jansen (jackjansen)
Summary: selectmodule won't compile on OS/X 10.3
Initial Comment:
I've tried many ways.
First, I though the define_xopen_source option in configure
was incorrectly set. But setting it either to 'no' or 'yes' has
no effect. (Well, at configuration time, if it's set to 'yes', then
there's a problem... so I guess the good option is 'no'...
anyway it's not what I wanted to talk about)!!
I've tried on two different machines. I'm using on both OS/X
10.3.2 and tried to make Python 2.3.3.
here's the dump :
building 'select' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fno-strict-
aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
madd -I. -I/Users/jpb/tmp/Python-2.3.3/./Include -I/Users/
jpb/tmp/Python-2.3.3/./Mac/Include -I/Users/jpb/tmp/
Python-2.3.3/Include -I/Users/jpb/tmp/Python-2.3.3 -c /
Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c -o
build/temp.darwin-7.2.0-Power_Macintosh-2.3/
selectmodule.o
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c: In
function `update_ufd_array':
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:347:
sizeof applied to an incomplete type
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:355:
invalid use of undefined type `struct pollfd'
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:355:
dereferencing pointer to incomplete type
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:356:
invalid use of undefined type `struct pollfd'
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:356:
dereferencing pointer to incomplete type
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c: In
function `poll_register':
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:374:
`POLLIN' undeclared (first use in this function)
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:374:
(Each undeclared identifier is reported only once
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:374:
for each function it appears in.)
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:374:
`POLLPRI' undeclared (first use in this function)
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:374:
`POLLOUT' undeclared (first use in this function)
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c: In
function `poll_poll':
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:482:
warning: implicit declaration of function `poll'
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:498:
invalid use of undefined type `struct pollfd'
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:498:
dereferencing pointer to incomplete type
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:507:
invalid use of undefined type `struct pollfd'
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:507:
dereferencing pointer to incomplete type
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:514:
invalid use of undefined type `struct pollfd'
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:514:
dereferencing pointer to incomplete type
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c: In
function `initselect':
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:665:
`POLLIN' undeclared (first use in this function)
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:666:
`POLLPRI' undeclared (first use in this function)
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:667:
`POLLOUT' undeclared (first use in this function)
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:668:
`POLLERR' undeclared (first use in this function)
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:669:
`POLLHUP' undeclared (first use in this function)
/Users/jpb/tmp/Python-2.3.3/Modules/selectmodule.c:670:
`POLLNVAL' undeclared (first use in this function)
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2004-01-16 10:57
Message:
Logged In: YES
user_id=45365
I cannot repeat this, I tried with both the 2.3.3 tar distribution and
with 2.3.3 from CVS, on two different machines (I tried both
normal build and --with-framework).
So I think this has to do with one of (a) configure options, (b)
nonstandard environment variables or (c) nonstandard tools
installed in $PATH before the normal compiler/linker/etc.
As the command line looks fairly normal I suspect (a) or (c).
Please try cleaning out everything and doing "./configure &&
make". If that fails try creating a new user with standard profile,
etc. and trying it there.
Make sure you reset configure to its original state before trying
this.
If you still experience the problem please reopen this bug and
supply some details.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=877973&group_id=5470
More information about the Python-bugs-list
mailing list