From: Ladislav Subr (subr_at_sirrah.troja.mff.cuni.cz)
Date: Thu Mar 25 2010 - 03:43:58 PDT
Hi Paul, I've tried to compile BLCR 0.8.2 for vanilla 2.6.32.10 with the two patches you've suggested to Neal, but I've got the same configure error as him, i.e. checking for Linux kernel symbol table... failed configure: error: Failed to locate kernel symbol table. Try using --with-system-map or --with-vmlinux. When I add an option --with-system-map, the error message is: checking for Linux kernel symbol table... failed configure: error: Failed to validate "/usr/src/kernels/linux-2.6.32.10/System.map" Would it be possible to try your patches for 2.6.33? L. > Neal, > > For a 2.6.32 kernel you'll need to apply the following patches to BLCR > 0.8.2: > https://upc-bugs.lbl.gov/blcr-dist/blcr-0.8.2+kernel-2.6.31.patch01 > https://upc-bugs.lbl.gov/blcr-dist/blcr-0.8.2+kernel-2.6.32.patch02 > Among them is a change to how the System.map file is "validated" that I > suspect addresses your immediate problem. > > If you still have problems, let me know. > > I already know that we have both configure-time and compile-time > "issues" with 2.6.33. It is possible those same problems may be present > in a 2.6.32.9 kernel (either vanilla or Fedora). I do have patches for > all the configure-time and compile-time issues in 2.6.33, but the > resulting kernel modules hang during "make check" - so I've not released > any patches for 2.6.33. So, any configure or compile failure you > encounter on 2.6.32.9-fc12 may already have am UNTESTED OR UNSAFE fix > available from my development tree. Let me know what you find. > > -Paul > > Neal Becker wrote: > > I'm trying to build blcr-0.8.2 on fedora 12 x86_64. It's been a while, > > maybe I've forgotten a few things. > > > > checking for Linux kernel build in > > /usr/src/kernels/2.6.32.9-70.fc12.x86_64... found version > > 2.6.32.9-70.fc12.x86_64 > > checking for Linux kernel source in > > /usr/src/kernels/2.6.32.9-70.fc12.x86_64... found version 2.6.32 > > checking directory to install kernel modules... > > /lib/modules//2.6.32.9-70.fc12.x86_64//extra/blcr/ (passed via > > --with-kmod- dir) > > checking for parameters to interface GNU automake with Linux kbuild... > > KBUILD_EXTMOD=$(builddir) > > checking for flags to compile Linux kernel probes... -nostdinc -isystem > > /usr/lib/gcc/x86_64-redhat-linux/4.4.3/include - > > I/usr/src/kernels/2.6.32.9-70.fc12.x86_64/include - > > I/usr/src/kernels/2.6.32.9-70.fc12.x86_64/arch/x86/include -include > > /usr/src/kernels/2.6.32.9-70.fc12.x86_64/include/linux/autoconf.h > > -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs > > -fno-strict-aliasing -fno- common -Werror-implicit-function-declaration > > -Wno-format-security -fno-delete- null-pointer-checks -Os -m64 > > -mtune=generic -mno-red-zone -mcmodel=kernel - funit-at-a-time > > -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 > > -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous- > > unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow > > -Wframe-larger-than=2048 -fno-omit-frame-pointer > > -fno-optimize-sibling-calls -g -pg -Wdeclaration- after-statement > > -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm - > > fconserve-stack -DMODULE -DKBUILD_STR(s)=#s - > > DKBUILD_BASENAME=KBUILD_STR(conftest) > > -DKBUILD_MODNAME=KBUILD_STR(conftest) - DDEBUG_HASH=50 -DDEBUG_HASH2=61 > > checking for Linux kernel symbol table... failed > > configure: error: Failed to locate kernel symbol table. Try using > > --with- system-map or --with-vmlinux > > > > I've got: > > /usr/src/kernels/2.6.32.9-70.fc12.x86_64/System.map. Isn't that what it > > was looking for?