buaacyk 发表于 2003-12-11 20:47:13

请教insmod遇到的问题

编译完模块以后, 调用insmod报错, 请问是什么原因? 我编译过内核, 但是现在环境还是原来的内核, 是否有影响?错误如下:
scull.o: unresolved symbol register_chrdev_R2a2dc53f
scull.o: unresolved symbol __pollwait_Rb64ed266
scull.o: unresolved symbol add_wait_queue_Rd7a37073
scull.o: unresolved symbol remove_wait_queue_R8afe976f
scull.o: unresolved symbol fasync_helper_R561e0541
scull.o: unresolved symbol kill_fasync_Rd9552023
scull.o:
Hint: You are trying to load a module without a GPL compatible license
      and it has unresolved symbols.The module may be trying to access
      GPLONLY symbols but the problem is more likely to be a coding or
      user error.Contact the module supplier for assistance, only they
      can help you.

Dragonfly 发表于 2003-12-11 23:36:42

add 'MODULE_LICENSE("GPL"); to u .c file

buaacyk 发表于 2003-12-11 23:49:53

谢谢, 加了以后解决了后面那个GPL提示, 但是前面的还不对, 我最后去掉了编译时的一个参数-DMODVERSIONS才过去, 不知道如果要加那个参数的话怎么能避免报错?

sarge_mn 发表于 2003-12-12 09:04:43

depmod && modprobe scull

buaacyk 发表于 2003-12-12 14:13:32

Thanks, I'll try to do it
页: [1]
查看完整版本: 请教insmod遇到的问题