All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Sinisa Denic <sinisa.denic@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Fwd: Re: Xeno2.5  -  2.5.1 API mismatch?
Date: Thu, 20 May 2010 10:13:37 +0200	[thread overview]
Message-ID: <4BF4EF31.4060302@domain.hid> (raw)
In-Reply-To: <op.vczunawf38inye@domain.hid>

Sinisa Denic wrote:
> On Wed, 19 May 2010 23:00:36 +0200, Gilles Chanteperdrix  
> <gilles.chanteperdrix@xenomai.org> wrote:
> 
>> Michael Opdenacker wrote:
>>> Bien le bonjour! Un message arrivé à ton adresse Free Electrons....
>>>
>>> :-)
>>>
>>> Michael.
>>>
>>> -------- Original Message --------
>>> Subject: 	Re: Xeno2.5 - 2.5.1 API mismatch?
>>> Date: 	Wed, 19 May 2010 15:47:59 +0200
>>> From: 	Sinisa Denic <sinisa.denic@domain.hid>
>>> Organization: 	Advanced Control Systems Belgrade
>>> To: 	Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
>>>
>>>
>>>
>>> On Fri, 05 Feb 2010 17:28:53 +0100, Gilles Chanteperdrix
>>> <gilles.chanteperdrix@xenomai.org> wrote:
>>> Hi Gilles,
>>> I had problems some time ago compiling some software against xeno 2.5.2,
>>> Now same thing with X2.5.3, when I put include <sys/mman.h>, I've run  
>>> into
>>> next error messages:
>> Your makefile is probably not using xeno-config to obtain the
>> compilation flags :-)
>> Xenomai 2.5.3 introduces a new library, libxenomai, with which you need
>> to link the programs. The issue is probably unrelated to sys/mman.h In
>> case it is, please send me a test program.
>>
>> Please do not use my address at free-electrons.com, I am no longer
>> working for this company (yes, I know, it was short)...
>>
>>
> /opt/toolchains/arm926t-uclibcgnueabi/usr/bin/arm-linux-gcc      
> -I/usr/xenomai-2.5.3-eabi/include -D_GNU_SOURCE -D_REENTRANT -Wall -pipe  
> -D__XENO__ -lnative -L/usr/xenomai-2.5.3-eabi/lib -lxenomai -lpthread  
> -o./iecgoose_ld obj_iecgoose_ld/iec_main.o obj_iecgoose_ld/mms_arb.o  
> obj_iecgoose_ld/mmsop_en.o obj_iecgoose_ld/mvlop_en.o  
> obj_iecgoose_ld/mvl_acse.o obj_iecgoose_ld/event.o  
> obj_iecgoose_ld/logcfgx.o obj_iecgoose_ld/rdwrind.o  
> obj_iecgoose_ld/reject.o obj_iecgoose_ld/startup.o  
> obj_iecgoose_ld/uca_obj.o  /opt/libMMSLITE-eabi//lib/mvlu_ld.a  
> /opt/libMMSLITE-eabi//lib/mlogl_ld.a /opt/libMMSLITE-eabi//lib/mmsle_ld.a  
> /opt/libMMSLITE-eabi//lib/mmsl_ld.a /opt/libMMSLITE-eabi//lib/mem_ld.a  
> /opt/libMMSLITE-eabi//lib/slog_ld.a /opt/libMMSLITE-eabi//lib/util_ld.a  
> /opt/libMMSLITE-eabi//lib/ositp4e_ld.a  
> /opt/libMMSLITE-eabi//lib/asn1l_ld.a  -lm -lpthread -lrt -lnative -static  

link order is wrong here: the list of -l should come after the list of
.o, and if you do that, you will not need to repeat the list of -l.

Your problem is that -lnative is missing in the list of -l you repeat,
but it is better to put the result of xeno-config --xeno-ldflags after
the list of .o (if you are using built-in makefile rules, this means
puttin this in the LOADLIBES variable instead of putting it in LDFLAGS),
and remove the repetition.

-- 
					    Gilles.



  reply	other threads:[~2010-05-20  8:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4BF444C2.9090508@domain.hid>
     [not found] ` <4BF45174.7040802@domain.hid>
2010-05-20  7:48   ` [Xenomai-help] Fwd: Re: Xeno2.5 - 2.5.1 API mismatch? Sinisa Denic
2010-05-20  8:13     ` Gilles Chanteperdrix [this message]
     [not found]       ` <op.vczxulyi38inye@domain.hid>
     [not found]         ` <4BF4FB97.5000809@domain.hid>
2010-05-20  9:52           ` Sinisa Denic
2010-05-20  9:55             ` Gilles Chanteperdrix

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=4BF4EF31.4060302@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=sinisa.denic@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.