Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#16628 closed defect (duplicate)

py25-tkinter build failure

Reported by: macri.lucas@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: py25-tkinter

Description (last modified by mf2k (Frank Schima))

Hi,

I installed python 2.5 without problems, then tried to install py25-tkinter and got this error:

a% port install py25-tkinter
--->  Fetching tcl
--->  Attempting to fetch tcl8.5.4-src.tar.gz from http://downloads.sourceforge.net/tcl
--->  Verifying checksum(s) for tcl
--->  Extracting tcl
--->  Configuring tcl
--->  Building tcl with target all
--->  Staging tcl into destroot
--->  Installing tcl 8.5.4_0
--->  Activating tcl 8.5.4_0
--->  Cleaning tcl
--->  Fetching tk
--->  Attempting to fetch tk8.5.4-src.tar.gz from http://downloads.sourceforge.net/tcl
--->  Verifying checksum(s) for tk
--->  Extracting tk
--->  Configuring tk
--->  Building tk with target all
--->  Staging tk into destroot
--->  Installing tk 8.5.4_0
--->  Activating tk 8.5.4_0
--->  Cleaning tk
--->  Fetching py25-tkinter
--->  Attempting to fetch Python-2.5.2.tar.bz2 from http://www.python.org/ftp/python/2.5.2/
--->  Verifying checksum(s) for py25-tkinter
--->  Extracting py25-tkinter
--->  Configuring py25-tkinter
--->  Building py25-tkinter with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-tkinter/work/Python-2.5.2/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: running build
running build_ext
building '_tkinter' extension
creating build
creating build/temp.macosx-10.3-i386-2.5
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _tkinter.c -o build/temp.macosx-10.3-i386-2.5/_tkinter.o
unable to execute -DNDEBUG: No such file or directory
error: command '-DNDEBUG' failed with exit status 1

Error: Status 1 encountered during processing.

Interestingly, I changed directories to the path listed above, executed "/opt/local/bin/python2.5 setup.py build" and had no problems. Then I just issued "port install py25-tkinter" again and the installation completed without a hitch. The module is working.

Perhaps there is a typo in the command that "port" tried to execute?

Cheers,

--Lucas

Change History (2)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Description: modified (diff)
Port: py25-tkinter added
Resolution: duplicate
Status: newclosed

This is the Leopard TCL bug at work. Generally the solution is to clean the port that failed and try again. In this case:

sudo port clean py25-tkinter
sudo port install py25-tkinter

comment:2 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.