Skip to contentSkip to conversation

uml-patch-2.6.8.1-1 compilation error

uml-devel Vinay K Nallamothu 4 participants 4 messages Aug 21, 2004 – Aug 29, 2004 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

Hi List,

While compiling I got the following error

gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -U__i386__ -Ui386 -D__arch_um__ -DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE -Iarch/um/include -I/home/nvk/build/linux-2.6.8-uml1/arch/um/kernel/tt/include -I/home/nvk/build/linux-2.6.8-uml1/arch/um/kernel/skas/include -D_GNU_SOURCE -O2 -g -c -o arch/um/kernel/irq_user.o arch/um/kernel/irq_user.c
CC arch/um/kernel/ksyms.o
arch/um/kernel/ksyms.c:90: redefinition of __kcrctab_os_ioctl_generic' arch/um/kernel/ksyms.c:76: __kcrctab_os_ioctl_generic' previously defined here arch/um/kernel/ksyms.c:90: redefinition of __kstrtab_os_ioctl_generic' arch/um/kernel/ksyms.c:76: __kstrtab_os_ioctl_generic' previously defined here arch/um/kernel/ksyms.c:90: redefinition of __ksymtab_os_ioctl_generic' arch/um/kernel/ksyms.c:76: __ksymtab_os_ioctl_generic' previously defined here

Vinay

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw

Hi Vinay (& list),

I had the same problem compiling a uml kernel 2.6.7 and 2.6.8.1. I took a debian kernel-source package and applied the uml-patch for it.

It seems that in ksyms.c "os_ioctl_generic" is declared twice. So I made a small patch for this problem.

I attached it as file to my mail, but because it's so short, I copy&paste it quite under my post.

It would be nice if a good kernel hacker would take a look at it. The UML works for me, but I'm not sure if I solved the problem correctly.

Patch (works for 2.6.7 and 2.6.8 with the uml patch applied):

diff -Naur kernel-source-2.6.7.orig/arch/um/kernel/ksyms.c kernel-source-2.6.7/$
--- kernel-source-2.6.7.orig/arch/um/kernel/ksyms.c 2004-08-19
15:23:52.000$
+++ kernel-source-2.6.7/arch/um/kernel/ksyms.c 2004-08-19 15:26:14.000000000 +$
@@ -87,7 +87,7 @@
EXPORT_SYMBOL(os_create_unix_socket); EXPORT_SYMBOL(os_connect_socket); EXPORT_SYMBOL(os_accept_connection);
-EXPORT_SYMBOL(os_ioctl_generic);
+/* EXPORT_SYMBOL(os_ioctl_generic); */
EXPORT_SYMBOL(os_rcv_fd);
EXPORT_SYMBOL(run_helper);
EXPORT_SYMBOL(start_thread);

--Ralph

Am Samstag 21 August 2004 14:34 schrieb Vinay K Nallamothu:

Quoted 26 lines

Hi List,

While compiling I got the following error

gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing

(quoted diff) +0 -5
-fno-common -U__i386__ -Ui386 -D__arch_um__ -DSUBARCH=\"i386\"
-D_LARGEFILE64_SOURCE   -Iarch/um/include
-I/home/nvk/build/linux-2.6.8-uml1/arch/um/kernel/tt/include
-I/home/nvk/build/linux-2.6.8-uml1/arch/um/kernel/skas/include
-D_GNU_SOURCE -O2 -g -c -o arch/um/kernel/irq_user.o

arch/um/kernel/irq_user.c CC arch/um/kernel/ksyms.o
arch/um/kernel/ksyms.c:90: redefinition of __kcrctab_os_ioctl_generic' arch/um/kernel/ksyms.c:76: __kcrctab_os_ioctl_generic' previously defined here arch/um/kernel/ksyms.c:90: redefinition of `__kstrtab_os_ioctl_generic' arch/um/kernel/ksyms.c:76:
__kstrtab_os_ioctl_generic' previously defined here arch/um/kernel/ksyms.c:90: redefinition of __ksymtab_os_ioctl_generic' arch/um/kernel/ksyms.c:76: `__ksymtab_os_ioctl_generic' previously defined here

Vinay

Quoted 9 lines

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

arch/um/kernel/ksyms.c +1 -1
diff -Naur kernel-source-2.6.7.orig/arch/um/kernel/ksyms.c kernel-source-2.6.7/arch/um/kernel/ksyms.c
@@ -87,7 +87,7 @@
 EXPORT_SYMBOL(os_create_unix_socket);
 EXPORT_SYMBOL(os_connect_socket);
 EXPORT_SYMBOL(os_accept_connection);
-EXPORT_SYMBOL(os_ioctl_generic);
+/* EXPORT_SYMBOL(os_ioctl_generic); */
 EXPORT_SYMBOL(os_rcv_fd);
 EXPORT_SYMBOL(run_helper);
 EXPORT_SYMBOL(start_thread);
#2 lore raw

[uml-devel] Status of SKAS + TLS/NPTL

In reply to Vinay K Nallamothu

Just a quick question...

Wondering what the status of running a SKAS host with a user mode linux guest with a 2.6.x kernel and Thread-Local-Storage in Libc6...

Does this still crash? If so what needs to be done to get this working?

Michael Ralston
Stral.net

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.735 / Virus Database: 489 - Release Date: 6/08/2004

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#3 lore raw

Re: [uml-devel] Status of SKAS + TLS/NPTL

Alle 13:39, domenica 22 agosto 2004, Michael Ralston ha scritto:

Quoted 6 lines

Just a quick question...

Wondering what the status of running a SKAS host with a user mode linux guest with a 2.6.x kernel and Thread-Local-Storage in Libc6...

Does this still crash? If so what needs to be done to get this working?

Yes, it still crashes. I'm going to fix only for 2.6 hosts. Basically we need to handle the NPTL syscalls by forwarding them to the host. And only 2.6 hosts can do what's needed. Anyway, if that is a problem we could fix it later.

Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel