LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Help!! Compilation error using EXPORT_SYMBOL in fedora Core4 (https://www.linuxquestions.org/questions/fedora-35/help-compilation-error-using-export_symbol-in-fedora-core4-569160/)

ajijuni 07-13-2007 04:39 PM

Help!! Compilation error using EXPORT_SYMBOL in fedora Core4
 
Hi

I have Fedora Core4 (Linux V 2.6.11-1.1369; GCC - 4.0.0).
I have a kernel module in which I use EXPORT_SYMBOL macro to export the symbols to the other kernel modules.

But when I compile the kernel module it throws out segmentation fault.

Please find the scree shot below.

Please let me know what would be the issue as its very critical to fix this bug now.


Thanks,
Junita

Example of code:
=================
int register_notifier(struct notifier_block *nb)
{
PLK_INFO_FUNC_ENTER();
PLK_INFO_FUNC_EXIT();
return notifier_chain_register(&cli_notifier, nb);
}
EXPORT_SYMBOL_GPL(register_notifier);

Screen -dump:
=============

/bin/sh: line 1: 2866 Done gcc -E -D__GENKSYMS__ -Wp,-MD,/root/gda/driver_test/Drivers_bk/plk1000n/linux/.nwm_main.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.0/include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -pipe -msoft-float -m32 -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mtune=pentium4 -mregparm=3 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -I/root/gda/driver_test/Drivers_bk/plk1000n/linux/../../include -I/root/gda/driver_test/Drivers_bk/plk1000n/linux/../include -D_LINUX_ -DMODULE -DKBUILD_BASENAME=nwm_main -DKBUILD_MODNAME=plk1000n /root/gda/driver_test/Drivers_bk/plk1000n/linux/nwm_main.c
2868 Segmentation fault | scripts/genksyms/genksyms >/root/gda/driver_test/Drivers_bk/plk1000n/linux/.tmp_nwm_main.ver
make[2]: *** [/root/gda/driver_test/Drivers_bk/plk1000n/linux/nwm_main.o] Error 139


All times are GMT -5. The time now is 09:59 PM.