From: Keith Owens <kaos@ocs.com.au>
To: Timur Tabi <ttabi@interactivesi.com>
Cc: Linux Kernel Mailing list <linux-kernel@vger.kernel.org>
Subject: Re: multiple definition of `__module_kernel_version'
Date: Thu, 09 Nov 2000 08:08:31 +1100 [thread overview]
Message-ID: <13202.973717711@ocs3.ocs-net> (raw)
In-Reply-To: Your message of "Wed, 08 Nov 2000 14:09:43 MDT." <20001108200949Z129150-31179+2040@vger.kernel.org>
On Wed, 08 Nov 2000 14:09:43 -0600,
Timur Tabi <ttabi@interactivesi.com> wrote:
>I'm trying to port my driver from 2.4 to 2.2. When I try to compile it, I get
>several "multiple definition of `__module_kernel_version'" errors:
include/linux/module.h was changed in the 2.3 kernels to define
__module_kernel_version and __module_using_checksums as static.
Without that change you get multiple definitions of the variables when
you link multiple objects into a single module. In 2.2 you have to
#define __NO_VERSION__ before including module.h in all of the module
objects except one. Search 2.2 drivers for __NO_VERSION__ to see
examples of this.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-11-08 21:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-08 20:09 multiple definition of `__module_kernel_version' Timur Tabi
2000-11-08 21:08 ` Keith Owens [this message]
2000-11-08 21:15 ` Timur Tabi
2000-11-08 21:30 ` Keith Owens
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=13202.973717711@ocs3.ocs-net \
--to=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=ttabi@interactivesi.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox