Bugs item #1528620, was opened at 2006-07-25 13:34 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1528620&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 Status: Open Resolution: None Priority: 5 Submitted By: Guido Ostkamp (ostkamp) Assigned to: Nobody/Anonymous (nobody) Summary: Python 2.5b2 fails to build on Solaris 10 (Sun Compiler) Initial Comment: Hello, I tried to build Python 2.5b2 on Solaris 10 with the Sun Workshop Compiler, which fails. Please see the attachment for a complete log in several stages. Here is a short summary: * build/temp.solaris-2.10-sun4us-2.5/libffi/include/ffi.h contains illegal C-syntax __attribute(...) This might be legal for GCC, but not for other compilers. * Even if this is removed, there are other fatal compiler errors in the _ctypes module later on. * The build process seems to invoke _cursesmodule.c. This contains the use of a function mvwgetnstr(). This function does not exist in /usr/lib/libcurses.so. * The build process fails to link with libcurses.so. The Python 2.4.3 release fails for the same reasons regarding the curses problems, but the _ctypes stuff did not exist in this form. I would appreciate, if these bugs could be fixed. Regards, Guido ---------------------------------------------------------------------- >Comment By: Neal Norwitz (nnorwitz) Date: 2006-07-26 20:20 Message: Logged In: YES user_id=33168 Andrew Kuchling just checked in the change to fix the problem. The only way you would be able to verify it is if you checkout from SVN head for 2.5 or release24-main for 2.4. The only module that should depend on libffi is ctypes. If struct doesn't compile that is a different problem. ---------------------------------------------------------------------- Comment By: Guido Ostkamp (ostkamp) Date: 2006-07-26 13:52 Message: Logged In: YES user_id=1028306 Hello, @nnorwitz: Unfortunately I cannot provide a patch, but can give some hints: If you (or the developers) have a Solaris 10 box, they can download the Sun Studio 11 which includes the Sun Compiler for free from the URL: <http://developers.sun.com/prodtech/cc/downloads/index.jsp> Then you should be able to verify the problems yourself (though I am using an older version of the compiler from the times when it was commercial). Regarding the _ctypes module problems: The module contains a libffi which nowadays appears to be part of the GNU GCC. This lib was never made to work with anything else but GCC, as it seems. Even older versions do not compile. Therefore, if this module is not really necessary, it should be removed or at least deactivated by the configuration if not using GCC. It also seems, that other modules like _struct appear to be depending on this, if I'm right. Regarding the curses problem: I can workaround this if changing the mvwgetnstr() to mvwgetstr() with omitting the last parameter. However this should be configured automatically. Futhermore there was no linking of the correct library (/usr/lib/libcurses.so). I had to activate the curses entry in Modules/Setup manually and to call make two more times. Regarding GCC on Solaris: I tried with GCC but it failed on Solaris 10 as well. I will open a new fault report for the GCC problems. @akuchling: You say the curses bug should be fixed in 2.4 and 2.5. It isn't. I tried 2.4.3 yesterday as well and ran into the very same problem. Or do you mean it was changed more recently? ---------------------------------------------------------------------- Comment By: A.M. Kuchling (akuchling) Date: 2006-07-26 10:28 Message: Logged In: YES user_id=11375 The _cursesmodule mvwgetnstr() problem was reported as bug #1471938 and should now be fixed on both the 2.4 and 2.5 branches. ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2006-07-25 21:11 Message: Logged In: YES user_id=33168 Can you provide a patch to address these problems? I don't know that any developers have access to the sun workshop compiler. We have a Solaris 10 box, but it only has gcc AFAIK. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1528620&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com