From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <296208.73890.qm@domain.hid> Date: Mon, 4 May 2009 23:36:33 -0700 (PDT) From: luan dinh MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1631689489-1241505393=:73890" Subject: [Xenomai-help] shared library in xenomai ? List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Lockhart Cc: "xenomai@xenomai.org" --0-1631689489-1241505393=:73890 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable hi. this is my problem : i write a program which use raw socket and rteth0 NIC card to send data. wh= en i build=A0 as application it run well. then i build this program as shar= ed libarary named=A0 libctest.so support send() function to send data the command to build shared lib similar to : gcc -shared -Wl,-soname,libctest.so.1 -o libctest.so.1.0 *.o mv libctest.so.1.0 /opt/lib ln -sf /opt/lib/libctest.so.1.0 /opt/lib/libctest.so ln -sf /opt/lib/libctest.so.1.0 /opt/lib/libctest.so.1=20 i write a TEST program use the send() function which supported by=A0 my lib= rary. the command to build TEST program similar to : gcc prog.c -lctest -o TEST when i execute by command ./TEST the TEST program still run. the send() function seem to be right but no dat= a sent to network adapter Luan Dinh =0ADid you try running ldd on your built library to make sure that the=0Ali= nking is finding all of the dependencies? Or please clarify what does=0Anot= seem to be working for you... =0A =0Ahth =0A =0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 - Tom =0A =0A--=20 =0AThomas Lockhart =0ASupervisor, Distributed and Real-time Group =0AInstrument Software and Science Data Systems =0ACaltech/JPL =0A =0A =0A=0A=0A=0A --0-1631689489-1241505393=:73890 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
=0A=0A --0-1631689489-1241505393=:73890--
hi.
this is my problem :
i write a prog= ram which use raw socket and rteth0 NIC card to send data. when i build&nbs= p; as application it run well. then i build this program as shared libarary= named  libctest.so support send() function to send data
the comman= d to build shared lib similar to :
    gcc -shared -Wl,-soname,libc=
test.so.1 -o libctest.so.1.0   *.o
mv libctest.so.1.0 /opt/lib
= ln -sf /opt/lib/libctest.so.1.0 /opt/lib/libctest.so
ln -sf /opt/l= ib/libctest.so.1.0 /opt/lib/libctest.so.1
i write a TEST program = use the send() function which supported by  my library.
the command= to build TEST program similar to :
gcc <xenomai options> pro=
g.c -lctest -o TEST
when i execute by command ./TEST
the TEST p= rogram still run. the send() function seem to be right but no data sent to network adapter

Luan Dinh





=0ADid you try running ldd on y= our built library to make sure that the=0Alinking is finding all of the dep= endencies? Or please clarify what does=0Anot seem to be working for you...<= br>=0A
=0Ahth
=0A
=0A       &nb= sp;            =             &nb= sp;  - Tom
=0A
=0A--
=0AThomas Lockhart
=0ASupervisor, Di= stributed and Real-time Group
=0AInstrument Software and Science Data Sy= stems
=0ACaltech/JPL
=0A
=0A =0A