{"id":695,"date":"2011-01-26T15:49:33","date_gmt":"2011-01-26T14:49:33","guid":{"rendered":"http:\/\/www.dotmana.com\/index.php\/?p=695"},"modified":"2011-01-26T15:49:33","modified_gmt":"2011-01-26T14:49:33","slug":"fix-cross-compile-ntpd-4-2-6-keyword-gen-cannot-execute-binary-file","status":"publish","type":"post","link":"https:\/\/www.dotmana.com\/weblog\/2011\/01\/fix-cross-compile-ntpd-4-2-6-keyword-gen-cannot-execute-binary-file\/","title":{"rendered":"Fix cross-compile ntpd 4.2.6: keyword-gen: cannot execute binary file"},"content":{"rendered":"<p>To fix the error:<\/p>\n<blockquote><p>.\/keyword-gen .\/ntp_parser.h &gt; k-g.out<br \/>\n\/bin\/bash: .\/keyword-gen: cannot execute binary file<\/p><\/blockquote>\n<p>Change the ntpd\/Makefile.am to:<\/p>\n<p>k-g-u-submake: keyword-gen<br \/>\nif NTP_CROSSCOMPILE_FALSE<br \/>\n.\/keyword-gen $(srcdir)\/ntp_parser.h &gt; k-g.out<br \/>\n@grep -v diff_ignore_line &lt; k-g.out &gt; cmp1<br \/>\n@grep -v diff_ignore_line &lt; $(srcdir)\/ntp_keyword.h &gt; cmp2<br \/>\n@cmp cmp1 cmp2 &gt; \/dev\/null || \\<br \/>\n{ mv -f k-g.out $(srcdir)\/ntp_keyword.h &amp;&amp; \\<br \/>\necho &#8216;Generated changed ntp_keyword.h.&#8217; ;}<br \/>\n@[ ! -f k-g.out ] || \\<br \/>\n{ rm k-g.out &amp;&amp; echo &#8216;ntp_keyword.h is up to date.&#8217; ;}<br \/>\n@rm cmp1 cmp2<br \/>\n@echo &#8216;keyword-gen and ntp_keyword.h are up to date.&#8217; &gt; $@<br \/>\nendif<\/p>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">keyword-gen: cannot execute binary file<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To fix the error: .\/keyword-gen .\/ntp_parser.h &gt; k-g.out \/bin\/bash: .\/keyword-gen: cannot execute binary file Change the ntpd\/Makefile.am to: k-g-u-submake: keyword-gen if NTP_CROSSCOMPILE_FALSE .\/keyword-gen $(srcdir)\/ntp_parser.h &gt; k-g.out @grep -v diff_ignore_line &lt; k-g.out &gt; cmp1 @grep -v diff_ignore_line &lt; $(srcdir)\/ntp_keyword.h &gt; cmp2 &hellip; <a href=\"https:\/\/www.dotmana.com\/weblog\/2011\/01\/fix-cross-compile-ntpd-4-2-6-keyword-gen-cannot-execute-binary-file\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-695","post","type-post","status-publish","format-standard","hentry","category-embedded"],"_links":{"self":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/comments?post=695"}],"version-history":[{"count":1,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/695\/revisions"}],"predecessor-version":[{"id":696,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/695\/revisions\/696"}],"wp:attachment":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/media?parent=695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/categories?post=695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/tags?post=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}