2012/4/23 Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>: > On 04/23/2012 03:57 AM, Willy Lambert wrote: >> 2012/4/23 Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>: >>> On 04/23/2012 01:57 AM, Willy Lambert wrote: >>>> Hi, >>>> >>>> I just run into the same kind of problem of a one year old discussion : >>>> http://www.mail-archive.com/xenomai-help@gna.org/msg12669.html >>>> >>>> having such kind of errors : >>>> /usr/lib/libnative.so.3: undefined symbol: xeno_current_mode_key >>>> I have a xenomai 2.6.0 recompiled from sources with the --dl-open >>>> option enabled. >>>> root@beta(10.0):~# cat /proc/xenomai/version >>>> 2.6.0 >>>> >>>> >>>> I re-post something because I'm not sure it is up to date and as I >>>> have the next version I am suprised the problem still arises >>>> >>>> I have 2 question : >>>> _ did I missconfigured something in my compiller flags or linking ? >>>> _ are the solutions of last thread still up to date ? >>>> >>> >>> You need to dlopen libxenomai in order for dlopen(libnative) to succeed. >>> >>> -- >>> Gilles. >> >> In fact I never called dlopen(libnative) myself. It is done in a >> library to which I am linked. Do I have a to dlopen it in my personnal >> code ? >> > you have to manage for dlopen(libxenomai) to be called before > dlopen(libnative), and with the RTDL_GLOBAL flag so that libnative will > find the symbols defined by libxenomai. > > -- > Gilles.
Thanks for support. In fact I am not using dlopen directly (dynamic linking) but in ordering the linking I got it working (without having to set the flag which might be set underneath). I'm quite surprised thougth that is is a "soft" dependency. Is it my bad not having used --xeno-config directly ? (I use a shortcut because all the stuff is under CMake and I am not an expert with it). _______________________________________________ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help