[rhn-users] kernel build problems - linux-2.4.21-32.0.1.EL

George R Goffe grgoffe at yahoo.com
Thu Jul 7 01:11:18 UTC 2005


HOwdy,

I'm attempting to build a kernel from the distributed kernel source
code AND the distributed config file and am having a lot of trouble
doing so. Shouldn't I be able to take their config file and their
source WITHOUT MAKING ANY CHANGES and build the EXACT SAME KERNEL? I
start from scratch by copying /usr/src/linux-2.4.21-32.0.1.EL to
another directory and doing my work there. To get the links I copy
the config file from the configs dir within the kernel to .config.
This file is EXACTLY the same as the /boot//boot/config-2.4.21-32.EL
file. I poke the save and quit button on the tcl/tk window and then
on the "make dep" warning popup. NOW THE .config file IS DIFFERENT
THAN WHAT I COPIED! I type make dep and then make bzImage and get
the messages below. I have just one question. Why does Redhat
distribute code and configs that DO NOT WORK? Next I go to make
xconfig again and remove the ah and esp from "network options" for
both ipv4 and ipv6. See error msgs below these.

gcc -D__KERNEL__
-I/export/home/kernel/linux-2.4.21-32.0.1.EL/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common  -Wno-unused -fomit-frame-pointer -pipe -freorder-blocks
-mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix
include -DKBUILD_BASENAME=xfrm_algo  -c -o xfrm_algo.o xfrm_algo.c
In file included from xfrm_algo.c:16:
/export/home/kernel/linux-2.4.21-32.0.1.EL/include/net/ah.h: In
function `ah_hmac_digest':
/export/home/kernel/linux-2.4.21-32.0.1.EL/include/net/ah.h:26:
warning: implicit declaration of function `crypto_hmac_init'
/export/home/kernel/linux-2.4.21-32.0.1.EL/include/net/ah.h:27:
`crypto_hmac_update' undeclared (first use in this function)
/export/home/kernel/linux-2.4.21-32.0.1.EL/include/net/ah.h:27:
(Each undeclared identifier is reported only once
/export/home/kernel/linux-2.4.21-32.0.1.EL/include/net/ah.h:27: for
each function it appears in.)
/export/home/kernel/linux-2.4.21-32.0.1.EL/include/net/ah.h:28:
warning: implicit declaration of function `crypto_hmac_final'
In file included from xfrm_algo.c:19:
/export/home/kernel/linux-2.4.21-32.0.1.EL/include/net/esp.h: In
function `esp_hmac_digest':
/export/home/kernel/linux-2.4.21-32.0.1.EL/include/net/esp.h:49:
`crypto_hmac_update' undeclared (first use in this function)
make[3]: *** [xfrm_algo.o] Error 1
make[3]: Leaving directory
`/export/home/kernel/linux-2.4.21-32.0.1.EL/net/xfrm'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory
`/export/home/kernel/linux-2.4.21-32.0.1.EL/net/xfrm'
make[1]: *** [_subdir_xfrm] Error 2
make[1]: Leaving directory
`/export/home/kernel/linux-2.4.21-32.0.1.EL/net'
make: *** [_dir_net] Error 2



And... here's what I get (below). Anyone have any ideas? Again, my
question stands. Why does Redhat distribute kernel source code and
config files if they don't work?

gcc -E -D__KERNEL__
-I/export/home/kernel/linux-2.4.21-32.0.1.EL/include -xc -P
arch/i386/vmlinux.lds.in -o arch/i386/vmlinux.lds
make[1]: Entering directory
`/export/home/kernel/linux-2.4.21-32.0.1.EL'
kallsyms pass 1
ld -m elf_i386 -T
/export/home/kernel/linux-2.4.21-32.0.1.EL/arch/i386/vmlinux.lds -e
stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o
init/main.o init/version.o init/do_mounts.o --start-group
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o
fs/fs.o ipc/ipc.o  drivers/char/char.o drivers/block/block.o
drivers/misc/misc.o drivers/net/net.o drivers/char/drm/drm.o
drivers/net/fc/fc.o drivers/net/appletalk/appletalk.o
drivers/net/tokenring/tr.o drivers/net/wan/wan.o drivers/atm/atm.o
drivers/ide/idedriver.o drivers/cdrom/driver.o
drivers/audit/audit-stubs.o drivers/pci/driver.o
drivers/net/pcmcia/pcmcia_net.o drivers/net/wireless/wireless_net.o
drivers/pnp/pnp.o drivers/video/video.o drivers/media/media.o
drivers/md/mddev.o drivers/isdn/vmlinux-obj.o crypto/crypto.o
drivers/sensors/sensor.o net/network.o
/export/home/kernel/linux-2.4.21-32.0.1.EL/arch/i386/lib/lib.a
/export/home/kernel/linux-2.4.21-32.0.1.EL/lib/lib.a
/export/home/kernel/linux-2.4.21-32.0.1.EL/arch/i386/lib/lib.a
--end-group -o .tmp_vmlinux1
crypto/crypto.o(.text+0x171c): In function `deflate_comp_init':
: undefined reference to `zlib_deflate_workspacesize'
crypto/crypto.o(.text+0x1758): In function `deflate_comp_init':
: undefined reference to `zlib_deflate_workspacesize'
crypto/crypto.o(.text+0x17b2): In function `deflate_comp_init':
: undefined reference to `zlib_deflateInit2_'
crypto/crypto.o(.text+0x1902): In function `deflate_compress':
: undefined reference to `zlib_deflateReset'
crypto/crypto.o(.text+0x1947): In function `deflate_compress':
: undefined reference to `zlib_deflate'
make[1]: *** [kallsyms] Error 1
make[1]: Leaving directory
`/export/home/kernel/linux-2.4.21-32.0.1.EL'
make: *** [vmlinux] Error 2




Regards and thanks for your help,

George...


=====
    _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ -----
   _/       _/       _/    _/ _/    _/ _/       _/
  _/  _/_/ _/_/_/_/ _/    _/ _/_/_/_/ _/  _/_/ _/_/_/_/ -----
 _/    _/ _/       _/    _/ _/    _/ _/    _/ _/
_/_/_/_/ _/_/_/_/ _/_/_/_/ _/    _/ _/_/_/_/ _/_/_/_/ -----
"It's not what you know that hurts you, It's what you know that ain't so." Will Rogers


		
____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/




More information about the rhn-users mailing list