[Python-3000] Make problem: make: *** [sharedmods] Error 1

2008-12-07 Thread nelis
Hello,

I have problems with making the new python version. My system is
MacBook Pro with an up-to-date OSX, with the latest xcode version
(installed this morning).

I run the following commands, the make fails:

./configure
make

I tried all variations of parameters to ./configure given on:
http://farmdev.com/thoughts/66/python-3-0-on-mac-os-x-alongside-2-6-2-5-etc-/
and additionally tried --disable-shared.

I always get the same error message in the end, namely make: ***
[sharedmods] Error 1

Any idea why this could be? Any hints on how to get around this?

For your convenience, I include the log with output below.

--
0-92-86-47:Python-3.0 nelis$ ./configure --enable-framework
MACOSX_DEPLOYMENT_TARGET=10.5 --with-universal-archs=all
checking for --with-universal-archs... all
checking MACHDEP... darwin
checking machine type as reported by uname -m... i386
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 ISO C89... none needed
checking for --with-cxx-main=... 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 grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/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...
$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
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 gcc supports ParseTuple __format__... 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 ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.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... yes
checking libintl.h presence... yes
checking for libintl.h... yes
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 shadow.h usability... no
checking shadow.h presence... no
checking for shadow.h... no
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) 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
chec

Re: [Python-3000] Make problem: make: *** [sharedmods] Error 1

2008-12-07 Thread Brett Cannon
On Sun, Dec 7, 2008 at 11:21, nelis <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have problems with making the new python version. My system is
> MacBook Pro with an up-to-date OSX, with the latest xcode version
> (installed this morning).
>

Can you file a bug at http://bugs.python.org/ ? That was any
discussion can be kept in one place and if anyone else has the problem
they can help diagnose as well.

-Brett



> I run the following commands, the make fails:
>
> ./configure
> make
>
> I tried all variations of parameters to ./configure given on:
> http://farmdev.com/thoughts/66/python-3-0-on-mac-os-x-alongside-2-6-2-5-etc-/
> and additionally tried --disable-shared.
>
> I always get the same error message in the end, namely make: ***
> [sharedmods] Error 1
>
> Any idea why this could be? Any hints on how to get around this?
>
> For your convenience, I include the log with output below.
>
> --
> 0-92-86-47:Python-3.0 nelis$ ./configure --enable-framework
> MACOSX_DEPLOYMENT_TARGET=10.5 --with-universal-archs=all
> checking for --with-universal-archs... all
> checking MACHDEP... darwin
> checking machine type as reported by uname -m... i386
> 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 ISO C89... none needed
> checking for --with-cxx-main=... 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 grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/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...
> $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
> 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 gcc supports ParseTuple __format__... 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 ieeefp.h usability... no
> checking ieeefp.h presence... no
> checking for ieeefp.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... yes
> checking libintl.h presence... yes
> checking for libintl.h... yes
> 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 shadow.h usability... no
> checking

Re: [Python-3000] Make problem: make: *** [sharedmods] Error 1

2008-12-07 Thread Martin v. Löwis
> Any idea why this could be? Any hints on how to get around this?

The Python interpreter that you just built is crashing. There is no
work-around, but you should run it in a debugger and find out why it
is crashing.

Regards,
Martin
___
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com


Re: [Python-3000] Make problem: make: *** [sharedmods] Error 1

2008-12-07 Thread Mark Dickinson
> gcc  Python.framework/Versions/3.0/Python -o python.exe \
>Modules/python.o \
> -ldl
> make: *** [sharedmods] Error 1

It seems likely that this is related to a report on comp.lang.python in
November:

http://mail.python.org/pipermail/python-list/2008-November/514159.html

nelis, what's the output of the "locale" command on your system?

I've opened

http://bugs.python.org/issue4585

for this.

Mark
___
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com


Re: [Python-3000] Make problem: make: *** [sharedmods] Error 1

2008-12-07 Thread nelis
strange, I was studying the debug output in the file, and it differs
from what I had earlier, so I did run it again and got the same output
again:

  Avoiding implicit rule recursion.
  Trying pattern rule with stem `Info.plist.sh'.
  Trying implicit prerequisite
`Mac/Resources/framework/Info.plist.sh,v'.
  Trying pattern rule with stem `Info.plist.sh'.
  Trying implicit prerequisite
`Mac/Resources/framework/RCS/Info.plist.sh,v'.
  Trying pattern rule with stem `Info.plist.sh'.
  Trying implicit prerequisite
`Mac/Resources/framework/RCS/Info.plist.sh'.
  Trying pattern rule with stem `Info.plist.sh'.
  Trying implicit prerequisite
`Mac/Resources/framework/s.Info.plist.sh'.
  Trying pattern rule with stem `Info.plist.sh'.
  Trying implicit prerequisite
`Mac/Resources/framework/SCCS/s.Info.plist.sh'.
 No implicit rule found for `Mac/Resources/framework/Info.plist'.
 Finished prerequisites of target file
`Mac/Resources/framework/Info.plist'.
No need to remake target `Mac/Resources/framework/Info.plist'.
   Finished prerequisites of target file
`Python.framework/Versions/3.0/Python'.
   Prerequisite `libpython3.0.a' is older than target
`Python.framework/Versions/3.0/Python'.
   Prerequisite `Mac/Resources/framework/Info.plist' is older than
target `Python.framework/Versions/3.0/Python'.
  No need to remake target `Python.framework/Versions/3.0/Python'.
 Finished prerequisites of target file `python.exe'.
 Prerequisite `Modules/python.o' is older than target `python.exe'.
 Prerequisite `libpython3.0.a' is older than target `python.exe'.
 Prerequisite `Python.framework/Versions/3.0/Python' is older than
target `python.exe'.
No need to remake target `python.exe'.
Considering target file `oldsharedmods'.
 File `oldsharedmods' does not exist.
 Finished prerequisites of target file `oldsharedmods'.
Must remake target `oldsharedmods'.
Successfully remade target file `oldsharedmods'.
Considering target file `sharedmods'.
 File `sharedmods' does not exist.
  Pruning file `python.exe'.
 Finished prerequisites of target file `sharedmods'.
Must remake target `sharedmods'.
Putting child 0x001d2d00 (sharedmods) PID 40385 on the chain.
Live child 0x001d2d00 (sharedmods) PID 40385
Reaping losing child 0x001d2d00 PID 40385
make: *** [sharedmods] Error 1
Removing child 0x001d2d00 PID 40385 from chain.


On Mon, Dec 8, 2008 at 7:42 AM, nelis <[EMAIL PROTECTED]> wrote:
> Thanks for the replies. I was not sure to submit the asked output to
> the list or the bug report, so I posted it to the list.
>
> 10-92-86-47:Python-3.0 nelis$ locale
> LANG=
> LC_COLLATE="C"
> LC_CTYPE="UTF-8"
> LC_MESSAGES="C"
> LC_MONETARY="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_ALL=
>
> last lines of debug output make (full output in attachement):
> -
> ...
> Finished prerequisites of target file `sharedmods'.
>Must remake target `sharedmods'.
> Putting child 0x001d2ca0 (sharedmods) PID 39678 on the chain.
> Live child 0x001d2ca0 (sharedmods) PID 39678
> Reaping losing child 0x001d2ca0 PID 39678
> make: *** [sharedmods] Error 1
> Removing child 0x001d2ca0 PID 39678 from chain.
> 10-92-86-47:Python-3.0 nelis$ make -d >> output.txt
> /Users/nelis/temp/Python-3.0/Modules/_ssl.c: In function 
> '_get_peer_alt_names':
> /Users/nelis/temp/Python-3.0/Modules/_ssl.c:692: warning: passing
> argument 2 of 'ASN1_item_d2i' from incompatible pointer type
> /Users/nelis/temp/Python-3.0/Modules/_ssl.c:697: warning: passing
> argument 2 of 'method->d2i' from incompatible pointer type
> In file included from /System/Library/Frameworks/Tk.framework/Headers/tk.h:96,
> from /Users/nelis/temp/Python-3.0/Modules/_tkinter.c:67:
> /System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:140:
> warning: function declaration isn't a prototype
> /System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:343:
> warning: function declaration isn't a prototype
> /System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:462:
> warning: function declaration isn't a prototype
> /System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:480:
> warning: function declaration isn't a prototype
> /System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:505:
> warning: function declaration isn't a prototype
> /System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:506:
> warning: function declaration isn't a prototype
> /System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:518:
> warning: function declaration isn't a prototype
> /System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:531:
> warning: function declaration isn't a prototype
> /System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:1065:
> warning: function declaration isn't a prototype
> i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
> because linking not done
> i686-apple-darwin9-