{"id":755,"date":"2010-05-14T04:13:12","date_gmt":"2010-05-14T08:13:12","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=755"},"modified":"2013-03-20T08:42:48","modified_gmt":"2013-03-20T12:42:48","slug":"mpt-status-h628-error-linuxcompiler-h-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/mpt-status-h628-error-linuxcompiler-h-no-such-file-or-directory","title":{"rendered":"mpt-status.h:6:28: error: linux\/compiler.h: No such file or directory"},"content":{"rendered":"<p>While compiling &#8216;mpt-status&#8217; tool with the kernel source, you may receive a &#8216;linux\/compiler.h: No such file or directory&#8217; message.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">mpt-status.h:6:28:error: linux\/compiler.h: No such file or directory<\/span>\r\n<span style=\"color: #0000ff;\">make: *** [mpt-status] Error 1<\/span><\/pre>\n<\/blockquote>\n<p>The reason is the missing compiler.h header file which isn&#8217;t all that necessary. The fix is to edit the mpt-status.h file which is under the extracted directory<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># vi mpt-status.h<\/span><\/pre>\n<\/blockquote>\n<p>and remove the line which states<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">#include &lt;linux\/compiler.h&gt;<\/span><\/pre>\n<\/blockquote>\n<p>Save the file and you should be able to compile &#8216;mpt-status&#8217; using &#8220;make&#8221; with the kernel source.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While compiling &#8216;mpt-status&#8217; tool with the kernel source, you may receive a &#8216;linux\/compiler.h: No such file or directory&#8217; message.<\/p>\n<p>mpt-status.h:6:28:error: linux\/compiler.h: No such file or directory<br \/>\nmake: *** [mpt-status] Error 1<\/p>\n<p>The reason is the missing compiler.h header file which isn&#8217;t all that necessary. The fix is to edit the mpt-status.h file which is under the extracted directory<\/p>\n<p># vi mpt-status.h<\/p>\n<p>and remove the line which states<\/p>\n<p>#include &lt;linux\/compiler.h&gt;<\/p>\n<p>Save the file and you should be able to compile &#8216;mpt-status&#8217; using &#8220;make&#8221; with the kernel source.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[842,840,841,844,843],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/755"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=755"}],"version-history":[{"count":6,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/755\/revisions"}],"predecessor-version":[{"id":2207,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/755\/revisions\/2207"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}