fam
[Top] [All Lists]

Re: [fam] imon 0.0.[12]-2.4.0-test9 compile error

To: rusty@xxxxxxx
Subject: Re: [fam] imon 0.0.[12]-2.4.0-test9 compile error
From: Jerome De Greef <jdegreef@xxxxxxxxxx>
Date: Fri, 2 Mar 2001 15:56:04 +0100
Cc: fam@xxxxxxxxxxx
In-reply-to: <10102280918.ZM38931@xxxxxxxxxxxxxxxxxx>; from rusty@xxxxxxxxxxxxxxxxxx on Wed, Feb 28, 2001 at 09:17:59AM -0800
Mail-followup-to: rusty@xxxxxxx, fam@xxxxxxxxxxx
References: <rusty@xxxxxxxxxxxxxxxxxx> <10102261510.ZM19474@xxxxxxxxxxxxxxxxxx> <20010227002453.A8022@xxxxxxxxxxxxxxxxxxx> <jdegreef@xxxxxxxxxx> <10102261535.ZM19656@xxxxxxxxxxxxxxxxxx> <20010227181803.A24218@xxxxxxxxxxxxxxxxxxx> <10102271828.ZM21720@xxxxxxxxxxxxxxxxxx> <20010228180406.A1730@xxxxxxxxxxxxxxxxxxx> <jdegreef@xxxxxxxxxx> <10102280918.ZM38931@xxxxxxxxxxxxxxxxxx>
Sender: owner-fam@xxxxxxxxxxx
User-agent: Mutt/1.3.15i
Hi,

* Rusty Ballinger (rusty@xxxxxxxxxxxxxxxxxx) wrote:
> > > In that earlier message where I said I didn't think imon worked as a
> > > module, I was wrong, sick, had been sniffing glue, etc.
> >
> > Well, the problem is that imon doesn't want to compile as a module. See
> > my first mail, it is exactly what I was trying to do...
> 
> Right, sorry.
> 
> I haven't tried to build a 2.4 kernel myself, so I don't know what's
> different with the makefiles (or why it doesn't work on your box), but
> at the point where it's running the ld command you sent:
> 
> > ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext
> > arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
> ...
> >         --end-group \
> >         -o vmlinux
> 
> has fs/imon/imon_static.o been built?  If so, if you manually add that
> object to the ld command, does the link succeed?  (Presumably inside the
> --start-group/--end-group flags, but I don't know.)

No, at this point imon_static.o is not build.
But what I did is, right after I get the error, I did make modules
(imon_static.o and imon.o where built) and added imon_static.o in the top
Makefile.
Then I (re)make bzImage and the kernel finished to build without error.
That's probably not the best way to do it ;) but at least it worked.
I still have to test it to see if the module load correctly but I'm in remote
without X access right now so I will wait to be back home to test that.

I must assume I don't know a lot about the kernel build and Makefiles
but here is what I think should be modified/done to have imon build as a
module:
- build imon_static.o before the linking step. Should be added in a
  Makefile somewhere but I don't know where and how
- add imon-static.o in the list of object files needed for linking (in
  the top Makefile)
- remove the build of imon_static.o from the modules building step as it
  is already built during make bzImage

I should probably be able to find how to do that by comparing the build
between the module/non module version of imon.
We'll see what I'll be able to do this weekend (my girlfriend is
visiting me from Norway - I live in Belgium - and I guess I'll not be
able to spend all my time on my computer ;) )

Anyway, thanks for your help,
Jerome

-- 
+-------------------------------------------------------------------+
| Jerome De Greef | jdegreef@xxxxxxxxxxx |   jdegreef@xxxxxxxxxx    |
+-----------------+    jdegr@xxxxxxxx    |  jdegreef@xxxxxxxxxxxxx  |
                  +-------------------------------------------------+

--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>