QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 812|回复: 4

请教insmod遇到的问题

[复制链接]
发表于 2003-12-11 20:47:13 | 显示全部楼层 |阅读模式
编译完模块以后, 调用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.
发表于 2003-12-11 23:36:42 | 显示全部楼层
add 'MODULE_LICENSE("GPL"); to u .c file
回复

使用道具 举报

 楼主| 发表于 2003-12-11 23:49:53 | 显示全部楼层
谢谢, 加了以后解决了后面那个GPL提示, 但是前面的还不对, 我最后去掉了编译时的一个参数-DMODVERSIONS才过去, 不知道如果要加那个参数的话怎么能避免报错?
回复

使用道具 举报

发表于 2003-12-12 09:04:43 | 显示全部楼层
depmod && modprobe scull
回复

使用道具 举报

 楼主| 发表于 2003-12-12 14:13:32 | 显示全部楼层
Thanks, I'll try to do it
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-8-29 02:15 , Processed in 0.062307 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表