[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] v2.2 Unresolved Symbols woes



> Why is it that when I insert my module into kernel space using v2.2, I  get the
> following errors?
> 
> [root@comanche bin]# /sbin/insmod rtic.o
> ./rtic.o: unresolved symbol pthread_self
> ./rtic.o: unresolved symbol pthread_attr_setschedparam
> ./rtic.o: unresolved symbol pthread_attr_init
> [root@comanche bin]# 
> 
> Incidentally, the example modules work fine (namely the good old trusty Frank
> Zappa module), it is just my code that will not insert.  What am I missing? I am using the insrtl command to install the rtlinux modules, and this code worked beautifully under v2.0.

All of these functions are defined in include/rtl_sched.h as being inline.
For inline functions to work correctly, -O2 flag should be used with gcc.
Do you see -O2 among compiler options during compilation of your module?

Michael.