Thanks for the responses.&nbsp; It helped knowing that my gnu compiler/c library configuration was correct.&nbsp; It also helped knowing what the bbconfigopts.h was supposed to look like.<br><br>I did some digging into the problem and found the following.&nbsp; The immediate cause of my problem is that Ubuntu 
6.1 uses the &quot;dash&quot; shell 0.5.3-3 for /bin/sh.&nbsp; At the same time, scripts/mkconfigs uses an echo &quot;`...`&quot; construction for generating bbconfigopts.h.&nbsp; This construction contains a &quot;\n&quot; sequence, which the dash echo command interprets literally.&nbsp; (See the attached 
bbconfigopts.h production to see what happens.)&nbsp; <br><br>Linking /bin/sh to /bin/bash resolved this problem and allowed the build to complete successfully.<br><br>The fix that could be made to scripts/mkconfigs in order to work more generally, be less indirect, and avoid some of the backslash quoting would be to eliminate the echo &quot;`...`&quot; construction and just execute the command directly.&nbsp; That is, change this:
<br><br>echo &quot;`sed &#39;s/\&quot;/\\\\\&quot;/g&#39; $config | grep &quot;^#\? \?CONFIG_&quot; | awk &#39;{print &quot;\\&quot;&quot; $0 &quot;\\\\n\\&quot;&quot;;}&#39;`&quot;<br><br>to this:<br><br>sed &#39;s/\&quot;/\\\\\&quot;/g&#39; $config | grep &quot;^#\? \?CONFIG_&quot; | awk &#39;{print &quot;\&quot;&quot; $0 &quot;\\n\&quot;&quot;;}&#39;
<br><br>I tested this change under bash and dash and it works in both shells.<br><br><br>Alternatively, since awk is being invoked anyway, this line could be changed to just a single line awk invocation to do away with the sed, the grep, and the echo:
<br><br>awk &#39;/^#? ?CONFIG_/ {gsub(/\&quot;/,&quot;\\\\\&quot;&quot;,$0); print &quot;\&quot;&quot; $0 &quot;\\n\&quot;&quot;;}&#39; $config<br><br>I tested this change under bash and dash and it also works in both shells.
<br><br>I have also attached a patch file to mkconfigs for the single line awk version.<br><br><br><div><span class="gmail_quote">On 2/1/07, <b class="gmail_sendername">Denis Vlasenko</b> &lt;<a href="mailto:vda.linux@googlemail.com">
vda.linux@googlemail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Thursday 01 February 2007 07:26, Brion Finlay wrote:
<br>&gt; This seems like it should be a simple question that other people have had<br>&gt; problems with, but I cannot get Busybox to build.&nbsp;&nbsp;I have tried google-ing<br>&gt; for similar problems, searching the mail archives, and reading the FAQs and
<br>&gt; all of the documentation, but I cannot figure out what is going on.<br>&gt;<br>&gt; I am using a fairly fresh install of Ubuntu 6.1, and I have installed enough<br>&gt; of the development packages to build a custom kernel.&nbsp;&nbsp;(I mention this
<br>&gt; because Ubuntu does not preinstall many development packages, so it is<br>&gt; possible I am still missing some, but I have installed quite a few.)<br>&gt;<br>&gt; The GCC version is 4.1.2.<br>&gt; sed is GNU Sed version 
4.1.5<br>&gt;<br>&gt; Here are the compile problems that I get:<br>&gt;<br>&gt; Busybox 1.4.1<br>&gt; # make defconfig; make<br>&gt;<br>&gt; ...<br>&gt; include/bbconfigopts.h:1088: error: missing terminating &quot; character
<br>&gt; (repeated for each line)<br>&gt; include/bbconfigopts.h:1089: error: expected expression before &#39;;&#39; token<br>&gt; make[1]: *** [miscutils/bbconfig.o] Error 1<br>&gt; make: *** [miscutils] Error 2<br><br>gcc 
4.1.1, glibc 2.4, gnu sed 4.1.5, bbox 1.4.1:<br><br># make defconfig; make<br>&nbsp;&nbsp;HOSTCC&nbsp;&nbsp;scripts/basic/fixdep<br>&nbsp;&nbsp;HOSTCC&nbsp;&nbsp;scripts/basic/split-include<br>&nbsp;&nbsp;HOSTCC&nbsp;&nbsp;scripts/basic/docproc<br>&nbsp;&nbsp;HOSTCC&nbsp;&nbsp;scripts/kconfig/conf.o<br>
&nbsp;&nbsp;HOSTCC&nbsp;&nbsp;scripts/kconfig/kxgettext.o<br>&nbsp;&nbsp;HOSTCC&nbsp;&nbsp;scripts/kconfig/mconf.o<br>&nbsp;&nbsp;SHIPPED scripts/kconfig/zconf.tab.c<br>&nbsp;&nbsp;SHIPPED scripts/kconfig/lex.zconf.c<br>&nbsp;&nbsp;SHIPPED scripts/kconfig/zconf.hash.c<br>&nbsp;&nbsp;HOSTCC&nbsp;&nbsp;scripts/kconfig/zconf.tab.o
<br>&nbsp;&nbsp;HOSTLD&nbsp;&nbsp;scripts/kconfig/conf<br>scripts/kconfig/conf -d <a href="http://Config.in">Config.in</a><br>/.local/tmp/busybox-1.4.1/scripts/defconfig:351:warning: trying to assign nonexistent symbol E2FSCK<br>/.local/tmp/busybox-
1.4.1/scripts/defconfig:354:warning: trying to assign nonexistent symbol MKE2FS<br>/.local/tmp/busybox-1.4.1/scripts/defconfig:355:warning: trying to assign nonexistent symbol TUNE2FS<br>/.local/tmp/busybox-1.4.1/scripts/defconfig:356:warning: trying to assign nonexistent symbol E2LABEL
<br>/.local/tmp/busybox-1.4.1/scripts/defconfig:357:warning: trying to assign nonexistent symbol FINDFS<br>/.local/tmp/busybox-1.4.1/scripts/defconfig:635:warning: symbol value &#39;&#39; invalid for FEATURE_COMMAND_HISTORY
<br>*<br>* Busybox Configuration<br>*<br>*<br>* Busybox Settings<br>*<br>*<br>* General Configuration<br>*<br>See lots more (probably unnecessary) configuration options. (NITPICK) [N/y/?] n<br>Enable options for full-blown desktop systems (DESKTOP) [N/y/?] n
<br>...<br>envdir (ENVDIR) [Y/n/?] y<br>softlimit (SOFTLIMIT) [Y/n/?] y<br>&nbsp;&nbsp;SPLIT&nbsp;&nbsp; include/autoconf.h -&gt; include/config/*<br>&nbsp;&nbsp;GEN&nbsp;&nbsp;&nbsp;&nbsp; include/bbconfigopts.h<br>&nbsp;&nbsp;HOSTCC&nbsp;&nbsp;applets/usage<br>&nbsp;&nbsp;GEN&nbsp;&nbsp;&nbsp;&nbsp; include/usage_compressed.h
<br>&nbsp;&nbsp;CC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;applets/applets.o<br>&nbsp;&nbsp;CC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;applets/busybox.o<br>...<br>&nbsp;&nbsp;CC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;util-linux/switch_root.o<br>&nbsp;&nbsp;CC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;util-linux/umount.o<br>&nbsp;&nbsp;AR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;util-linux/lib.a<br>&nbsp;&nbsp;LINK&nbsp;&nbsp;&nbsp;&nbsp;busybox_unstripped<br><br>include/bbconfigopts.h from build tree is attached.
<br>--<br>vda<br><br><br></blockquote></div><br>