Re: Module licence problem

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

 



Oldani Massimiliano ha scritto:

Try testing if the qres_mod.ko module have in this .modinfo section the license entry:
objdump -j .modinfo -s  qres_mod.ko
I tried what you suggested me:

objdump -j .modinfo -s  qres_mod.ko

And this is the result:

qres_mod.ko:     file format elf32-i386

Contents of section .modinfo:
0000 7665726d 61676963 3d322e36 2e31352d  vermagic=2.6.15-
0010 67656e73 63686564 20333836 20676363  gensched 386 gcc
0020 2d332e33 00646570 656e6473 3d000000  -3.3.depends=...
0030 00000000 00000000 00000000 00000000  ................
0040 73726376 65727369 6f6e3d43 32353530  srcversion=C2550
0050 32424139 33363343 43374441 34353230  2BA9363CC7DA4520
0060 383800                               88.

On 2.6 kernel MODULE_LICENCE expands to __MODULE_INFO.. that is a null macro if MODULE is undefine
Yes, I saw that... I gave a look also at the file .mod.c created by the make process which should carry in every macro expansion... well, there are no traces about neither author nor licence... :(
Are you sure you have compiled the module correctly?
What could be the problem? I thought that if the Makefile had been wrong I would not have obtained the module.
Anyway, this is what I use to compile:

(I put not useful information between couple of ##)

SOURCES_DIR=/tmp/src

nospace_SOURCES:=
nospace_HEADERS:=##some header files##
rresmod_SOURCES= ##some .c files##
rresmod_nobase_HEADERS=##other header files##
#
qresmod_SOURCES+=##other source files## $(rresmod_SOURCES)
qresmod_SOURCES+=##other source files##
kernel_INCLUDES=-DQOS_KS $(rresmod_INCLUDES)
kernel_HEADERS=$(nospace_HEADERS) ##plus other header files##
nobase_kernel_HEADERS=$(rresmod_nobase_HEADERS)

# Kernel 2.6.x make system support
#
obj-m := qres_mod.o
qres_mod-objs := $(qresmod_SOURCES:%.c=%.o)
EXTRA_CFLAGS := $(kernel_INCLUDES)
#
ifndef LINUX_DIR
       LINUX_DIR := /usr/src/linux-$(shell uname -r)
endif

default:
        $(MAKE) -C $(LINUX_DIR) M=$(PWD) KBUILD_VERBOSE=1 modules

clean:
        rm *.o *.ko *.mod.c



I hope it can help you
-----------
Oldani (sgrakkyu) Massimiliano

Antifork Research, Inc.
Metro Olografix

I'm going to try on another system...
Many thanks!

--
Antonio Mancina
PhD Student @ Retis Lab
Scuola Superiore S.Anna - CNR
Pisa, Italy
a.mancina@xxxxxxxx



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux