Thanks,

I cleaned up my system, and at least I could compile existing
modules.

What I then found out is, that if you take the local data (which
is allocated by hal_malloc) and you make a global variable out of
it (to avoid pointers) then the same error message as shown below
appears.

I went back to allocate data by hal_malloc and now it works.

Thanks
Frank



--- Ursprüngliche Nachricht ---
Von: jmkasun...@fastmail.fm
An: emc-developers@lists.sourceforge.net
Betreff: Re: [Emc-developers] building hal component leads to "..wrong symbol 
version"- error

> Frank Maier wrote:
> > Hello,
> >
> > I'm trying to build a hal component with
> >
> > ./bin/comp --install test.c
> >
> > If I do that, and try to load that component, emc2 will fail
> > and reports "insmod: error inserting "/home/emc2-.....": -1
> > Module has wrong symbol version".
> >
> > The same hapens if I do comp --install pid.c. Then the pid
> > will not be loaded. It worked when the complete emc was
> > compiled, then the pid was loaded without problems.
> >
> > I'm using the latest ubuntu emc2 life cd, installed on hard disk.
> >
> > Any Ideas ?
>
> I bet you have an installed version of EMC2 (perhaps 2.2.x or 2.3.x) and
> you are writing your new component in a source tree for a different
> version (perhaps the latest development version).  You cannot mix pieces
> of EMC from different versions.
>
> Multiple version of EMC2 can coexist peacefully on the same computer,
> but only one can be installed in standard system directories.  The
> others need to live in their own directory trees.
>
> The best approach is to do development using "run-in-place", where a
> given version of EMC is compiled and runs from inside a single directory
> tree.  When doing that, you must do:
>
> .. scripts/emc-environmnet
>
> from any shell that you are using.  That script sets environment
> variables that tell EMC where to get its various pieces.  If you don't
> use it, odds are at least some of the pieces are coming from your
> installed version.
>
> Regards,
>
> John Kasunich
>
>
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> _______________________________________________
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>


_____________________________________________________
powered by Dopedoo Mail http://www.dopedoo.de/



------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to