All of lore.kernel.org
 help / color / mirror / Atom feed
From: luan dinh <dinhluanbmt@domain.hid>
To: Thomas Lockhart <Thomas.Lockhart@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: [Xenomai-help] shared library in xenomai ?
Date: Mon, 4 May 2009 23:36:33 -0700 (PDT)	[thread overview]
Message-ID: <296208.73890.qm@domain.hid> (raw)

[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]

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

Luan Dinh






Did you try running ldd on your built library to make sure that the
linking is finding all of the dependencies? Or please clarify what does
not seem to be working for you...



hth



                                   - Tom



-- 

Thomas Lockhart

Supervisor, Distributed and Real-time Group

Instrument Software and Science Data Systems

Caltech/JPL



 



      

[-- Attachment #2: Type: text/html, Size: 1788 bytes --]

             reply	other threads:[~2009-05-05  6:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-05  6:36 luan dinh [this message]
2009-05-05  7:55 ` [Xenomai-help] shared library in xenomai ? Gilles Chanteperdrix
  -- 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=296208.73890.qm@domain.hid \
    --to=dinhluanbmt@domain.hid \
    --cc=Thomas.Lockhart@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.