All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ralph Paßgang" <ralph@debianbase.de>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] uml-patch-2.6.8.1-1 compilation error
Date: Sat, 21 Aug 2004 17:20:48 +0200	[thread overview]
Message-ID: <200408211720.48201.ralph@debianbase.de> (raw)
In-Reply-To: <1093091667.5430.4.camel@vinay.gsecone.com>

[-- 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);

  reply	other threads:[~2004-08-21 15:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2004-08-22 11:39 ` [uml-devel] Status of SKAS + TLS/NPTL Michael Ralston
2004-08-29 21:15   ` BlaisorBlade

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408211720.48201.ralph@debianbase.de \
    --to=ralph@debianbase.de \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.