You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Xqua first figure out the symbol. compile again and then do dmesg -c
to see what symbol is not linking. typically this is a problem when
trying to link the module with a different kernel version, so you may
want to consider updating your kernel version first. ultimately you want
to make sure the symbol is in your symbol table. to do so: grep '<symbol from dmesg -c>' /proc/kallsyms. you also should make sure that
you have the right kernel headers installed (not a version older than
your kernel) with ls /usr/src | grep $(uname -r). if you get nothing
back, you'll need to install linux-headers-$(uname -r). good luck.
btw thanks to the netcat folks for getting me into the deep end of the
linux pool ;)
Also, make sure to use the same compiler (version) as for building your kernel. The mcount symbol is related to the kernel function tracing, which uses different techniques, depending on the capabilities of the compiler in use.
Hi friends !
I've been messing arround since last night trying to figure that one out but my knowledge of the kernel are not good enough to debug it ! ^^
I compiled succefully, does not says anything but a warning :
WARNING: "mcount" [/home/xqua/Software/netcat-cpi-kernel-module/netcat.ko] undefined!
when I try to install the module with insmod I get this error :
Error: could not insert module netcat.ko: Unknown symbol in module
Any idea where to look for ??
Thanks
The text was updated successfully, but these errors were encountered: