From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4F950E77.1030606@domain.hid> Date: Mon, 23 Apr 2012 10:10:31 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4F949BBF.6020008@domain.hid> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] libnative and libxenomai dependy problem List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Willy Lambert Cc: xenomai@xenomai.org On 04/23/2012 03:57 AM, Willy Lambert wrote: > 2012/4/23 Gilles Chanteperdrix : >> 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@xenomai.org >>> >>> 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@domain.hid):~# 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.