Modules should not have __guard and __stack_smash_handler defined. This is due to a missing __KERNEL__ defined when compiling (https://bugs.gentoo.org/show_bug.cgi?id=138579#c3) CC [M] /var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/drivers/usb/spcadecoder.o LD [M] /var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/spca5xx.o Building modules, stage 2. MODPOST WARNING: "__guard" [/var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/spca5xx.ko] undefined! WARNING: "__stack_smash_handler" [/var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/spca5xx.ko] undefined! CC /var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/spca5xx.mod.o LD [M] /var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/spca5xx.ko make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo' >>> Source compiled. >>> Test phase [not enabled]: media-video/spca5xx-20060501 >>> Install spca5xx-20060501 into /var/tmp/portage/spca5xx-20060501/image/ category media-video * Installing spca5xx module >>> Completed installing spca5xx-20060501 into /var/tmp/portage/spca5xx-20060501/image/ man: strip: i686-pc-linux-gnu-strip --strip-unneeded >>> Merging media-video/spca5xx-20060501 to / --- /usr/ --- /usr/share/ --- /usr/share/doc/ --- /usr/share/doc/spca5xx-20060501/ >>> /usr/share/doc/spca5xx-20060501/CHANGELOG.gz >>> /usr/share/doc/spca5xx-20060501/INSTALL.gz >>> /usr/share/doc/spca5xx-20060501/README.gz --- /lib/ --- /lib/modules/ --- /lib/modules/2.6.17-gentoo/ >>> /lib/modules/2.6.17-gentoo/usb/ >>> /lib/modules/2.6.17-gentoo/usb/video/ >>> /lib/modules/2.6.17-gentoo/usb/video/spca5xx.ko >>> Safely unmerging already-installed instance... --- !mtime obj /usr/share/doc/spca5xx-20060501/README.gz --- !mtime obj /usr/share/doc/spca5xx-20060501/INSTALL.gz --- !mtime obj /usr/share/doc/spca5xx-20060501/CHANGELOG.gz --- cfgpro obj /lib/modules/2.6.17-gentoo-r1/usb/video/spca5xx.ko --- cfgpro dir /lib/modules/2.6.17-gentoo-r1/usb/video --- cfgpro dir /lib/modules/2.6.17-gentoo-r1/usb --- cfgpro dir /lib/modules/2.6.17-gentoo-r1 --- !empty dir /usr/share/doc/spca5xx-20060501 --- !empty dir /usr/share/doc --- !empty dir /usr/share --- !empty dir /usr --- !empty dir /lib/modules --- !empty dir /lib * Removing media-video/spca5xx-20060501 from moduledb. >>> Regenerating /etc/ld.so.cache... >>> Original instance of package unmerged safely. * Updating module dependencies for 2.6.17-gentoo ... WARNING: //lib/modules/2.6.17-gentoo/usb/video/spca5xx.ko needs unknown symbol __stack_smash_handler WARNING: //lib/modules/2.6.17-gentoo/usb/video/spca5xx.ko needs unknown symbol __guard [ ok ] * Adding module to moduledb. >>> Regenerating /etc/ld.so.cache... >>> media-video/spca5xx-20060501 merged. emerge --info Portage 2.1.1_pre2-r4 (default-linux/x86/2006.0, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.17-gentoo i686) ================================================================= System uname: 2.6.17-gentoo i686 Intel(R) Celeron(R) CPU 2.40GHz Gentoo Base System version 1.12.1 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" Yes something looks weird here having a non-hardened profile and still having some hardened symbols around. I think I migrated off a hardened profile without doing a full rememerge. I'll look at this later after some rest.
Created attachment 91417 [details, diff] spca-20060501-defines.patch
Committed change to spca5xx-20060501 with permission from Mike.