/linux/module.h is not being included, or CONFIG_MODULES is not set

BlueCat:bash-2.05a$ make mod
make SRRDEBUG=n FORCESYMBOLS=y SRCBASE=/BlueCat/usr/src INCLUDEDIR="-I/BlueCat/
usr/src/linux/include -I/BlueCat/usr/src/linux/include/asm-i386/mach-default" VE
RSION=\"1.4.34\" RECALC_TSK=0 SRRTHREAD="y" ROOTDIR=/BlueCat/cogent/srr-1.4.34 P
ATHS="-I/BlueCat/cogent/srr-1.4.34/mod -I/BlueCat/cogent/srr-1.4.34/inc" -C /Blu
eCat/usr/src/linux SUBDIRS=/BlueCat/cogent/srr-1.4.34/mod modules
make[1]: Entering directory `/BlueCat/usr/src/linux.x86'
CC [M] /BlueCat/cogent/srr-1.4.34/mod/srr_tt.o
CC [M] /BlueCat/cogent/srr-1.4.34/mod/srr_util.o
CC [M] /BlueCat/cogent/srr-1.4.34/mod/srr_mod.o
CC [M] /BlueCat/cogent/srr-1.4.34/mod/srr_time.o
CC [M] /BlueCat/cogent/srr-1.4.34/mod/srr_bytecode.o
CC [M] /BlueCat/cogent/srr-1.4.34/mod/srr_sys.o
LD [M] /BlueCat/cogent/srr-1.4.34/mod/srripc.o
Building modules, stage 2.
MODPOST
Warning: could not find versions for .tmp_versions/srripc.mod
*** Warning: "disable_irq" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!

*** Warning: "__request_region" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undef
ined!
*** Warning: "__kmalloc" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "del_timer" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "iomem_resource" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefin
ed!
*** Warning: "release_resource" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undef
ined!
*** Warning: "malloc_sizes" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined
!
*** Warning: "remove_wait_queue" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] unde
fined!
*** Warning: "__page_cache_release" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] u
ndefined!
*** Warning: "schedule_work" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefine
d!
*** Warning: "sprintf" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "jiffies" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "default_wake_function" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko]
undefined!
*** Warning: "misc_register" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefine
d!
*** Warning: "ioport_resource" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefi
ned!
*** Warning: "printk" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "copy_to_user" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined
!
*** Warning: "__down_failed_interruptible" [/BlueCat/cogent/srr-1.4.34/mod/srrip
c.ko] undefined!
*** Warning: "mod_timer" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "flush_signals" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefine
d!
*** Warning: "kmem_cache_alloc" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undef
ined!
*** Warning: "get_user_pages" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefin
ed!
*** Warning: "request_irq" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!

*** Warning: "schedule" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "recalc_sigpending" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] unde
fined!
*** Warning: "__wake_up" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "do_gettimeofday" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefi
ned!
*** Warning: "add_wait_queue" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefin
ed!
*** Warning: "enable_irq" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "kfree" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "kill_proc" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
*** Warning: "flush_scheduled_work" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] u
ndefined!
*** Warning: "__up_wakeup" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!

*** Warning: "find_task_by_pid" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undef
ined!
*** Warning: "__down_failed" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefine
d!
*** Warning: "copy_from_user" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefin
ed!
*** Warning: "misc_deregister" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefi
ned!
*** Warning: "free_irq" [/BlueCat/cogent/srr-1.4.34/mod/srripc.ko] undefined!
CC /BlueCat/cogent/srr-1.4.34/mod/srripc.mod.o
/BlueCat/cogent/srr-1.4.34/mod/srripc.mod.c:9: variable `__this_module' has init
ializer but incomplete type
/BlueCat/cogent/srr-1.4.34/mod/srripc.mod.c:10: unknown field `name' specified i
n initializer
/BlueCat/cogent/srr-1.4.34/mod/srripc.mod.c:10: warning: excess elements in stru
ct initializer
/BlueCat/cogent/srr-1.4.34/mod/srripc.mod.c:10: warning: (near initialization fo
r `__this_module')
/BlueCat/cogent/srr-1.4.34/mod/srripc.mod.c:11: unknown field `init' specified i
n initializer
/BlueCat/cogent/srr-1.4.34/mod/srripc.mod.c:11: warning: excess elements in stru
ct initializer
/BlueCat/cogent/srr-1.4.34/mod/srripc.mod.c:11: warning: (near initialization fo
r `__this_module')
/BlueCat/cogent/srr-1.4.34/mod/srripc.mod.c:9: storage size of `__this_module' i
sn't known
make[2]: *** [/BlueCat/cogent/srr-1.4.34/mod/srripc.mod.o] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/BlueCat/usr/src/linux.x86'
make: *** [mod] Error 2

BlueCat:bash-2.05a$

Hi Mark,

It looks like include/linux/module.h is not being included, or CONFIG_MODULES is not set in the kernel config options. My vote is that CONFIG_MODULES is not set. Check .config in the root of your kernel source tree. There should be a section:
#
# Loadable module support
#
CONFIG_MODULES=y

I didn't know you could cross-compile SRR under Cygwin. That's pretty neat.

Andrew

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值