From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4D3E8EF9.2010606@domain.hid> Date: Tue, 25 Jan 2011 09:51:05 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4D384CC9.2040303@domain.hid> <4D386922.5080807@domain.hid> <4D387148.3030306@domain.hid> <4D3D7107.7030603@domain.hid> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] debug posix skin - pthread_cond_wait return EPERM List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenoka09@domain.hid Cc: xenomai@xenomai.org Kolja Waschk wrote: > Hi, > >> The thing I do not understand is that you should not pass any ldflags to >> cond-torture-posix, Xenomai build system should have been taken care > > I have to admit I haven't watched how cond-torture-posix was built. The one I > used then was built during the build process of blackfin-uclinux-dist. But > since it is the same error that occurs in my shortened example, and xeno-config > emits those flags, I assumed that compile flags were used for > cond-torture-posix similarly. > > The short example I refer to is the one described in my posting to the > blackfin toolchain-help Forum: Given the example code "a.c" > > int main() > { > return 0; > } > > Compile it with: > > bfin-linux-uclibc-gcc -L/opt/uClinux/blackfin-linux-dist/staging/usr/lib -lxenomai -lpthread_rt -lpthread a.c The link order is wrong. It should be -lpthread_rt -lxenomai -lpthread. -- Gilles.