<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>breakthesystem &#187; macports</title>
	<atom:link href="http://breakthesystem.org/tag/macports/feed/" rel="self" type="application/rss+xml" />
	<link>http://breakthesystem.org</link>
	<description>Elegante Anwendungen für Web, iPhone und Mac</description>
	<lastBuildDate>Fri, 25 Feb 2011 19:15:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Solving all your MacPorts problems</title>
		<link>http://breakthesystem.org/2008/solving-all-your-macports-problems/</link>
		<comments>http://breakthesystem.org/2008/solving-all-your-macports-problems/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 11:45:25 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://breakthesystem.org/?p=53</guid>
		<description><![CDATA[I just found the reason behind a bug in MacPorts that has been annoying the hell out of me the last few months: Sometimes, when installing new ports, the installation will die at the compilation stage with an error similar to this:
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -I/opt/local/include -I/opt/local/include/python2.5 -c _tkinter.c -o build/temp.macosx-10.3-i386-2.5/_tkinter.o
unable to execute [...]]]></description>
			<content:encoded><![CDATA[<p>I just found the reason behind a bug in <a href="http://trac.macosforge.org/projects/macports/">MacPorts</a> that has been annoying the hell out of me the last few months: Sometimes, when installing new ports, the installation will die at the compilation stage with an error similar to this:<span id="more-53"></span></p>
<pre>-DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -I/opt/local/include -I/opt/local/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</pre>
<p>Seems like the port doesn&#8217;t call <code>gcc [args]</code> to compile the binary, but only the [args], which often start with <code>-DNDEBUG</code>. (which, incidentally, is hard to google for, because of the minus sign.)</p>
<p>afb@macports.org has the reason for this:</p>
<blockquote><p>It seems that those python ports are expecting $CC to be set in build as well as in configure, and fall back to random values such as &#8220;&#8221; or &#8220;cc&#8221; or &#8220;/usr/bin/gcc-4.0&#8243; when it isn&#8217;t. This probably also explains why rerunning the build sometimes succeeds, if something else was adding a $CC to the environment that can be picked up as a lucky guess second time.</p></blockquote>
<p>A workaround is setting the <code>build.enc</code> environment variable like so:</p>
<pre>sudo su
password:
set build.env="CC=gcc"
</pre>
<p>and then run port. <a href="http://trac.macosforge.org/projects/macports/ticket/13930">Here&#8217;s the ticket for more info.</a></p>
 ]]></content:encoded>
			<wfw:commentRss>http://breakthesystem.org/2008/solving-all-your-macports-problems/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

