All of lore.kernel.org
 help / color / mirror / Atom feed
* Use of 'sem_open' failing
@ 2011-01-13 12:07 Otavio Salvador
  2011-01-13 13:50 ` Michael Smith
  2011-01-13 21:56 ` Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: Otavio Salvador @ 2011-01-13 12:07 UTC (permalink / raw)
  To: OpenEmbedded Devel List

Hello,

I am having trouble to use an application (freerdp) that calls sem_open method.

The application has been converted to use sem_open to fix a
portability issue with MacOS X and it works fine on my Debian but
fails on the OE built image.

Do someone knws what I am missing here?

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Use of 'sem_open' failing
  2011-01-13 12:07 Use of 'sem_open' failing Otavio Salvador
@ 2011-01-13 13:50 ` Michael Smith
  2011-01-13 21:56 ` Khem Raj
  1 sibling, 0 replies; 6+ messages in thread
From: Michael Smith @ 2011-01-13 13:50 UTC (permalink / raw)
  To: openembedded-devel

Otavio Salvador wrote:
> Hello,
> 
> I am having trouble to use an application (freerdp) that calls sem_open method.
> 
> The application has been converted to use sem_open to fix a
> portability issue with MacOS X and it works fine on my Debian but
> fails on the OE built image.

Does strace show anything useful?

For POSIX semaphores you need to have a /dev/shm directory (mode 1777).

Mike



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Use of 'sem_open' failing
  2011-01-13 12:07 Use of 'sem_open' failing Otavio Salvador
  2011-01-13 13:50 ` Michael Smith
@ 2011-01-13 21:56 ` Khem Raj
  2011-01-13 22:02   ` Otavio Salvador
  1 sibling, 1 reply; 6+ messages in thread
From: Khem Raj @ 2011-01-13 21:56 UTC (permalink / raw)
  To: openembedded-devel

On Thu, Jan 13, 2011 at 4:07 AM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> Hello,
>
> I am having trouble to use an application (freerdp) that calls sem_open method.
>
> The application has been converted to use sem_open to fix a
> portability issue with MacOS X and it works fine on my Debian but
> fails on the OE built image.
>
> Do someone knws what I am missing here?

It has been reported more than once for arm architecture. I think
there could be issue in the way we build eglibc

For test purposes can you try it using uclibc and see if you still get same
failure ?

>
> --
> Otavio Salvador                             O.S. Systems
> E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
> Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Use of 'sem_open' failing
  2011-01-13 21:56 ` Khem Raj
@ 2011-01-13 22:02   ` Otavio Salvador
  2011-01-13 22:31     ` Khem Raj
  2011-01-14 17:34     ` Otavio Salvador
  0 siblings, 2 replies; 6+ messages in thread
From: Otavio Salvador @ 2011-01-13 22:02 UTC (permalink / raw)
  To: openembedded-devel

On Thu, Jan 13, 2011 at 19:56, Khem Raj <raj.khem@gmail.com> wrote:
> It has been reported more than once for arm architecture. I think
> there could be issue in the way we build eglibc
>
> For test purposes can you try it using uclibc and see if you still get same
> failure ?

It looks like it is due OLDEST_KERNEL being undefined by some machines.

Mine (i586-generic based) didn't have it (I will push a fix for it
later tomorrow).

It seems that if OLDEST_KERNEL is older then 2.6.13 eglibc ends not
enabling sem_open.

Checking it.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Use of 'sem_open' failing
  2011-01-13 22:02   ` Otavio Salvador
@ 2011-01-13 22:31     ` Khem Raj
  2011-01-14 17:34     ` Otavio Salvador
  1 sibling, 0 replies; 6+ messages in thread
From: Khem Raj @ 2011-01-13 22:31 UTC (permalink / raw)
  To: openembedded-devel

On Thu, Jan 13, 2011 at 2:02 PM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> On Thu, Jan 13, 2011 at 19:56, Khem Raj <raj.khem@gmail.com> wrote:
>> It has been reported more than once for arm architecture. I think
>> there could be issue in the way we build eglibc
>>
>> For test purposes can you try it using uclibc and see if you still get same
>> failure ?
>
> It looks like it is due OLDEST_KERNEL being undefined by some machines.
>
> Mine (i586-generic based) didn't have it (I will push a fix for it
> later tomorrow).
>
> It seems that if OLDEST_KERNEL is older then 2.6.13 eglibc ends not
> enabling sem_open.
>
> Checking it.
>

thats plausible.

> --
> Otavio Salvador                             O.S. Systems
> E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
> Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Use of 'sem_open' failing
  2011-01-13 22:02   ` Otavio Salvador
  2011-01-13 22:31     ` Khem Raj
@ 2011-01-14 17:34     ` Otavio Salvador
  1 sibling, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2011-01-14 17:34 UTC (permalink / raw)
  To: openembedded-devel

On Thu, Jan 13, 2011 at 20:02, Otavio Salvador <otavio@ossystems.com.br> wrote:
> It seems that if OLDEST_KERNEL is older then 2.6.13 eglibc ends not
> enabling sem_open.

This didn't fix the issue.

It seems sem_open is available, as can be see:

otavio@neumann:~/hacking/ossystems/oe/tmp/work/i586-oe-linux/eglibc-2.12-r21.8+svnr12323/packages-split$
LC_ALL=C grep sem_open eglibc/lib/*
Binary file eglibc/lib/libpthread.so.0 matches

However the application still fails.

My OLDEST_KERNEL was set to 2.6.31 so more then enough for NPTL
support. Any idea of why it keep failing?

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-14 17:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 12:07 Use of 'sem_open' failing Otavio Salvador
2011-01-13 13:50 ` Michael Smith
2011-01-13 21:56 ` Khem Raj
2011-01-13 22:02   ` Otavio Salvador
2011-01-13 22:31     ` Khem Raj
2011-01-14 17:34     ` Otavio Salvador

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.