drbd module compiling error for Kernel

Hi I am trying to install drbd8 via apt-get on ubuntu10

sudo apt-get install drbd8-source
[sudo] password for vishals:
Reading package lists... Done
Building dependency tree
Reading state information... Done
drbd8-source is already the newest version.
drbd8-source set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up drbd8-source (2:8.3.7-1ubuntu2.2) ...

Done.
Loading new drbd8-8.3.7 DKMS files...
First Installation: checking all kernels...
Building only for 2.6.32-343-ec2
Building for architecture x86_64
Building initial module for 2.6.32-343-ec2

Error! Bad return status for module build on kernel: 2.6.32-343-ec2 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/drbd8/8.3.7/build/ for more information.
dpkg: error processing drbd8-source (--configure):
 subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
 drbd8-source
E: Sub-process /usr/bin/dpkg returned an error code (1)

when i look at the make.log it says.

DKMS make.log for drbd8-8.3.7 for kernel 2.6.32-343-ec2 (x86_64)
Fri Apr 20 06:41:59 UTC 2012
make: Entering directory `/var/lib/dkms/drbd8/8.3.7/build/drbd'

    Calling toplevel makefile of kernel source tree, which I believe is in
    KDIR=/lib/modules/2.6.32-343-ec2/build

test -f ../scripts/adjust_drbd_config_h.sh && \
         KDIR=/lib/modules/2.6.32-343-ec2/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh
make: [kbuild] Error 1 (ignored)
make -C /lib/modules/2.6.32-343-ec2/build   SUBDIRS=/var/lib/dkms/drbd8/8.3.7/build/drbd  modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-343-ec2'
  Updating /var/lib/dkms/drbd8/8.3.7/build/drbd/Makefile.xen
  CC [M]  /var/lib/dkms/drbd8/8.3.7/build/drbd/drbd_buildtag.o
In file included from /usr/src/linux-headers-2.6.32-343-ec2/arch/x86/include/asm/unistd.h:5,
                 from include/linux/unistd.h:7,
                 from /usr/src/linux-headers-2.6.32-343-ec2/arch/x86/include/asm/seccomp_64.h:4,
                 from /usr/src/linux-headers-2.6.32-343-ec2/arch/x86/include/asm/seccomp.h:4,
                 from include/linux/seccomp.h:8,
                 from include/linux/sched.h:80,
                 from /usr/src/linux-headers-2.6.32-343-ec2/arch/x86/include/mach-xen/asm/pgtable_64.h:16,
                 from /usr/src/linux-headers-2.6.32-343-ec2/arch/x86/include/mach-xen/asm/pgtable.h:304,
                 from include/linux/mm.h:39,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dma-mapping.h:7,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:30,
                 from include/linux/if_ether.h:124,
                 from include/linux/netdevice.h:29,
                 from include/net/sock.h:50,
                 from include/linux/connector.h:80,
                 from /var/lib/dkms/drbd8/8.3.7/build/drbd/linux/drbd.h:29,
                 from /var/lib/dkms/drbd8/8.3.7/build/drbd/drbd_buildtag.c:2:
/usr/src/linux-headers-2.6.32-343-ec2/arch/x86/include/asm/unistd_64.h:693:29: error: asm/asm-offsets.h: No such file or directory
make[2]: *** [/var/lib/dkms/drbd8/8.3.7/build/drbd/drbd_buildtag.o] Error 1
make[1]: *** [_module_/var/lib/dkms/drbd8/8.3.7/build/drbd] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-343-ec2'
make: *** [kbuild] Error 2
make: Leaving directory `/var/lib/dkms/drbd8/8.3.7/build/drbd'

This mean that something is missing during source compilation against kernel.

Any help appreciated.

Thanks,
Vishal

---------- Post updated at 12:39 PM ---------- Previous update was at 12:15 PM ----------

Never mind, i was able to figure out the actual problem and solution.

Here is the solution for everyone.

main error is

/usr/src/linux-headers-2.6.32-343-ec2/arch/x86/include/asm/unistd_64.h:693:29: error: asm/asm-offsets.h: No such file or directory

where unistd_64.h was trying to find asm-offsets.h. since its 64 bit that is why this should point to 64 bit files.
When i look at the directory structure asm directory was a sym link to 64 bit directory like

lrwxrwxrwx   1 root root    10 2012-04-13 05:54 asm -> asm-x86_64

But this was broken because the correct directory name was "asm-x86" instead of "asm-x86_64". I make a new sym link

lrwxrwxrwx   1 root root     7 2012-04-20 06:54 asm -> asm-x86

and now it worked.