[MacPorts] #16628: py25-tkinter build failure
MacPorts
noreply at macports.org
Tue Sep 23 09:45:46 PDT 2008
#16628: py25-tkinter build failure
------------------------------------+---------------------------------------
Reporter: macri.lucas at gmail.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: closed
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Resolution: duplicate | Keywords:
Port: py25-tkinter |
------------------------------------+---------------------------------------
Changes (by macsforever2000 at macports.org):
* status: new => closed
* resolution: => duplicate
* port: => py25-tkinter
Old description:
> 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
New description:
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
--
Comment:
This is the [http://trac.macports.org/wiki/LeopardProblems 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
}}}
--
Ticket URL: <http://trac.macports.org/ticket/16628#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list