All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] uml-patch-2.6.8.1-1 compilation error
@ 2004-08-21 12:34 Vinay K Nallamothu
  2004-08-21 15:20 ` Ralph Paßgang
  2004-08-22 11:39 ` [uml-devel] Status of SKAS + TLS/NPTL Michael Ralston
  0 siblings, 2 replies; 4+ messages in thread
From: Vinay K Nallamothu @ 2004-08-21 12:34 UTC (permalink / raw)
  To: user-mode-linux-devel

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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] uml-patch-2.6.8.1-1 compilation error
  2004-08-21 12:34 [uml-devel] uml-patch-2.6.8.1-1 compilation error Vinay K Nallamothu
@ 2004-08-21 15:20 ` Ralph Paßgang
  2004-08-22 11:39 ` [uml-devel] Status of SKAS + TLS/NPTL Michael Ralston
  1 sibling, 0 replies; 4+ messages in thread
From: Ralph Paßgang @ 2004-08-21 15:20 UTC (permalink / raw)
  To: user-mode-linux-devel

[-- Attachment #1: Type: text/plain, Size: 2674 bytes --]

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:
> 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
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

[-- Attachment #2: uml-patch-2.6.7-2-fix.diff --]
[-- Type: text/x-diff, Size: 562 bytes --]

diff -Naur kernel-source-2.6.7.orig/arch/um/kernel/ksyms.c kernel-source-2.6.7/arch/um/kernel/ksyms.c
--- kernel-source-2.6.7.orig/arch/um/kernel/ksyms.c	2004-08-19 15:23:52.000000000 +0200
+++ kernel-source-2.6.7/arch/um/kernel/ksyms.c	2004-08-19 15:26:14.000000000 +0200
@@ -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);

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [uml-devel] Status of SKAS + TLS/NPTL
  2004-08-21 12:34 [uml-devel] uml-patch-2.6.8.1-1 compilation error Vinay K Nallamothu
  2004-08-21 15:20 ` Ralph Paßgang
@ 2004-08-22 11:39 ` Michael Ralston
  2004-08-29 21:15   ` BlaisorBlade
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Ralston @ 2004-08-22 11:39 UTC (permalink / raw)
  To: user-mode-linux-devel

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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] Status of SKAS + TLS/NPTL
  2004-08-22 11:39 ` [uml-devel] Status of SKAS + TLS/NPTL Michael Ralston
@ 2004-08-29 21:15   ` BlaisorBlade
  0 siblings, 0 replies; 4+ messages in thread
From: BlaisorBlade @ 2004-08-29 21:15 UTC (permalink / raw)
  To: user-mode-linux-devel, ralston

Alle 13:39, domenica 22 agosto 2004, Michael Ralston ha scritto:
> 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.
-- 
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-29 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-21 12:34 [uml-devel] uml-patch-2.6.8.1-1 compilation error Vinay K Nallamothu
2004-08-21 15:20 ` Ralph Paßgang
2004-08-22 11:39 ` [uml-devel] Status of SKAS + TLS/NPTL Michael Ralston
2004-08-29 21:15   ` BlaisorBlade

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.