Juniper / contrail-vrouter

Contrail Virtual Router
BSD 2-Clause "Simplified" License
217 stars 169 forks source link

Compilation for xenserver 6.5 #88

Open stipmonster opened 8 years ago

stipmonster commented 8 years ago

HI i am trying to compile the vrouter.ko for xenserver 6.5. I have downloaded the kernel sources iso from the xenserver website and used the scons --kernel-dir=~/3.10.0+2-x86_64/ --system-header-path=~/3.10.0+2-x86_64/ vrouter command to compile it when i try to load it the following error shows in demise vrouter: Unknown symbol __fentry__ (err 0)

I tried multiple versions all give the same error. Any idea if this is a bug or am i doing something wrong?

anandhk-juniper commented 8 years ago

This, typically, means that the kernel that you are compiling against is not the same as the kernel that you are running. I can find fentry in my 'less /proc/kallsyms' output indicating that the symbol is present in my kernel.

stipmonster commented 8 years ago

That is indeed true is there a way to make it work by compiling it on a machine that runs a different kernel, but having the kernel sources with all the correct symbol maps etc.