{"id":112,"date":"2010-12-29T23:53:44","date_gmt":"2010-12-30T03:53:44","guid":{"rendered":"http:\/\/blogs.tulsalabs.com\/?p=112"},"modified":"2025-11-12T02:24:50","modified_gmt":"2025-11-12T06:24:50","slug":"building-slugos-53-beta-on-fedora-core-14","status":"publish","type":"post","link":"http:\/\/blogs.tulsalabs.com\/?p=112","title":{"rendered":"Building SlugOS 5.3-beta on Fedora Core 14"},"content":{"rendered":"<pre>  102  yum install help2man\r\n  104  yum install texi2html\r\n  116  yum install glibc-static\r\n  117  vi \/kanigix\/slugos\/5.3\/slugos-nslu2be.tmp\/work\/x86_64-linux\/unifdef-native-2.6.18+git-r0\/unifdef.c<\/pre>\n<p>The last was to change <em>getline()<\/em> to <em>getline2()<\/em> to avoid a conflict.<\/p>\n<p>Very nasty one here for this message:<\/p>\n<pre>\r\n[tdh@wont 5.3]$ more \/kanigix\/slugos\/5.3\/slugos-nslu2be.tmp\/work\/armv5teb-linux-gnueabi\/linux-libc-headers-2.6.23-r3\/temp\/log.do_configure.13663\r\nNOTE: make -e MAKEFLAGS= allnoconfig ARCH=arm\r\nMakefile:416: *** mixed implicit and normal rules.  Stop.\r\nFATAL: oe_runmake failed\r\n<\/pre>\n<p>(Note: You could probably build easier against make-3.81 instead of make-3.82 !)<\/p>\n<p>Edit these two files to apply this <a href=\"http:\/\/bugs.gentoo.org\/attachment.cgi?id=248616\">diff<\/a>:<\/p>\n<pre>\r\n[tdh@wont 5.3]$ find . -name Makefile | grep glibc | grep  manual.\/slugos-nslu2be.tmp\/work\/armv5teb-linux-gnueabi\/glibc-initial-2.6.1-r15\/glibc-2.6.1\/manual\/Makefile\r\n.\/slugos-nslu2be.tmp\/work\/armv5teb-linux-gnueabi\/glibc-2.6.1-r15\/glibc-2.6.1\/manual\/Makefile\r\n<\/pre>\n<p>And also apply this patch to <\/p>\n<pre>\r\n\/kanigix\/slugos\/5.3\/slugos-nslu2be.tmp\/work\/armv5teb-linux-gnueabi\/linux-libc-headers-2.6.23-r3\/linux-2.6.23\/Makefile\r\n<\/pre>\n<pre>\r\n[tdh@wont linux-2.6.23]$ diff -u Makefile Makefile.STOCK \r\n--- Makefile\t2010-12-29 18:23:58.176755981 -0600\r\n+++ Makefile.STOCK\t2010-12-29 18:21:43.405298124 -0600\r\n@@ -413,11 +413,7 @@\r\n include $(srctree)\/arch\/$(ARCH)\/Makefile\r\n export KBUILD_DEFCONFIG\r\n \r\n-config: scripts_basic outputmakefile FORCE\r\n-\t$(Q)mkdir -p include\/linux include\/config\r\n-\t$(Q)$(MAKE) $(build)=scripts\/kconfig $@\r\n-\r\n-%config: scripts_basic outputmakefile FORCE\r\n+config %config: scripts_basic outputmakefile FORCE\r\n \t$(Q)mkdir -p include\/linux include\/config\r\n \t$(Q)$(MAKE) $(build)=scripts\/kconfig $@\r\n \r\n@@ -1467,10 +1463,7 @@\r\n \t$(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)\r\n \r\n # Modules\r\n-\/: prepare scripts FORCE\r\n-\t$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \\\r\n-\t$(build)=$(build-dir)\r\n-%\/: prepare scripts FORCE\r\n+\/ %\/: prepare scripts FORCE\r\n \t$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \\\r\n \t$(build)=$(build-dir)\r\n %.ko: prepare scripts FORCE\r\n<\/pre>\n<p>And do the getline2() trick here: <\/p>\n<pre>\r\n\/kanigix\/slugos\/5.3\/slugos-nslu2be.tmp\/work\/armv5teb-linux-gnueabi\/linux-libc-headers-2.6.23-r3\/linux-2.6.23\/scripts\/unifdef.c \r\n<\/pre>\n<p>And more:<\/p>\n<pre>\r\n\r\n[tdh@wont busybox-1.13.2]$ pwd\r\n\/kanigix\/slugos\/5.3\/slugos-nslu2be.tmp\/work\/armv5teb-linux-gnueabi\/busybox-1.13.2-r16\/busybox-1.13.2\r\n[tdh@wont busybox-1.13.2]$ diff Makefile Makefile.STOCK \r\n421,425c421\r\n< config: scripts_basic outputmakefile FORCE\r\n< \t$(Q)mkdir -p include\r\n< \t$(Q)$(MAKE) $(build)=scripts\/kconfig $@\r\n< \t$(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease\r\n< %config: scripts_basic outputmakefile FORCE\r\n---\r\n> config %config: scripts_basic outputmakefile FORCE\r\n1273,1276c1269\r\n< \/: prepare scripts FORCE\r\n< \t$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \\\r\n< \t$(build)=$(build-dir)\r\n< %\/: prepare scripts FORCE\r\n---\r\n> \/ %\/: prepare scripts FORCE\r\n<\/pre>\n<p>Keep on fixing these as you found they broke. Consider again trying make-3.81!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>102 yum install help2man 104 yum install texi2html 116 yum install glibc-static 117 vi \/kanigix\/slugos\/5.3\/slugos-nslu2be.tmp\/work\/x86_64-linux\/unifdef-native-2.6.18+git-r0\/unifdef.c The last was to change getline() to getline2() to avoid a&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,9,18],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-linux","category-systems","category-tricks"],"_links":{"self":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=112"}],"version-history":[{"count":9,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":375,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions\/375"}],"wp:attachment":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}