LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-13-2007, 04:39 PM   #1
ajijuni
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I get the matlab for fedora core4? whcrane Linux - Software 1 09-27-2006 06:44 AM
f5d6020 v2 in Fedora Core4 Lib_not_found Linux - Networking 1 10-31-2005 02:16 AM
SDL-1.2.9 compilation error on Fedora Core 4 SirBlackKnight Programming 1 10-24-2005 03:08 PM
Fedora Core4 issues... DrunkenDisciple Linux - Software 3 10-12-2005 12:01 PM
install fedora core4 hi_all General 3 05-10-2005 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration