<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 3, 2012, at 11:32 AM, William Harrington wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>=======Begin command snipet===============</div><div><br></div><div><div><div>sed '/src_make_prime_list/d' -i Makefile</div><div><br></div><div>depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\</div><div>        gcc -std=gnu99  -I. -I./lib  -Ilib -I./lib -Isrc -I./src  -fdiagnostics-show-option -funit-at-a-time -g -O2 -MT src/make-prime-list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o src/make-prime-list.c &&\</div><div>        mv -f $depbase.Tpo $depbase.Po</div><div>gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 -Wl,--as-needed  -o src/make-prime-list src/make-prime-list.o</div></div></div><div><br></div><div>==========End command snipet=============</div></span></blockquote></div><br><div>Okay this is the final issue of commands for it to build properly.  Not sure what is up with the hostname.1 man page. But I had to remove it from the Makefile with a sed.</div><div><br></div><div><a href="http://pastebin.cross-lfs.org/230700">http://pastebin.cross-lfs.org/230700</a></div><div><br></div><div>=============BEGIN Command snipet candidate===============</div><div><div>touch man/uname.1 man/hostname.1</div><div>./configure --prefix=/tools \</div><div>    --build=${CLFS_HOST} --host=${CLFS_TARGET} \</div><div>    --enable-install-program=hostname --cache-file=config.cache</div><div>sed '/src_make_prime_list/d' -i Makefile</div><div>depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\</div><div>        gcc -std=gnu99  -I. -I./lib  -Ilib -I./lib -Isrc -I./src  -fdiagnostics-show-option -funit-at-a-time -g -O2 -MT src/make-prime-list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o src/make-prime-list.c &&\</div><div>        mv -f $depbase.Tpo $depbase.Po</div><div>gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 -Wl,--as-needed  -o src/make-prime-list src/make-prime-list.o</div><div>sed -i '/hostname.1/d' -i Makefile</div><div>make</div><div>make install</div></div><div>==============END Command snipet cnadidate=================</div><div><br></div><div>Seems like a lot to put in the book for this, but hey! Until coreutils makes a patch or releases a fix, this is it for now</div><div><br></div><div>If it works for others I'll commit it to the book later this afternoon.</div><div><br></div><div>Sincerely,</div><div><br></div><div>William Harrington</div></body></html>