logo       

RE: modprobe: Unknown symbol on 2.6.xx: msg#00100

hardware.lirc

Subject: RE: modprobe: Unknown symbol on 2.6.xx

I am now leaning towards wrong CFLAGS. I have tried adding a few to the drivers/serial/Makefile variable CFLAGS, but when I look at the gcc or make statements during the make phase, I am not seeing the additions.
What I want to add is:
-fstack-protector-all and for the sake of it; -pie -fpie.
These are not showing up.

/**********/

make[3]: Entering directory `/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /lib/modules/2.6.14.6-grsec/build/ SUBDIRS=/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial modules \
KBUILD_VERBOSE=1
make[4]: Entering directory `/usr/src/kernel/linux-2.6.14.6'
mkdir -p /usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/.tmp_versions
make -f scripts/Makefile.build obj=/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial
gcc -m32 -Wp,-MD,/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/.lirc_serial.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include -D__KERNEL__ -Iinclude -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=c3-2 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/../.. -I/lib/modules/2.6.14.6-grsec/build//include/ -DMODULE -DKBUILD_BASENAME=lirc_serial -DKBUILD_MODNAME=lirc_serial -c -o /usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.o /usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.c
Building modules, stage 2.
make -rR -f /usr/src/kernel/linux-2.6.14.6/scripts/Makefile.modpost
scripts/mod/modpost -i /usr/src/kernel/linux-2.6.14.6/Module.symvers vmlinux /usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.o
gcc -m32 -Wp,-MD,/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/.lirc_serial.mod.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include -D__KERNEL__ -Iinclude -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=c3-2 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -DKBUILD_BASENAME=lirc_serial -DKBUILD_MODNAME=lirc_serial -DMODULE -c -o /usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.mod.o /usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.mod.c
ld -m elf_i386 -m elf_i386 -r -o /usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.ko /usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.o /usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.mod.o
make[4]: Leaving directory `/usr/src/kernel/linux-2.6.14.6'
mv Makefile.automake Makefile
make[3]: Leaving directory `/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial'

/*********/

I can also tell because of these build warnings:

*** Warning: "lirc_unregister_plugin" [/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.ko] undefined!
*** Warning: "lirc_register_plugin" [/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.ko] undefined!
*** Warning: "__guard" [/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.ko] undefined!
*** Warning: "__stack_smash_handler" [/usr/src/lirc/lirc-0.8.0/drivers/lirc_serial/lirc_serial.ko] undefined!

I don't know how I can add my CFLAGS to the Makefile's, ...if that is the proper thing to do right now. I have them exported already, but they're not being taken in.

Warren

From: tony <tony-QQIcp8qXNVY@xxxxxxxxxxxxxxxx>
To: lirc-list-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
Subject: RE: modprobe: Unknown symbol on 2.6.xx
Date: Mon, 27 Feb 2006 17:28:45 +0100

Le lundi 27 février 2006 à 16:20 +0000, Warren Wilder a écrit :
> Getting back to my own message. The directory in the Makefile is pointing
> towards my kernel source as it should. It doesn't matter though, I keep
> getting unresolved symbols. The running kernel, kernel source, config file
> and module sources are all from the same version.

I just gave up and installed rpms when I went through all these
problems.

Now I am back to my remote not talking to lircd... If I find which kid
took the batteries out of the remote I'll cut off his pocket money for 3
months</joke>

Tony



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise