Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37421 - lm-sensors 2.8.1 compiles kernel modules with CFLAGS from make.conf
Summary: lm-sensors 2.8.1 compiles kernel modules with CFLAGS from make.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-06 14:39 UTC by jochen
Modified: 2004-01-17 12:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jochen 2004-01-06 14:39:55 UTC
lm-sensors compiles kernel modules with CFLAGS from make.conf which in my case include -fstack-protector. This results in kernel-modules that contain references to undefined symbols, namely:

/lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: unresolved symbol __stack_smash_handler
/lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: unresolved symbol __guard
/lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: insmod /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o failed
/lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: unresolved symbol __stack_smash_handler
/lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: unresolved symbol __guard
/lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: insmod /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o failed
/lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: insmod i2c-piix4 failed


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-01-07 22:34:55 UTC
technically you can (and many people do) compile their kernel with stack protector
Comment 2 jochen 2004-01-08 01:34:56 UTC
well, besides what is technically possible, it doesn't work if only some modules are compiled with it.

I'd expect a kernel module to use the flags defined in my kernel's Makefile.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-01-15 12:05:36 UTC
``emerge info''; please?
Comment 4 jochen 2004-01-15 12:23:12 UTC
Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.20-xfs-r3)
=================================================================
System uname: 2.4.20-xfs-r3 i686 Celeron (Coppermine)
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -mcpu=pentium3 -mmmx -msse -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -mcpu=pentium3 -mmmx -msse -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox strict userpriv"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo ftp://sunsite.cnlab-switch.ch/mirror/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apm avi berkdb clamav crypt dga doc dvd encode esd foomaticdb gdbm gif gphoto2 gpm gtk gtk2 gtkhtml imap imlib ipv6 java jikes jpeg kerberos libg++ libwww lufsusermount mad mbox mldonkeypango motif mozcalendar mozilla mozxmlterm mpeg ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png python readline scanner sdl slang spell sse ssl tcltk tcpd tetex truetype x86 xface xfs xml2 xmms xv zlib"
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-01-17 12:08:19 UTC
Thanks - this has been fixed and -fstack-protector should now be filtered.