public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Anders Peter Fugmann <afu@fugmann.dhs.org>
To: Andreas Dilger <adilger@turbolinux.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Exporting symbols from a module.
Date: Thu, 17 May 2001 18:51:05 +0200	[thread overview]
Message-ID: <3B040179.7090807@fugmann.dhs.org> (raw)
In-Reply-To: <200105152245.f4FMjnwN021983@webber.adilger.int> <3B03B5C7.5040107@fugmann.dhs.org>

Resolved.

I just looked at what the kernel did whne compiling a module that 
exported some symbols, and discovered that I needed
to set CFLAGS to:

-D__KERNEL__ -I$/usr/src/linux)  -Wall -Wstrict-prototypes \
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe \
-DMODULE  -DMODVERSIONS -include \
/usr/src/linux/modversions.h

Now all works correctly, and I can load my modules.

Thanks for all your help.
eps. the tip when I try to compile it in the kernel tree.

Anders Fugmann



Anders Peter Fugmann wrote:

> Hi Andreas.
> 
> I now see what you mean, and I will give it a try.
> 
> But actually I'm not compiling it under the linux kernel tree, and  I 
> really would like a way to export symbols, while compiling outside the 
> kernel tree. How would I accomplish that?
> 
> Regards
> Anders Fugmann
> 
> 



  reply	other threads:[~2001-05-17 16:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-15 18:18 Exporting symbols from a module Anders Peter Fugmann
2001-05-15 21:57 ` Andreas Dilger
2001-05-15 22:23   ` Anders Peter Fugmann
2001-05-15 22:45     ` Andreas Dilger
2001-05-17 11:28       ` Anders Peter Fugmann
2001-05-17 16:51         ` Anders Peter Fugmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-05-17 18:46 Khachaturov, Vassilii

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=3B040179.7090807@fugmann.dhs.org \
    --to=afu@fugmann.dhs.org \
    --cc=adilger@turbolinux.com \
    --cc=linux-kernel@vger.kernel.org \
    /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