[issue1358] Compile error on OS X 10.5
Ronald Oussoren added the comment: This issue is fixed in the trunk and python2.5 branch. To work around this issue with the 2.5.1 source tree you have to set MACOSX_DEPLOYMENT_TARGET when configuring python: ../configure insert-args-here MACOSX_DEPLOYMENT_TARGET=10.3 (the value 10.3 is what configure picks by default, building with 10.5 as the target works as well). The problem is that configure picked a deployment target for use during compilation of python itself, but didn't use that during the configure phase. That causes configure to pick up the wrong set of feature macros. -- nosy: +ronaldoussoren resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1358 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1358] Compile error on OS X 10.5
Guido van Rossum added the comment: IMO it should be set to 10.4 since we want binaries that run on that platform too. Is this something we can fix in the configure script? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1358 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1358] Compile error on OS X 10.5
Simon Percivall added the comment: It has to do with the MACOSX_DEPLOYMENT_TARGET. If it's set to 10.4, the legacy version of setpgrp is used (with args), it it's 10.5, setpgrp expects no arguments. It seems configure won't detect the difference. -- nosy: +percivall __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1358 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1358] Compile error on OS X 10.5
Guido van Rossum added the comment: Thanks for testing on Leopard! I haven't gotten that yet. Assigning to Neal since this ought to be fixed before 2.5.2 is released. (But someone needs to come up with a proper patch.) -- assignee: - nnorwitz nosy: +gvanrossum, nnorwitz priority: - immediate __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1358 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1358] Compile error on OS X 10.5
Martin v. Löwis added the comment: There is an autoconf test that tries to compile | #include unistd.h | int | main () | { | setpgrp(0,0); | ; | return 0; | } (with many additional defines - see config.log.gz). This file compiles with the error message conftest.c:185: error: too many arguments to function 'setpgrp' hence configure concludes that SETPGRP_HAVE_ARG should *not* be defined - yet you say it works when it is defined. Can somebody with access to the system resolve this mystery? Studying the header file that has the setpgrp declaration is probably necessary. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1358 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1358] Compile error on OS X 10.5
Neal Norwitz added the comment: I don't have access to a 10.5 machine. My guess is that the difference is between configure not setting _XOPEN_SOURCE and/or _XOPEN_SOURCE_EXTENDED and it being set in pyconfig.h. At least those are both defined on 10.4. This page talks about needing to include unistd.h, but doesn't give enough info: http://developer.apple.com/documentation/Darwin/Reference/Manpages/man2/setpgid.2.html Hopefully someone else with access to 10.5 can confirm if this is the case and we can resolve this. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1358 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1358] Compile error on OS X 10.5
New submission from andres: Compiling python 2.5.1 on Mac OS X 10.5 (Leopard) fails with the following message: gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o Modules/posixmodule.o ./Modules/posixmodule.c: In function ‘posix_setpgrp’: ./Modules/posixmodule.c:3592: error: too few arguments to function ‘setpgrp’ make: *** [Modules/posixmodule.o] Error 1 I am also attaching the output of the configuration script. -- components: Macintosh files: configure.txt messages: 56921 nosy: andres severity: major status: open title: Compile error on OS X 10.5 type: compile error versions: Python 2.5 Added file: http://bugs.python.org/file8655/configure.txt __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1358 __checking MACHDEP... darwin checking EXTRAPLATDIR... $(PLATMACDIRS) checking for --without-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for --with-cxx-main=compiler... no checking for g++... g++ configure: WARNING: By default, distutils will build C++ extension modules with g++. If this is not intended, then set CXX on the configure command line. checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for AIX... no checking for --with-suffix... checking for case-insensitive build directory... yes checking LIBRARY... libpython$(VERSION).a checking LINKCC... $(PURIFY) $(MAINCC) checking for --enable-shared... no checking for --enable-profiling... checking LDLIBRARY... libpython$(VERSION).a checking for ranlib... ranlib checking for ar... ar checking for svnversion... found checking for a BSD-compatible install... /usr/bin/install -c checking for --with-pydebug... no checking whether gcc accepts -fno-strict-aliasing... yes checking whether gcc accepts -OPT:Olimit=0... no checking whether gcc accepts -Olimit 1500... no checking whether pthreads are available without options... yes checking whether g++ also accepts flags for thread support... no checking for ANSI C header files... rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking asm/types.h usability... no checking asm/types.h presence... no checking for asm/types.h... no checking conio.h usability... no checking conio.h presence... no checking for conio.h... no checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking direct.h usability... no checking direct.h presence... no checking for direct.h... no checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking shadow.h usability... no checking shadow.h presence... no checking for shadow.h... no checking io.h usability... no checking io.h presence... no checking for io.h... no checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking libintl.h usability... no checking libintl.h presence... no checking for libintl.h... no checking ncurses.h usability... yes checking ncurses.h presence... yes checking for ncurses.h... yes checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking process.h usability... no checking process.h presence... no checking for process.h... no checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking stropts.h usability... no checking stropts.h presence... no checking for stropts.h... no checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking thread.h usability... no checking thread.h presence... no checking for thread.h... no checking for unistd.h... (cached) yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking sys/audioio.h usability... no checking
[issue1358] Compile error on OS X 10.5
andres added the comment: I've attached a compressed config.log. Incidentally, we were able to get Python to compile by appending the following line to pyconfig.h: #define SETPGRP_HAVE_ARG -Andres On Oct 29, 2007, at 1:00 PM, Martin v. Löwis wrote: Martin v. Löwis added the comment: Can you please also attach config.log (perhaps compressed)? -- nosy: +loewis __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1358 __ Added file: http://bugs.python.org/file8659/unnamed Added file: http://bugs.python.org/file8660/config.log.gz Added file: http://bugs.python.org/file8661/unnamed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1358 __htmlbody style=word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; I've attached a compressed config.log.brbrIncidentally, we were able to get Python to compile by appending the following line to pyconfig.h:br#definespan class=Apple-tab-span style=white-space: pre; /spanSETPGRP_HAVE_ARGbrbr-Andresbrbrbr/body/html config.log.gz Description: GNU Zip compressed data htmlbody style=word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; brbrdivfont class=Apple-style-span color=#144FAEbr class=webkit-block-placeholder/font/divdivdivOn Oct 29, 2007, at 1:00 PM, Martin v. Löwis wrote:/divbr class=Apple-interchange-newlineblockquote type=citebrMartin v. Löwis added the comment:brbrCan you please also attach config.log (perhaps compressed)?brbr--brnosy: +loewisbrbr__brTracker lt;a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/agt;brlt;a href=http://bugs.python.org/issue1358;http://bugs.python.org/issue1358/agt;br__br/blockquote/divbr/body/html ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1358] Compile error on OS X 10.5
Martin v. Löwis added the comment: Can you please also attach config.log (perhaps compressed)? -- nosy: +loewis __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1358 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com