[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] The linux-headers-2.6.26-2-xen-686 can not compile successful



On Thu, 2011-06-16 at 13:28 +0100, Yogi Huang wrote:
> Hi all,
> 
> 
> I want to get the page table entry by kernel function, and there are
> only standard headers of my system,
> then I  install the package "linux-headers-2.6.26-2-xen-686;
>  linux-headers-2.6.26-2-common-xen " by Synapic.
> But the gcc compile fail (error: there is no such file), so I use
> symbolic link (ln -s) to build path under the "/usr/include/...".

These headers are provided for the purpose of compiling 3rd party
modules against a specific kernel build. Building a 3rd party module
requires specific build infrastructure scaffolding which you don't seem
to have (presumably because you are not building a kernel module?).

These headers are not for general consumption and you should not expect
to be able to use them apart from building modules for the
2.6.26-2-xen-686 kernel binary.

What are you actually trying to achieve? If you lets us know your goal
perhaps we can offer some advice.

Ian.

> 
> After add the symbolic link, there are still others problems as
> following:
> ***
> /usr/include/linux/memory_hotplug.h:202:32: error: unknown type name
> âu64â
> /usr/include/linux/gfp.h:182:54: error: unknown type name âgfp_tâ
> /usr/include/linux/gfp.h:215:39: error: unknown type name âgfp_tâ
> /usr/include/linux/gfp.h:216:38: error: unknown type name âgfp_tâ
> In file included from /usr/include/linux/percpu.h:5:0,
>                  from /usr/include/asm/local.h:4,
>                  from /usr/include/linux/module.h:19,
>                  from 0616_3.c:4:
> /usr/include/linux/slab.h:99:21: error: expected â=â, â,â, â;â, âasmâ
> or â__attribute__â before âkreallocâ
> In file included from /usr/include/linux/slab.h:127:0,
>                  from /usr/include/linux/percpu.h:5,
>                  from /usr/include/asm/local.h:4,
>                  from /usr/include/linux/module.h:19,
>                  from 0616_3.c:4:
> ...
> 
> 
> /usr/include/asm/module.h: At top level:
> /usr/include/asm/module.h:70:2: error: #error unknown processor family
> In file included from 0616_3.c:7:0:
> /usr/include/asm/pgtable.h:165:29: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:170:29: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:175:29: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:180:28: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:185:28: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:190:30: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:195:28: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:200:31: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:205:29: error: unknown type name âpmd_tâ
> /usr/include/asm/pgtable.h:211:1: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:211:33: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:216:1: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:216:31: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:221:1: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:221:35: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:226:1: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:226:32: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:231:1: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:231:33: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:236:1: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:236:33: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:241:1: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:241:33: error: unknown type name âpte_tâ
> ...
> /usr/include/asm/pgtable.h:271:1: error: unknown type name âpteval_tâ
> /usr/include/asm/pgtable.h:273:1: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:273:52: error: unknown type name âpgprot_tâ
> /usr/include/asm/pgtable.h:279:1: error: unknown type name âpmd_tâ
> /usr/include/asm/pgtable.h:279:52: error: unknown type name âpgprot_tâ
> /usr/include/asm/pgtable.h:285:1: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:285:32: error: unknown type name âpte_tâ
> /usr/include/asm/pgtable.h:285:43: error: unknown type name âpgprot_tâ
> /usr/include/asm/pgtable.h:301:1: error: unknown type name âpgprot_tâ
> /usr/include/asm/pgtable.h:301:38: error: unknown type name âpgprot_tâ
> /usr/include/asm/pgtable.h:301:56: error: unknown type name âpgprot_tâ
> /usr/include/asm/pgtable.h:315:1: error: unknown type name âpgprot_tâ
> /usr/include/asm/pgtable.h:316:51: error: unknown type name âpgprot_tâ
> /usr/include/asm/pgtable.h:318:51: error: unknown type name âpgprot_tâ
> In file included from /usr/include/asm/pgtable.h:359:0,
>                  from 0616_3.c:7:
> /usr/include/pgtable_64.h:16:1: error: unknown type name âpud_tâ
> /usr/include/pgtable_64.h:17:1: error: unknown type name âpud_tâ
> /usr/include/pgtable_64.h:18:1: error: unknown type name âpmd_tâ
> /usr/include/pgtable_64.h:19:1: error: unknown type name âpgd_tâ
> /usr/include/pgtable_64.h:74:9: error: unknown type name âpte_tâ
> /usr/include/pgtable_64.h:79:35: error: unknown type name âpte_tâ
> /usr/include/pgtable_64.h:79:48: error: unknown type name âpte_tâ
> /usr/include/pgtable_64.h:84:42: error: unknown type name âpte_tâ
> /usr/include/pgtable_64.h:84:55: error: unknown type name âpte_tâ
> /usr/include/pgtable_64.h:89:1: error: unknown type name âpte_tâ
> /usr/include/pgtable_64.h:89:47: error: unknown type name âpte_tâ
> /usr/include/pgtable_64.h:102:35: error: unknown type name âpmd_tâ
> /usr/include/pgtable_64.h:102:48: error: unknown type name âpmd_tâ
> /usr/include/pgtable_64.h:107:37: error: unknown type name âpmd_tâ
> /usr/include/pgtable_64.h:112:35: error: unknown type name âpud_tâ
> /usr/include/pgtable_64.h:112:48: error: unknown type name âpud_tâ
> /usr/include/pgtable_64.h:117:37: error: unknown type name âpud_tâ
> /usr/include/pgtable_64.h:122:35: error: unknown type name âpgd_tâ
> /usr/include/pgtable_64.h:122:48: error: unknown type name âpgd_tâ
> /usr/include/pgtable_64.h:127:37: error: unknown type name âpgd_tâ
> /usr/include/pgtable_64.h:154:27: error: unknown type name âpgd_tâ
> /usr/include/pgtable_64.h:159:27: error: unknown type name âpud_tâ
> /usr/include/pgtable_64.h:164:27: error: unknown type name âpmd_tâ
> /usr/include/pgtable_64.h:197:29: error: unknown type name âpgd_tâ
> /usr/include/pgtable_64.h:210:29: error: unknown type name âpud_tâ
> ...
> ***
> can anyone help?
> 
> 
> 
> 
> # uname -a
> Linux yogi-pc1 2.6.26-2-xen-686 #1 SMP Thu May 13 03:15:21 UTC 2010
> i686 GNU/Linux
> # dpkg -l |grep header
> ii  comerr-dev
>  2.1-1.41.3-1               common error description library - headers
> and static l
> ii  libssh2-1-dev                                             0.18-1
> SSH2 client-side library (development headers)
> ii  libssl-dev
> 0.9.8g-15+lenny6           SSL development libraries, header files and
> documentati
> ii  linux-headers-2.6.26-2-common-xen         2.6.26-26lenny2
>    Common header files for Linux 2.6.26-2-xen
> ii  linux-headers-2.6.26-2-xen-686                2.6.26-26lenny2
>        Header files for Linux 2.6.26-2-xen-686
> ii  linux-libc-dev
> 2.6.26-21lenny4            Linux support headers for userspace
> development
>   
> # ls /usr/ 
> bin  games  include  lib  local  sbin  share  src  X11R6
> # ls /usr/src/
> glibc     linux-headers-2.6.26-2-common-xen
> linux-headers-2.6.26-2-xen-686        linux-kbuild-2.6.26  rpm
> 
> 
> Thanks,
> Yogi  Huang 
> 
>   -[hidden email]
> 
> 
> 
>                                                                               
>                     
> 
> 
> 
> 
> ______________________________________________________________________
> View this message in context: The linux-headers-2.6.26-2-xen-686 can
> not compile successful
> Sent from the Xen - Dev mailing list archive at Nabble.com.



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.