Just for information : in my new xenomai library I wraped shm_open (->__wrap_shm_open) shm_inlink (->__wrap_unlink) and so on (all symbols I´ve got a "unresolved" for). Unfortunatelly I did not get a "unresolved" for ftruncate and mmap, so I didn´t wraped them. Wrapping these symbols solved my problem (library is linkable without wrapers defined and the application linked with my new library works fine). Thank you Gilles for your support ! Roderik
> -----Ursprüngliche Nachricht----- > Von: Gilles Chanteperdrix [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 16. Oktober 2008 14:42 > An: Wildenburg, Roderik RAEK3 MRA > Cc: [email protected] > Betreff: Re: [Xenomai-help] how to build a Xenomai posix library ? > > [EMAIL PROTECTED] wrote: > >>>> [EMAIL PROTECTED] wrote: > >>> *shmfd = shm_open(LOGSHMNAME, oflags, 0); > >> a shm name should contain one slash at the beginning and no > >> other slash, > >> for best portability. > > > > As I expected, reducing the number of slashes to one does > not change the behavior. > > I never said it would. > > > > >> If you want to create a shared memory, you should pass the > >> O_CREAT flag. > > > > As mentioned above, an other process creates the shared memory. > > Is it also linked with xenomai posix skin? > > > What I still don´t understand is, what influence the > wrapper defines have on linking. > > With wrappers : aplication works fine. Without wrappers : > application does not work !? > > I would say that with wrappers, you are in fact using the > vanilla linux > shared memory, by passing __wrap_shm_open, you really use > xenomai posix > skin services. > > If that is the case, when using the wrapped version, you > should see the > shared memory appear under /dev/shm. > > -- > Gilles. > Achtung: Neue E-Mail-Adresse! Attention: New e-mail-address! [EMAIL PROTECTED] -------------------------------------------------------- manroland AG Vorsitzender des Aufsichtsrates: Hanno C. Fiedler Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933 _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
