WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] The linux-headers-2.6.26-2-xen-686 can not compile successfu

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] The linux-headers-2.6.26-2-xen-686 can not compile successful
From: Yogi Huang <chi7396@xxxxxxxxxxx>
Date: Thu, 16 Jun 2011 05:28:23 -0700 (PDT)
Delivery-date: Thu, 16 Jun 2011 18:55:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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/...".
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
<Prev in Thread] Current Thread [Next in Thread>