<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to Cross Compile the Bash shell for Android 1.5</title>
	<atom:link href="http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html</link>
	<description>Original computing articles by a systems administrator</description>
	<lastBuildDate>Wed, 07 Sep 2011 00:44:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: smith</title>
		<link>http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html/comment-page-1#comment-44085</link>
		<dc:creator>smith</dc:creator>
		<pubDate>Wed, 07 Sep 2011 00:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.kbrandt.com/?p=334#comment-44085</guid>
		<description>You might want to see the updated instructions to compile latest BASH on Android:

http://www.compdigitec.com/labs/2011/09/04/compiling-bash-for-android-2-x/

Found it through Google, it works perfect.</description>
		<content:encoded><![CDATA[<p>You might want to see the updated instructions to compile latest BASH on Android:</p>
<p><a href="http://www.compdigitec.com/labs/2011/09/04/compiling-bash-for-android-2-x/" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://www.compdigitec.com/labs/2011/09/04/compiling-bash-for-android-2-x/');" rel="nofollow">http://www.compdigitec.com/labs/2011/09/04/compiling-bash-for-android-2-x/</a></p>
<p>Found it through Google, it works perfect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander R Pruss</title>
		<link>http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html/comment-page-1#comment-35113</link>
		<dc:creator>Alexander R Pruss</dc:creator>
		<pubDate>Sat, 11 Jun 2011 18:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.kbrandt.com/?p=334#comment-35113</guid>
		<description>Thanks for posting.  I just used this method to compile tar.  But because there were multiple makefiles, instead of adding -static to each makefile, I just did 
  CC=&#039;arm-none-linux-gnueabi-gcc -static&#039; ./configure [other options]
That did it everywhere.</description>
		<content:encoded><![CDATA[<p>Thanks for posting.  I just used this method to compile tar.  But because there were multiple makefiles, instead of adding -static to each makefile, I just did<br />
  CC=&#8217;arm-none-linux-gnueabi-gcc -static&#8217; ./configure [other options]<br />
That did it everywhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amar</title>
		<link>http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html/comment-page-1#comment-33385</link>
		<dc:creator>Amar</dc:creator>
		<pubDate>Thu, 26 May 2011 18:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.kbrandt.com/?p=334#comment-33385</guid>
		<description>Hi,
Really looks a nice tutorial. I am gonna try this to cross compile bash for my android phone.
Just one typo I have noticed, you have menioned &quot;adp&quot; some place instead of &quot;adb&quot;.

Thanks,
Amar</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Really looks a nice tutorial. I am gonna try this to cross compile bash for my android phone.<br />
Just one typo I have noticed, you have menioned &#8220;adp&#8221; some place instead of &#8220;adb&#8221;.</p>
<p>Thanks,<br />
Amar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Schrecker</title>
		<link>http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html/comment-page-1#comment-33139</link>
		<dc:creator>Marius Schrecker</dc:creator>
		<pubDate>Tue, 24 May 2011 09:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kbrandt.com/?p=334#comment-33139</guid>
		<description>UPDATE:

It seems that only bash 4.2 has this problem. 4.1 compiled without issues.

Cheers!</description>
		<content:encoded><![CDATA[<p>UPDATE:</p>
<p>It seems that only bash 4.2 has this problem. 4.1 compiled without issues.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Schrecker</title>
		<link>http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html/comment-page-1#comment-33071</link>
		<dc:creator>Marius Schrecker</dc:creator>
		<pubDate>Mon, 23 May 2011 13:38:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.kbrandt.com/?p=334#comment-33071</guid>
		<description>Hi, Thanks for very useful guide.  I&#039;m trying to do this, using bash 4.2 sources and the codesourcery compiler compiled from this source package:
 http://www.codesourcery.com/sgpp/lite/arm/portal/package8738/public/arm-none-linux-gnueabi/arm-2011.03-41-arm-none-linux-gnueabi.src.tar.bz2

The bash compile is failing on:
execute_cmd.c:2205:23: error: &#039;job_control&#039; undeclared (first use in this function)

and I can&#039;t find the necessary library anywhere to provide the function nor does disabling job-control in the bash config help.

Does anyone know how to solve this?

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi, Thanks for very useful guide.  I&#8217;m trying to do this, using bash 4.2 sources and the codesourcery compiler compiled from this source package:<br />
 <a href="http://www.codesourcery.com/sgpp/lite/arm/portal/package8738/public/arm-none-linux-gnueabi/arm-2011.03-41-arm-none-linux-gnueabi.src.tar.bz2" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://www.codesourcery.com/sgpp/lite/arm/portal/package8738/public/arm-none-linux-gnueabi/arm-2011.03-41-arm-none-linux-gnueabi.src.tar.bz2');" rel="nofollow">http://www.codesourcery.com/sgpp/lite/arm/portal/package8738/public/arm-none-linux-gnueabi/arm-2011.03-41-arm-none-linux-gnueabi.src.tar.bz2</a></p>
<p>The bash compile is failing on:<br />
execute_cmd.c:2205:23: error: &#8216;job_control&#8217; undeclared (first use in this function)</p>
<p>and I can&#8217;t find the necessary library anywhere to provide the function nor does disabling job-control in the bash config help.</p>
<p>Does anyone know how to solve this?</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matter</title>
		<link>http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html/comment-page-1#comment-28063</link>
		<dc:creator>matter</dc:creator>
		<pubDate>Thu, 31 Mar 2011 00:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.kbrandt.com/?p=334#comment-28063</guid>
		<description>Mostly helpful and thank you!

Watch out if you copy and paste Qistoph&#039;s ./configure options, those are not dashes!

The ./configure routine works great if you make a symlink to the compiler:

$ ls -l `which arm-linux-gcc`
lrwxrwxrwx 1 root root 74 Mar 30 17:29 /usr/bin/arm-linux-gcc -&gt; /home/matter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc

Then you don&#039;t need to fuss around with the Makefile at all.

Tested on bash-4.0 and bash-4.1, but bash-4.2 throws this error:


$ make

	  ***********************************************************
	  *                                                         *
	  * GNU bash, version 4.2.0(1)-release (arm-unknown-linux-gnu)
	  *                                                         *
	  ***********************************************************

rm -f execute_cmd.o
arm-linux-gcc  -DPROGRAM=&#039;&quot;bash&quot;&#039; -DCONF_HOSTTYPE=&#039;&quot;arm&quot;&#039; -DCONF_OSTYPE=&#039;&quot;linux-gnu&quot;&#039; -DCONF_MACHTYPE=&#039;&quot;arm-unknown-linux-gnu&quot;&#039; -DCONF_VENDOR=&#039;&quot;unknown&quot;&#039; -DLOCALEDIR=&#039;&quot;/opt/arm_bash/share/locale&quot;&#039; -DPACKAGE=&#039;&quot;bash&quot;&#039; -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g -O2 -c execute_cmd.c
execute_cmd.c: In function &#039;execute_in_subshell&#039;:
execute_cmd.c:1507:5: warning: passing argument 1 of &#039;execute_command_internal&#039; discards qualifiers from pointer target type
execute_cmd.c:522:1: note: expected &#039;struct COMMAND *&#039; but argument is of type &#039;volatile struct COMMAND *&#039;
execute_cmd.c: In function &#039;execute_pipeline&#039;:
execute_cmd.c:2205:23: error: &#039;job_control&#039; undeclared (first use in this function)
execute_cmd.c:2205:23: note: each undeclared identifier is reported only once for each function it appears in
execute_cmd.c: In function &#039;execute_function&#039;:
execute_cmd.c:4243:3: warning: passing argument 1 of &#039;array_rshift&#039; discards qualifiers from pointer target type
array.h:56:12: note: expected &#039;struct ARRAY *&#039; but argument is of type &#039;volatile struct ARRAY *&#039;
execute_cmd.c:4245:3: warning: passing argument 1 of &#039;array_rshift&#039; discards qualifiers from pointer target type
array.h:56:12: note: expected &#039;struct ARRAY *&#039; but argument is of type &#039;volatile struct ARRAY *&#039;
execute_cmd.c:4320:3: warning: passing argument 1 of &#039;array_shift&#039; discards qualifiers from pointer target type
array.h:55:23: note: expected &#039;struct ARRAY *&#039; but argument is of type &#039;volatile struct ARRAY *&#039;
execute_cmd.c:4321:3: warning: passing argument 1 of &#039;array_shift&#039; discards qualifiers from pointer target type
array.h:55:23: note: expected &#039;struct ARRAY *&#039; but argument is of type &#039;volatile struct ARRAY *&#039;
make: *** [execute_cmd.o] Error 1

Have fun!</description>
		<content:encoded><![CDATA[<p>Mostly helpful and thank you!</p>
<p>Watch out if you copy and paste Qistoph&#8217;s ./configure options, those are not dashes!</p>
<p>The ./configure routine works great if you make a symlink to the compiler:</p>
<p>$ ls -l `which arm-linux-gcc`<br />
lrwxrwxrwx 1 root root 74 Mar 30 17:29 /usr/bin/arm-linux-gcc -&gt; /home/matter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc</p>
<p>Then you don&#8217;t need to fuss around with the Makefile at all.</p>
<p>Tested on bash-4.0 and bash-4.1, but bash-4.2 throws this error:</p>
<p>$ make</p>
<p>	  ***********************************************************<br />
	  *                                                         *<br />
	  * GNU bash, version 4.2.0(1)-release (arm-unknown-linux-gnu)<br />
	  *                                                         *<br />
	  ***********************************************************</p>
<p>rm -f execute_cmd.o<br />
arm-linux-gcc  -DPROGRAM=&#8217;&#8221;bash&#8221;&#8216; -DCONF_HOSTTYPE=&#8217;&#8221;arm&#8221;&#8216; -DCONF_OSTYPE=&#8217;&#8221;linux-gnu&#8221;&#8216; -DCONF_MACHTYPE=&#8217;&#8221;arm-unknown-linux-gnu&#8221;&#8216; -DCONF_VENDOR=&#8217;&#8221;unknown&#8221;&#8216; -DLOCALEDIR=&#8217;&#8221;/opt/arm_bash/share/locale&#8221;&#8216; -DPACKAGE=&#8217;&#8221;bash&#8221;&#8216; -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g -O2 -c execute_cmd.c<br />
execute_cmd.c: In function &#8216;execute_in_subshell&#8217;:<br />
execute_cmd.c:1507:5: warning: passing argument 1 of &#8216;execute_command_internal&#8217; discards qualifiers from pointer target type<br />
execute_cmd.c:522:1: note: expected &#8216;struct COMMAND *&#8217; but argument is of type &#8216;volatile struct COMMAND *&#8217;<br />
execute_cmd.c: In function &#8216;execute_pipeline&#8217;:<br />
execute_cmd.c:2205:23: error: &#8216;job_control&#8217; undeclared (first use in this function)<br />
execute_cmd.c:2205:23: note: each undeclared identifier is reported only once for each function it appears in<br />
execute_cmd.c: In function &#8216;execute_function&#8217;:<br />
execute_cmd.c:4243:3: warning: passing argument 1 of &#8216;array_rshift&#8217; discards qualifiers from pointer target type<br />
array.h:56:12: note: expected &#8216;struct ARRAY *&#8217; but argument is of type &#8216;volatile struct ARRAY *&#8217;<br />
execute_cmd.c:4245:3: warning: passing argument 1 of &#8216;array_rshift&#8217; discards qualifiers from pointer target type<br />
array.h:56:12: note: expected &#8216;struct ARRAY *&#8217; but argument is of type &#8216;volatile struct ARRAY *&#8217;<br />
execute_cmd.c:4320:3: warning: passing argument 1 of &#8216;array_shift&#8217; discards qualifiers from pointer target type<br />
array.h:55:23: note: expected &#8216;struct ARRAY *&#8217; but argument is of type &#8216;volatile struct ARRAY *&#8217;<br />
execute_cmd.c:4321:3: warning: passing argument 1 of &#8216;array_shift&#8217; discards qualifiers from pointer target type<br />
array.h:55:23: note: expected &#8216;struct ARRAY *&#8217; but argument is of type &#8216;volatile struct ARRAY *&#8217;<br />
make: *** [execute_cmd.o] Error 1</p>
<p>Have fun!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Hamelink</title>
		<link>http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html/comment-page-1#comment-8491</link>
		<dc:creator>John Hamelink</dc:creator>
		<pubDate>Fri, 05 Feb 2010 15:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.kbrandt.com/?p=334#comment-8491</guid>
		<description>Thanks alot, Kyle &amp; Qistoph. An amalgamation of both your methods worked for me. I&#039;m going to try and compile links next :D</description>
		<content:encoded><![CDATA[<p>Thanks alot, Kyle &amp; Qistoph. An amalgamation of both your methods worked for me. I&#8217;m going to try and compile links next <img src='http://www.kbrandt.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html/comment-page-1#comment-7601</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Fri, 25 Dec 2009 22:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.kbrandt.com/?p=334#comment-7601</guid>
		<description>im currently trying to cross compile the glasgow haskell compiler for android. due to not really being familiar with linux i tried to apply your instructions to the windows version of the code sourcery g++ tool. well... didn&#039;t work out. you dont happen to know how to conduct the second step in windows? thanks!</description>
		<content:encoded><![CDATA[<p>im currently trying to cross compile the glasgow haskell compiler for android. due to not really being familiar with linux i tried to apply your instructions to the windows version of the code sourcery g++ tool. well&#8230; didn&#8217;t work out. you dont happen to know how to conduct the second step in windows? thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Qistoph</title>
		<link>http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html/comment-page-1#comment-6256</link>
		<dc:creator>Qistoph</dc:creator>
		<pubDate>Tue, 06 Oct 2009 16:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.kbrandt.com/?p=334#comment-6256</guid>
		<description>Thanks for the tutorial.

I had to change some commands to get it to compile.
The CC en PATH was useless. And I used a modified ./configure command:

./configure --prefix=/opt/arm_bash/ --build=i686-pc-linux-gnu --host=arm-linux --enable-static-link --without-bash-malloc CC=/home/chris/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc

What might be good to know too, is that you need the cross compiler for GNU/Linux from Code Sourcery.</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial.</p>
<p>I had to change some commands to get it to compile.<br />
The CC en PATH was useless. And I used a modified ./configure command:</p>
<p>./configure &#8211;prefix=/opt/arm_bash/ &#8211;build=i686-pc-linux-gnu &#8211;host=arm-linux &#8211;enable-static-link &#8211;without-bash-malloc CC=/home/chris/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc</p>
<p>What might be good to know too, is that you need the cross compiler for GNU/Linux from Code Sourcery.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

