Saifuddin (saif@odysseytec.com) wrote: > > > > The command that i used to compile the module was: > > > > ---snip--- > > gcc -Wall -DMODULE -D__KERNEL__ -DLINUX -c mod.c > > -I/lib/modules/`uname -r`/build/include/ > > ---snap--- > > Try using -O2 while compiling. It should solve your problem..... I must be wrong, but why -O2 will solve his unresolved symbol problem ? I can read this in gcc manual : -O2 Optimize even more. GCC performs nearly all supported optimizations that do not involve a space-speed tradeoff. The compiler does not perform loop unrolling or function inlining when you specify -O2. As compared to -O, this option increases both compilation time and the performance of the generated code. I would be happy to know the reason if this flag solve his problem. -- Regards Christophe * GNU/Linux & UNIX developer and network administrator * Membre RotomaLUG (http://www.rotomalug.org) * Registered User #271267 * Email: c.lucas@ifrance.com * Web Site: http://odie.mcom.fr/~clucas/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/