From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: luan dinh <dinhluanbmt@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] shared library in xenomai ?
Date: Tue, 05 May 2009 09:55:38 +0200 [thread overview]
Message-ID: <49FFF0FA.9070104@domain.hid> (raw)
In-Reply-To: <296208.73890.qm@domain.hid>
luan dinh wrote:
> hi.
> this is my problem :
> i write a program which use raw socket and rteth0 NIC card to send data. when i build as application it run well. then i build this program as shared libarary named 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
> 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> 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 data sent to network adapter
Please post an excerpt of your code exposing this issue (the library
part, and the program part).
You should note that compiling libraries or programs for Xenomai usually
involves compilation flags obtained with xeno-config.
You should also note that "send()" is a glibc function, so calling a
function with the same name is a bad idea.
--
Gilles.
next prev parent reply other threads:[~2009-05-05 7:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-05 6:36 [Xenomai-help] shared library in xenomai ? luan dinh
2009-05-05 7:55 ` Gilles Chanteperdrix [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-05-06 6:09 luan dinh
2009-05-06 6:27 ` Gilles Chanteperdrix
2009-05-05 5:45 luan dinh
2009-05-05 5:54 ` Thomas Lockhart
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=49FFF0FA.9070104@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=dinhluanbmt@domain.hid \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.