[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-coders
Subject:    cross-compile a dynamic library for mib extension
From:       Yi ZHOU <zoe615 () gmail ! com>
Date:       2010-06-22 15:52:21
Message-ID: AANLkTikxavKsbmuZXsTiuAOpLtuub8rihSdg40Q7PZDq () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,
is there anyone who has ever tried crossing compile a dynamic library for
mib module?
I'am trying to extend the agent in a arm-linux system, the c file and h file
are fine, which i have already tested in linux system. To cross compile the
library, i remplace simply the cc by arm-linux-cc and net-snmp-config by
armed net-snmp-config, something like this :

arm-linux-cc `/routin/net-snmp-config --cflags` -fPIC -shared -g -O0 -o
xxx.so xxx.c `/routin/net-snmp-config --libs`

i know it seems stupid but this is the only way i can think, and finnally i
got a error msg saying "arm-linux-cc : command not found", indeed
arm-linux-cc is there.
i just don't understand am i doing something wrong?
thanks

Yi

[Attachment #5 (text/html)]

<div>Hello,</div>
<div>is there anyone who has=A0ever tried=A0crossing compile a dynamic libr=
ary for mib module?=A0</div>
<div>I&#39;am trying to=A0extend=A0the agent=A0in a arm-linux system,=A0the=
 c file and h file are fine,=A0which i have already tested=A0in=A0linux sys=
tem. To cross compile the library, i remplace simply=A0the cc by arm-linux-=
cc and net-snmp-config by armed net-snmp-config, something like this :</div=
>

<div>=A0</div>
<div>arm-linux-cc `/routin/net-snmp-config --cflags` -fPIC -shared -g -O0 -=
o xxx.so xxx.c `/routin/net-snmp-config --libs`</div>
<div>=A0</div>
<div>i know it seems=A0stupid but this is the only way i can think, and=A0f=
innally i got a error msg saying &quot;arm-linux-cc : command not found&quo=
t;, indeed arm-linux-cc=A0is there.</div>
<div>i just don&#39;t understand am i doing something wrong? </div>
<div>thanks</div>
<div>=A0</div>
<div>Yi</div>
<div>=A0</div>
<div>=A0</div>
<div>=A0</div>
<div>=A0</div>


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic