[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: RH 6.2 Kernel 2.2.19 compile problem



update:

installed sources from tarball...
problems with compile..

Did an rpm -Uvh --force kernel-headers..., anyway, just to make sure nothing
is missing...

.....

hmm...  interesting...  doing an mrproper deletes the include/asm symlink to
asm-i386...  Let's fix that...

Woohoo!  "make dep"  seems to have run with no errors!..  now let's try
"make clean"...

WooHoo! (again...)  That seemed to work...  Now, on to the "make bzImage"
which was what failed the 1st time & caused all these headaches in the 1st
place *herumph*

Dang...  Errors in the drivers directory:

make[3]: Entering directory `/usr/src/linux-2.2.19/drivers/block'
cc -D__KERNEL__ -I/usr/src/linux-2.2.19/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-po
inter -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -
malign-functions=2 -DCPU=686   -DEXPORT_SYMTAB -c ll_rw_blk.c
ll_rw_blk.c: In function `ll_rw_block':
ll_rw_blk.c:859: warning: passing arg 1 of `md_make_request' makes pointer
from integer witho
ut a cast
ll_rw_blk.c:859: too many arguments to function `md_make_request'
make[3]: *** [ll_rw_blk.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.2.19/drivers/block'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.19/drivers/block'
make[1]: *** [_subdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.19/drivers'
make: *** [_dir_drivers] Error 2

wonder what's up with that...  Looks like I need t oplay some more...

Played around some more - basically reinstall source from tarball, then
install rpm's over the top of the source (inc. glibc)...  Now get errors
during "make bzImage" as follows:


(looks almost like a header was missing, but this appears to be up to the
linking stage, so I wonder why it seems to be fine 'til here...  am I
missing a library?)


make[1]: Leaving directory `/usr/src/linux-2.2.19/arch/i386/lib'
cc -D__KERNEL__ -I/usr/src/linux-2.2.19/include -E -C -P
-I/usr/src/linux-2.2.19/include -ima
cros /usr/src/linux-2.2.19/include/asm-i386/page_offset.h -Ui386
arch/i386/vmlinux.lds.S >arc
h/i386/vmlinux.lds
ld -m elf_i386 -T /usr/src/linux-2.2.19/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.
o arch/i386/kernel/init_task.o init/main.o init/version.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
 \
        fs/filesystems.a \
        net/network.a \
        drivers/block/block.a drivers/char/char.o drivers/misc/misc.a
drivers/net/net.a drive
rs/scsi/scsi.a drivers/cdrom/cdrom.a drivers/pci/pci.a drivers/video/video.a
\
        /usr/src/linux-2.2.19/arch/i386/lib/lib.a
/usr/src/linux-2.2.19/lib/lib.a /usr/src/li
nux-2.2.19/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
init/main.o(.data.init+0x274): undefined reference to `video_setup'
kernel/kernel.o: In function `panic':
kernel/kernel.o(.text+0x479a): undefined reference to
`emergency_sync_scheduled'
kernel/kernel.o(.text+0x47a5): undefined reference to `do_emergency_sync'
kernel/kernel.o(.data+0x5424): undefined reference to `sysrq_enabled'
fs/fs.o: In function `bdflush':
fs/fs.o(.text+0x41b2): undefined reference to `emergency_sync_scheduled'
fs/fs.o(.text+0x41ba): undefined reference to `do_emergency_sync'
fs/filesystems.a(proc.o): In function `get_root_array':
proc.o(.text+0x33f6): undefined reference to `get_rtc_status'
fs/filesystems.a(isofs.o): In function `isofs_find_entry':
isofs.o(.text+0x231): undefined reference to `get_joliet_filename'
fs/filesystems.a(isofs.o): In function `do_isofs_readdir':
isofs.o(.text+0x2133): undefined reference to `get_joliet_filename'
net/network.a(sock_n_syms.o)(__ksymtab+0x2a8): undefined reference to
`make_EII_client'
net/network.a(sock_n_syms.o)(__ksymtab+0x2b0): undefined reference to
`destroy_EII_client'
net/network.a(sock_n_syms.o)(__ksymtab+0x488): undefined reference to
`tr_type_trans'
net/network.a(sock_n_syms.o)(__ksymtab+0x568): undefined reference to
`fddi_type_trans'
net/network.a(sock_n_syms.o)(__ksymtab+0x678): undefined reference to
`pfifo_qdisc_ops'
net/network.a(sock_n_syms.o)(__ksymtab+0x680): undefined reference to
`register_qdisc'
net/network.a(sock_n_syms.o)(__ksymtab+0x688): undefined reference to
`unregister_qdisc'
net/network.a(sock_n_syms.o)(__ksymtab+0x690): undefined reference to
`qdisc_get_rtab'
net/network.a(sock_n_syms.o)(__ksymtab+0x698): undefined reference to
`qdisc_put_rtab'
net/network.a(sock_n_syms.o)(__ksymtab+0x6a0): undefined reference to
`qdisc_new_estimator'
net/network.a(sock_n_syms.o)(__ksymtab+0x6a8): undefined reference to
`qdisc_kill_estimator'
net/network.a(sock_n_syms.o)(__ksymtab+0x6b0): undefined reference to
`tcf_police'
net/network.a(sock_n_syms.o)(__ksymtab+0x6b8): undefined reference to
`tcf_police_locate'
net/network.a(sock_n_syms.o)(__ksymtab+0x6c0): undefined reference to
`tcf_police_destroy'
net/network.a(sock_n_syms.o)(__ksymtab+0x6c8): undefined reference to
`tcf_police_dump'
net/network.a(sock_n_syms.o)(__ksymtab+0x6d0): undefined reference to
`register_tcf_proto_ops
'
net/network.a(sock_n_syms.o)(__ksymtab+0x6d8): undefined reference to
`unregister_tcf_proto_o
ps'
net/network.a(protocols.o)(.data+0x1c): undefined reference to
`p8022_proto_init'
net/network.a(protocols.o)(.data+0x24): undefined reference to
`snap_proto_init'
net/network.a(protocols.o)(.data+0x2c): undefined reference to `rif_init'
net/network.a(core.o): In function `net_dev_init':
core.o(.text.init+0x77): undefined reference to `pktsched_init'
net/network.a(sched.o): In function `qdisc_destroy':
sched.o(.text+0x417): undefined reference to `qdisc_kill_estimator'
net/network.a(802.o)(.data+0x34): undefined reference to
`sysctl_tr_rif_timeout'
net/network.a(ipv4.o): In function `masq_tcp_state':
ipv4.o(.text+0xecf): undefined reference to `ip_vs_set_state'
net/network.a(ipv4.o): In function `__ip_masq_set_expire':
ipv4.o(.text+0xf6f): undefined reference to `add_sltimer'
ipv4.o(.text+0xf7d): undefined reference to `del_sltimer'
net/network.a(ipv4.o): In function `ip_masq_out_get':
ipv4.o(.text+0x1388): undefined reference to `__ip_vs_out_get'
net/network.a(ipv4.o): In function `ip_masq_in_get':
ipv4.o(.text+0x13e8): undefined reference to `__ip_vs_in_get'
net/network.a(ipv4.o): In function `masq_expire':
ipv4.o(.text+0x1480): undefined reference to `ip_vs_unhash'
ipv4.o(.text+0x1491): undefined reference to `ip_vs_unbind_masq'
ipv4.o(.text+0x14a0): undefined reference to `ip_vs_concurrentconns'
net/network.a(ipv4.o): In function `ip_masq_new_vs':
ipv4.o(.text+0x1d7a): undefined reference to `ip_vs_hash'
ipv4.o(.text+0x1d8d): undefined reference to `ip_vs_connshandled'
ipv4.o(.text+0x1d93): undefined reference to `ip_vs_concurrentconns'
net/network.a(ipv4.o): In function `ip_fw_masquerade':
ipv4.o(.text+0x1f80): undefined reference to `ip_masquerade_proto'
ipv4.o(.text+0x1f97): undefined reference to `ip_masq_mod_out_get'
ipv4.o(.text+0x1fa2): undefined reference to `ms_discard_pkt'
ipv4.o(.text+0x1fd1): undefined reference to `add_sltimer'
ipv4.o(.text+0x20cd): undefined reference to `__ip_vs_lookup_real_service'
ipv4.o(.text+0x2125): undefined reference to `ip_masq_mod_out_create'
ipv4.o(.text+0x218e): undefined reference to `ip_masq_mod_out_update'
net/network.a(ipv4.o): In function `ip_fw_unmasq_icmp':
ipv4.o(.text+0x239a): undefined reference to `__ip_vs_out_get'
ipv4.o(.text+0x23fd): undefined reference to `__ip_vs_in_get'
net/network.a(ipv4.o): In function `ip_fw_masq_icmp':
ipv4.o(.text+0x27d1): undefined reference to `__ip_vs_out_get'
net/network.a(ipv4.o): In function `ip_vs_forwarding_related_icmp':
ipv4.o(.text+0x2949): undefined reference to `ip_vs_get_debug_level'
ipv4.o(.text+0x29fc): undefined reference to `__ip_vs_in_get'
ipv4.o(.text+0x2a0a): undefined reference to `ip_vs_get_debug_level'
net/network.a(ipv4.o): In function `ip_fw_demasq_icmp':
ipv4.o(.text+0x2e10): undefined reference to `__ip_vs_in_get'
ipv4.o(.text+0x2e9e): undefined reference to `ip_vs_tunnel_xmit'
ipv4.o(.text+0x2eaa): undefined reference to `ip_vs_get_debug_level'
ipv4.o(.text+0x2ebd): undefined reference to `ip_vs_get_debug_level'
ipv4.o(.text+0x2ed6): undefined reference to `ip_vs_dr_xmit'
ipv4.o(.text+0x2ee2): undefined reference to `ip_vs_get_debug_level'
ipv4.o(.text+0x2ef5): undefined reference to `ip_vs_get_debug_level'
net/network.a(ipv4.o): In function `ip_fw_demasquerade':
ipv4.o(.text+0x3101): undefined reference to `ip_vs_lookup_service'
ipv4.o(.text+0x3137): undefined reference to `ip_masq_mod_in_rule'
ipv4.o(.text+0x3218): undefined reference to `ip_demasquerade_proto'
ipv4.o(.text+0x322b): undefined reference to `ip_masq_mod_in_get'
ipv4.o(.text+0x3236): undefined reference to `ms_discard_pkt'
ipv4.o(.text+0x3252): undefined reference to `add_sltimer'
ipv4.o(.text+0x3270): undefined reference to `ip_masq_mod_in_create'
ipv4.o(.text+0x329f): undefined reference to `ip_masq_mod_in_update'
ipv4.o(.text+0x32f3): undefined reference to `ip_vs_schedule'
ipv4.o(.text+0x3307): undefined reference to `ip_vs_leave'
ipv4.o(.text+0x338e): undefined reference to `ip_vs_packetshandled'
ipv4.o(.text+0x33ee): undefined reference to `ip_vs_tunnel_xmit'
ipv4.o(.text+0x33fa): undefined reference to `ip_vs_get_debug_level'
ipv4.o(.text+0x340d): undefined reference to `ip_vs_get_debug_level'
ipv4.o(.text+0x3426): undefined reference to `ip_vs_dr_xmit'
ipv4.o(.text+0x3432): undefined reference to `ip_vs_get_debug_level'
ipv4.o(.text+0x3445): undefined reference to `ip_vs_get_debug_level'
ipv4.o(.text+0x3479): undefined reference to `ip_vs_get_debug_level'
net/network.a(ipv4.o): In function `ip_msqhst_procinfo':
ipv4.o(.text+0x39e7): undefined reference to `ip_vs_table'
net/network.a(ipv4.o): In function `ip_masq_uctl':
ipv4.o(.text+0x3cc8): undefined reference to `ip_masq_mod_ctl'
ipv4.o(.text+0x3cd4): undefined reference to `ip_vs_ctl'
net/network.a(ipv4.o): In function `ip_rt_get_source':
ipv4.o(.text+0x5a86): undefined reference to `fib_lookup'
net/network.a(ipv4.o): In function `rt_set_nexthop':
ipv4.o(.text+0x5bf4): undefined reference to `fib_rules_tclass'
net/network.a(ipv4.o): In function `ip_route_input_mc':
ipv4.o(.text+0x5da7): undefined reference to `ip_mr_input'
net/network.a(ipv4.o): In function `ip_route_input_slow':
ipv4.o(.text+0x5f4d): undefined reference to `fib_lookup'
ipv4.o(.text+0x5f8b): undefined reference to `fib_rules_policy'
ipv4.o(.text+0x5fa8): undefined reference to `fib_rules_map_destination'
ipv4.o(.text+0x5fb7): undefined reference to `fib_lookup'
net/network.a(ipv4.o): In function `ip_route_output_slow':
ipv4.o(.text+0x67df): undefined reference to `fib_lookup'
ipv4.o(.text+0x68aa): undefined reference to `fib_select_default'
ipv4.o(.text+0x6aa4): undefined reference to `ip_mr_input'
net/network.a(ipv4.o): In function `rt_fill_info':
ipv4.o(.text+0x6fce): undefined reference to `ipmr_get_route'
net/network.a(ipv4.o): In function `ip_forward':
ipv4.o(.text+0x8e76): undefined reference to `ip_do_nat'
net/network.a(ipv4.o): In function `ip_mc_output':
ipv4.o(.text+0xa4fe): undefined reference to `ip_do_nat'
net/network.a(ipv4.o): In function `ip_output':
ipv4.o(.text+0xa627): undefined reference to `ip_do_nat'
net/network.a(ipv4.o): In function `ip_setsockopt':
ipv4.o(.text+0xbe00): undefined reference to `ip_mroute_setsockopt'
net/network.a(ipv4.o): In function `ip_getsockopt':
ipv4.o(.text+0xc40c): undefined reference to `ip_mroute_getsockopt'
net/network.a(ipv4.o): In function `igmp_rcv':
ipv4.o(.text+0x1c92b): undefined reference to `pim_rcv_v1'
net/network.a(ipv4.o): In function `fib_validate_source':
ipv4.o(.text+0x1d2e9): undefined reference to `fib_lookup'
ipv4.o(.text+0x1d33b): undefined reference to `fib_rules_tclass'
ipv4.o(.text+0x1d39c): undefined reference to `fib_lookup'
net/network.a(ipv4.o): In function `fib_check_nh':
ipv4.o(.text+0x1df99): undefined reference to `fib_lookup'
net/network.a(ipv4.o): In function `ip_masq_init':
ipv4.o(.text.init+0x12d): undefined reference to `ip_vs_init'
ipv4.o(.text.init+0x137): undefined reference to `ip_masq_mod_init'
net/network.a(ipv4.o): In function `inet_proto_init':
ipv4.o(.text.init+0x5ff): undefined reference to `ip_mr_init'
net/network.a(ipv4.o): In function `ip_fib_init':
ipv4.o(.text.init+0x690): undefined reference to `fib_rules_init'
net/network.a(ipv4.o)(.data+0x1084): undefined reference to `ipmr_ioctl'
net/network.a(ipv4.o)(.data+0x17c0): undefined reference to
`inet_rtm_newrule'
net/network.a(ipv4.o)(.data+0x17c8): undefined reference to
`inet_rtm_delrule'
net/network.a(ipv4.o)(.data+0x17d4): undefined reference to
`inet_dump_rules'
net/network.a(ipv4.o)(.data+0x2580): undefined reference to `ipv4_vs_table'
drivers/block/block.a(ide-pci.o)(.data.init+0x170): undefined reference to
`ide_init_ali15x3'
drivers/char/char.o: In function `rs_interrupt':
drivers/char/char.o(.text+0x63d4): undefined reference to `handle_sysrq'
drivers/char/char.o: In function `rs_interrupt_single':
drivers/char/char.o(.text+0x68e8): undefined reference to `handle_sysrq'
drivers/char/char.o: In function `rs_interrupt_multi':
drivers/char/char.o(.text+0x6e20): undefined reference to `handle_sysrq'
drivers/char/char.o: In function `handle_scancode':
drivers/char/char.o(.text+0xa4de): undefined reference to `sysrq_enabled'
drivers/char/char.o(.text+0xa50e): undefined reference to `handle_sysrq'
drivers/char/char.o: In function `misc_init':
drivers/char/char.o(.text.init+0x42e): undefined reference to `rtc_init'
drivers/char/char.o(.text.init+0x433): undefined reference to `rng_init'
drivers/char/char.o: In function `chr_dev_init':
drivers/char/char.o(.text.init+0x1172): undefined reference to `fbmem_init'
drivers/net/net.a(Space.o)(.data.init+0x20): undefined reference to
`SK_init'
drivers/net/net.a(Space.o)(.data.init+0x30): undefined reference to
`atp_init'
drivers/net/net.a(net_init.o): In function `fddi_setup':
net_init.o(.text+0x382): undefined reference to `fddi_header'
net_init.o(.text+0x38c): undefined reference to `fddi_rebuild_header'
drivers/net/net.a(net_init.o): In function `init_trdev':
net_init.o(.text+0x75d): undefined reference to `tr_header'
net_init.o(.text+0x767): undefined reference to `tr_rebuild_header'
drivers/net/net.a(net_init.o): In function `fc_setup':
net_init.o(.text+0x92a): undefined reference to `fc_header'
net_init.o(.text+0x934): undefined reference to `fc_rebuild_header'
drivers/video/video.a(vgacon.o): In function `vgacon_startup':
vgacon.o(.text.init+0x13): undefined reference to `dummy_con'
vgacon.o(.text.init+0x1d): undefined reference to `dummy_con'
make: *** [vmlinux] Error 1





> -----Original Message-----
> From:	Steve Pardee [SMTP:stevevp pacbell net]
> Sent:	Wednesday, July 11, 2001 4:55 PM
> To:	Burke, Thomas G.
> Subject:	RE: RH 6.2 Kernel 2.2.19 compile problem
> 
> Thomas,
> 
> Sounds like some of your links could be getting mixed up if make dep
> cannot see asm.  If you copied and did not move asm, you might want to
> remove it  because some of the tools could be linked to asm in the other
> directory.  Having two sets of asm could be confusing the linker.  I
> think I mentioned I sometimes prefer to avoid adding and removing
> programs with rpm even with the -vv option because sometimes it can be
> difficult see what is and what is not getting changed.  One possibility,
> not necessarily the right one, could be to get a clean version of asm on
> your system and that it is compatible with the other compiling tools and
> libraries on your system.  The other possibility is that your kernel is
> just incompatible with your tools.  Perhaps you could test make against
> a different release of the kernel.  I'll think about this some more and
> will get back to you if I come up with any more suggestions.  Sorry I
> can't give you a definitive suggestion.
> 
> -Steve Pardee
> 
> Geez...  What a pain...  I've _NEVER_ since RH 3.0 had a problem like
> this...
> 
> I rpm -e'd the kernel-source.
> rpm -ivh kernel-source...
> checked it out, missing include directory
> untarred the 2.2.19 source from kernel.org over everything...
> still no include directory
> rpm -Uvh --force the glibc updates
> include now exists
> 
> "make dep" fails saying it can't find stuff in the asm directory.
> 
> Checked, there is no asm directory...  copied asm-i386 to asm...
> "make dep" fails with :
> 
> make[2]: Entering directory `/usr/src/linux-2.2.19/kernel'
> make[2]: *** No rule to make target
> `/usr/src/linux-2.2.19/include/linux/autoconf.h', needed
> by `/usr/src/linux-2.2.19/include/linux/modules/context.ver'.  Stop.
> make[2]: Leaving directory `/usr/src/linux-2.2.19/kernel'
> make[1]: *** [_sfdep_kernel] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.2.19'
> make: *** [dep-files] Error 2
> 
> 
> I'm 'bout ready to get fed up...
> 
> 
> 
> --
> stevevp pacbell net
> 
> "Tip the world on its side and everything loose will land in Los Angeles"
> 
> - Frank Lloyd Wright (1868-1959)
> 
> 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]