cheikhrouhou wrote:
Hello,
i compiled a 2.4.24 kernel with gcc.3.3.3 (which i was installed because the
gcc-4.0 which comes with FC4 don't compile well uml kernel)
and he generates this message :
gcc -Wl,-T,arch/um/link.ld -static -Wl,--wrap,malloc -Wl,--wrap,free
-Wl,--wrap,calloc \
-o linux arch/um/main.o vmlinux.o -L/usr/lib -lutil
vmlinux.o(.text+0x10ddbe): In function `probe_netbus_device':
/home/omar/uml/noyaux/linux-2.4.24-wifi/arch/um/drivers/netbus_user.c:293:
warning: Using 'gethostbyname' in static ally linked applications requires at
runtime the shared libraries from the glibc version used for linking
vmlinux.o(.text+0x10ddd8):/home/omar/uml/noyaux/linux-2.4.24-wifi/arch/um/drivers/netbus_user.c:294:
warning: Using 'getprotobyname' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: BFD 2.15.94.0.2.2 20041220 assertion fail ../../bfd/elf.c:3699
and when i try lo lance this kernel he shows :
segmantation fault
Any idea about the solution
I had time to investiguate your problem on a FC3. I found out that the
segmentation fault which occurs with the binaries when inserting the
module is due to :
_dl_lookup_versioned_symbol ()
So this is a library mismatch and the problem should disappear when
recompiling uml on the host that you will be using to run uml. In order
to do so, you have to download the sources I put on my web site and I
have added the patch to run uml 2.4 guest on a 2.6 host. This is just
tow lines and you have to modify these lines by hand (the patch doesn't
apply on this version). So the instructions are:
1) download and untar the kernel.
2) patch it with uml-patch-2.4.24-1
3) modify the two lines as directed by the patch uml2.6host.patch
4) apply the netbus patch
5) compile the modified kernel with gcc 3.3
And that's it, no more segmentation fault !
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user