Warnings compiling linux-2.6.17-rc5
I just tried to compile a new guest kernel using the linux-2.6.17-rc5 kernel source and encountered the following warnings.
I can post the .config file if needed.
Tony
SYMLINK arch/um/include/sysdep
make[1]: `arch/um/sys-i386/user-offsets.s' is up to date.
CHK include/linux/version.h
Building modules, stage 2.
MODPOST
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_nosmp from .bss between 'stderr@@GLIBC_2.0' (at offset 0x82607c4) and 'completed.4463'
WARNING: vmlinux - Section mismatch: reference to .init.text: from .plt after '' (at offset 0x8260590)
WARNING: vmlinux - Section mismatch: reference to .init: from .plt after '' (at offset 0x82605b0)
WARNING: vmlinux - Section mismatch: reference to .init.setup: from .plt after '' (at offset 0x82605e0)
WARNING: vmlinux - Section mismatch: reference to .init.ramfs: from .plt after '' (at offset 0x8260600)
WARNING: vmlinux - Section mismatch: reference to .init.text:nosmp from .plt after '' (at offset 0x826066c)
WARNING: vmlinux - Section mismatch: reference to .init.text:maxcpus from .plt after '' (at offset 0x8260670)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_maxcpus from .plt after '' (at offset 0x8260678)
WARNING: vmlinux - Section mismatch: reference to .init.text:obsolete_checksetup from .plt after '' (at offset 0x8260680)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_debug_kernel from .plt after '' (at offset 0x8260690)
WARNING: vmlinux - Section mismatch: reference to .init.text:debug_kernel from .plt after '' (at offset 0x8260694)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_quiet_kernel from .plt after '' (at offset 0x826069c)
WARNING: vmlinux - Section mismatch: reference to .init.text:quiet_kernel from .plt after '' (at offset 0x82606a0)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_loglevel from .plt after '' (at offset 0x82606a8)
WARNING: vmlinux - Section mismatch: reference to .init.text:unknown_bootoption from .plt after '' (at offset 0x82606b0)
WARNING: vmlinux - Section mismatch: reference to .init.text:init_setup from .plt after '' (at offset 0x82606b8)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_init_setup from .plt after '' (at offset 0x82606c0)
WARNING: vmlinux - Section mismatch: reference to .init.text:rdinit_setup from .plt after '' (at offset 0x82606c4)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_rdinit_setup from .plt after '' (at offset 0x82606d0)
WARNING: vmlinux - Section mismatch: reference to .init.text:do_early_param from .plt after '' (at offset 0x82606dc)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_initcall_debug_setup from .plt after '' (at offset 0x82606ec)
WARNING: vmlinux - Section mismatch: reference to .init.text:initcall_debug_setup from .plt after '' (at offset 0x82606f0)
WARNING: vmlinux - Section mismatch: reference to .init.text:do_initcalls from .plt after '' (at offset 0x82606f4)
WARNING: vmlinux - Section mismatch: reference to .init.text:do_basic_setup from .plt after '' (at offset 0x82606fc)
WARNING: vmlinux - Section mismatch: reference to .init.text:load_ramdisk from .plt after '' (at offset 0x8260710)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_load_ramdisk from .plt after '' (at offset 0x8260714)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_readonly from .plt after '' (at offset 0x826071c)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_readwrite from .plt after '' (at offset 0x8260724)
WARNING: vmlinux - Section mismatch: reference to .init.text:readwrite from .plt after '' (at offset 0x8260728)
WARNING: vmlinux - Section mismatch: reference to .init.text:root_dev_setup from .plt after '' (at offset 0x8260730)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_root_dev_setup from .plt after '' (at offset 0x8260738)
WARNING: vmlinux - Section mismatch: reference to .init.text:root_delay_setup from .plt after '' (at offset 0x826073c)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_root_data_setup from .plt after '' (at offset 0x8260748)
WARNING: vmlinux - Section mismatch: reference to .init.text:root_data_setup from .plt after '' (at offset 0x826074c)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_fs_names_setup from .plt after '' (at offset 0x8260754)
WARNING: vmlinux - Section mismatch: reference to .init.text:fs_names_setup from .plt after '' (at offset 0x8260758)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_root_delay_setup from .plt after '' (at offset 0x8260760)
WARNING: vmlinux - Section mismatch: reference to .init.text:get_fs_names from .plt after '' (at offset 0x8260764)
WARNING: vmlinux - Section mismatch: reference to .init.text:do_mount_root from .plt after '' (at offset 0x8260770)
WARNING: vmlinux - Section mismatch: reference to .init.text:prompt_ramdisk from .plt after '' (at offset 0x8260778)
WARNING: vmlinux - Section mismatch: reference to .init.text:ramdisk_start_setup from .plt after '' (at offset 0x826077c)
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_ramdisk_start_setup from .plt after '' (at offset 0x8260784)
WARNING: vmlinux - Section mismatch: reference to .init.text:identify_ramdisk_image from .plt after '' (at offset 0x8260788)
WARNING: vmlinux - Section mismatch: reference to .init.text:huft_build from .plt after '' (at offset 0x82607a8)
WARNING: vmlinux - Section mismatch: reference to .exit.text: from .plt after '' (at offset 0x82605fc)
WARNING: "strcpy" [net/ipv6/ipv6.ko] undefined!
WARNING: "strcpy" [net/ipv4/netfilter/ipt_recent.ko] undefined!
WARNING: "strcpy" [net/ipv4/netfilter/ip_conntrack_tftp.ko] undefined!
WARNING: "strcpy" [net/ipv4/netfilter/ip_conntrack_irc.ko] undefined!
WARNING: "strcpy" [net/ipv4/netfilter/ip_conntrack_ftp.ko] undefined!
WARNING: "strcpy" [fs/nfsd/nfsd.ko] undefined!
WARNING: "strcpy" [fs/cifs/cifs.ko] undefined!
WARNING: "strcpy" [fs/binfmt_misc.ko] undefined!
WARNING: "strcpy" [drivers/net/bonding/bonding.ko] undefined!
INSTALL crypto/cast5.ko
INSTALL crypto/crc32c.ko
<TRIMMED OUTPUT>
INSTALL net/sched/sch_teql.ko
INSTALL net/sunrpc/auth_gss/rpcsec_gss_spkm3.ko
if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map -b /mnt -r 2.6.17-rc5; fi
WARNING: /mnt/lib/modules/2.6.17-rc5/kernel/net/ipv6/ipv6.ko needs unknown symbol strcpy
WARNING: /mnt/lib/modules/2.6.17-rc5/kernel/net/ipv4/netfilter/ipt_recent.ko needs unknown symbol strcpy
WARNING:/mnt/lib/modules/2.6.17-rc5/kernel/net/ipv4/netfilter/ip_conntrack_tftp.ko needs unknown symbol strcpy
WARNING:/mnt/lib/modules/2.6.17-rc5/kernel/net/ipv4/netfilter/ip_conntrack_irc.ko needs unknown symbol strcpy
WARNING:/mnt/lib/modules/2.6.17-rc5/kernel/net/ipv4/netfilter/ip_conntrack_ftp.ko needs unknown symbol strcpy
WARNING: /mnt/lib/modules/2.6.17-rc5/kernel/fs/nfsd/nfsd.ko needs unknown symbol strcpy
WARNING: /mnt/lib/modules/2.6.17-rc5/kernel/fs/cifs/cifs.ko needs unknown symbol strcpy
WARNING: /mnt/lib/modules/2.6.17-rc5/kernel/fs/binfmt_misc.ko needs unknown symbol strcpy
WARNING: /mnt/lib/modules/2.6.17-rc5/kernel/drivers/net/bonding/bonding.ko needs unknown symbol strcpy
#
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 5 lines · Anthony Brock
I just tried to compile a new guest kernel using the linux-2.6.17-rc5 kernel source and encountered the following warnings.
WARNING: vmlinux - Section mismatch: reference to .init.setup:__setup_nosmp from .bss between 'stderr@@GLIBC_2.0' (at offset0x82607c4) and 'completed.4463'
These I have no clue about. I've seen them with a native build, so they appear not to be UML-specific. Looks like a broken linker. The resulting UML works fine, so this is nasty-looking, but non-fatal.
Quoted 2 lines
WARNING:
/mnt/lib/modules/2.6.17-rc5/kernel/net/ipv6/ipv6.koneeds unknown symbol strcpy
This is fixed in my current tree.
Jeff
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 5 lines · Anthony Brock
Quoted 1 line
I just tried to compile a new guest kernel using the
linux-2.6.17-rc5 kernel
Quoted 2 lines
source and encountered the following warnings.
WARNING: vmlinux - Section mismatch: reference to
Quoted 7 lines
.init.setup:__setup_nosmp
Quoted 2 lines
from .bss between 'stderr@@GLIBC_2.0' (at offset
0x82607c4) and 'completed.4463'These I have no clue about. I've seen them with a native build, so they appear not to be UML-specific. Looks like a broken linker. The resulting UML works fine, so this is nasty-looking, but non-fatal.
Good. I'll ignore them.
Quoted 5 lines
Quoted 1 line
WARNING:
/mnt/lib/modules/2.6.17-rc5/kernel/net/ipv6/ipv6.koneeds unknown
Quoted 1 line
symbol strcpy
This is fixed in my current tree.
I actually looked through these patches before asking:
http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.17-rc4/patches.t
ar
I didn't see anything that appeared to address this. However, I'll try applying these and test from there.
Thanks!
Tony
BTW, this compile was run on Debian Testing (Etch):
# gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --pr efix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without -included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable -java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java- 1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=i686 -- enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.0.4 20060507 (prerelease) (Debian 4.0.3-3) # ld -V GNU ld version 2.16.91 20060413 Debian GNU/Linux Supported emulations: elf_i386 i386linux elf_x86_64
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 9 lines
-----Original Message-----
I actually looked through these patches before asking:http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.17-rc4
/patches.t
arI didn't see anything that appeared to address this. However, I'll try applying these and test from there.
I tried these patches but encountered the errors below. While most of the patches applied without an issue, I was forced to modify one patch before it would apply to the 2.6.17-rc5 tree. I had to delete following line from the patch file externfs:
obj-$(CONFIG_CONFIGFS_FS) += configfs/
I will retry this compile with externfs disabled.
Tony
GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1
fs/built-in.o: In function `humfs_stat_file':fs/externfs/humfs.c:39: undefined reference to host_stat_file' fs/built-in.o: In function humfs_file_type':fs/externfs/humfs.c:122: undefined reference to host_file_type' fs/built-in.o: In function humfs_open_file':fs/externfs/humfs.c:173: undefined reference to get_path' fs/externfs/humfs.c:202: undefined reference to free_path' fs/built-in.o: In function `humfs_open_dir':fs/externfs/humfs.c:217: undefined reference to host_open_dir' fs/built-in.o: In function humfs_make_node':fs/externfs/humfs.c:449: undefined reference to host_create_file' fs/externfs/humfs.c:481: undefined reference to host_unlink_file' fs/built-in.o: In function `humfs_create_file':fs/externfs/humfs.c:496: undefined reference to host_create_file' fs/built-in.o: In function humfs_set_attr':fs/externfs/humfs.c:536: undefined reference to host_set_attr' fs/built-in.o: In function humfs_make_symlink':fs/externfs/humfs.c:550: undefined reference to host_make_symlink' fs/built-in.o: In function humfs_link_file':fs/externfs/humfs.c:570: undefined reference to host_link_file' fs/built-in.o: In function humfs_unlink_file':fs/externfs/humfs.c:587: undefined reference to host_unlink_file' fs/built-in.o: In function humfs_make_dir':fs/externfs/humfs.c:610: undefined reference to host_make_dir' fs/built-in.o: In function humfs_remove_dir':fs/externfs/humfs.c:623: undefined reference to host_remove_dir' fs/built-in.o: In function humfs_read_link':fs/externfs/humfs.c:638: undefined reference to host_read_link' fs/built-in.o: In function humfs_rename_file':fs/externfs/humfs.c:657: undefined reference to host_rename_file' fs/built-in.o: In function humfs_stat_fs':fs/externfs/humfs.c:675: undefined reference to host_stat_fs' fs/built-in.o: In function read_superblock':fs/externfs/humfs.c:777: undefined reference to host_open_file' fs/built-in.o: In function humfs_read_dir':fs/externfs/humfs.c:229: undefined reference to generic_host_read_dir' fs/built-in.o: In function meta_file_name':fs/externfs/meta_fs.c:32: undefined reference to get_path' fs/externfs/meta_fs.c:49: undefined reference to get_path' fs/externfs/meta_fs.c:58: undefined reference to free_path' fs/built-in.o: In function meta_fs_name':fs/externfs/meta_fs.c:76: undefined reference to free_path' fs/built-in.o: In function metafs_create_file':fs/externfs/meta_fs.c:152: undefined reference to get_path' fs/externfs/meta_fs.c:170: undefined reference to free_path' fs/externfs/meta_fs.c:176: undefined reference to free_path' fs/built-in.o: In function metafs_create_link':fs/externfs/meta_fs.c:188: undefined reference to host_link_file' fs/built-in.o: In function metafs_remove_file':fs/externfs/meta_fs.c:196: undefined reference to get_path' fs/externfs/meta_fs.c:205: undefined reference to free_path' fs/built-in.o: In function `metafs_create_directory':fs/externfs/meta_fs.c:220: undefined reference to host_make_dir' fs/externfs/meta_fs.c:224: undefined reference to host_make_dir' fs/externfs/meta_fs.c:234: undefined reference to get_path' fs/externfs/meta_fs.c:252: undefined reference to free_path' fs/externfs/meta_fs.c:254: undefined reference to host_remove_dir' fs/built-in.o: In function metafs_remove_directory':fs/externfs/meta_fs.c:270: undefined reference to get_path' fs/externfs/meta_fs.c:285: undefined reference to free_path' fs/externfs/meta_fs.c:287: undefined reference to get_path' fs/externfs/meta_fs.c:298: undefined reference to free_path' fs/built-in.o: In function `metafs_make_node':fs/externfs/meta_fs.c:316: undefined reference to get_path' fs/externfs/meta_fs.c:332: undefined reference to free_path' fs/built-in.o: In function `metafs_rename_file':fs/externfs/meta_fs.c:455: undefined reference to free_path' fs/externfs/meta_fs.c:457: undefined reference to free_path'
collect2: ld returned 1 exit status
KSYM .tmp_kallsyms1.S
nm: '.tmp_vmlinux1': No such file
No valid symbol.
make: *** [.tmp_kallsyms1.S] Error 1
#
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 18 lines
-----Original Message-----
Quoted 9 lines
-----Original Message-----
I actually looked through these patches before asking:http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.17-rc4
/patches.t
arI didn't see anything that appeared to address this. However, I'll try applying these and test from there.
I tried these patches but encountered the errors below. While most of the patches applied without an issue, I was forced to modify one patch before it
would apply to the 2.6.17-rc5 tree. I had to delete following line from the
patch file externfs:
Quoted 3 lines
obj-$(CONFIG_CONFIGFS_FS) += configfs/
I will retry this compile with externfs disabled.
This appears to have worked (compiled) after I disabled both HUMFS and EXTERNFS in the config. I will try launching an instance with this executable in the morning and see how it performs.
However, I wasn't able to disable the EXTERNFS option through the regular 'make menuconfig ARCH=um' command. The option inside the regular menu interface was already disabled (although the resulting .config file listed it as enabled). I was forced to manually edit the .config file and comment it out.
The really strange thing is that AFTER the compile the .config file has EXTERNFS enabled! Also, the resulting executable agrees with the final .config file. I've never seen an instance where compiling the kernel changes options in the .config file. I've even verified that both HUMFS and HOSTFS are disabled (to prevent these options from auto-enabling EXTERNFS). However, I've confirmed this behavior twice.
As a result, the only real difference in configuration to fix the compile was disabling HUMFS.
Tony
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 7 lines · Anthony Brock
I actually looked through these patches before asking:
http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.17-rc4/patches.t
arI didn't see anything that appeared to address this. However, I'll try applying these and test from there.
I haven't pushed it out yet. Keep an eye out for a patch called 'sprintf'.
Jeff
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 7 lines
-----Original Message-----
Quoted 1 line · Anthony Brock
WARNING:
/mnt/lib/modules/2.6.17-rc5/kernel/net/ipv6/ipv6.koneeds unknown
Quoted 1 line
symbol strcpy
This is fixed in my current tree.
Before I forget, this warning is still occurring even after applying the patches mentioned in my previous post. Is there a different tree I should be patching from? Or is this tree the correct one for testing your patches? Or does this lag your "current" tree by some time period?
Thanks,
Tony
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel