Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How to enable sighold and sigrelse in uClibc ?
@ 2012-09-27 15:52 Stefan Fröberg
  2012-09-27 16:01 ` Samuel Martin
  2012-09-27 16:30 ` Stefan Fröberg
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Fröberg @ 2012-09-27 15:52 UTC (permalink / raw)
  To: buildroot

Hello everyone

I need to enable sighold() and sigrelse() functions in uClibc (version
0.9.33 using NPTL)
and I have enabled the corresponding UCLIBC_SUSV4_LEGACY (Enable SuSv4
Legacy or obsolescent functions)
option in .config.

However, when trying to use those functions in application they are
undeclared and
indeed, when checking from uClibc source directory libc/signal I see
that they are not even compiled
(no sighold.o and sigrelse.o).

So what else is needed to make sighold.o and sigrelse.o ?

Best regards
Stefan

P.S:  
Is there __fxstat64() function somewhere in uClibc ?

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

* [Buildroot] How to enable sighold and sigrelse in uClibc ?
  2012-09-27 15:52 [Buildroot] How to enable sighold and sigrelse in uClibc ? Stefan Fröberg
@ 2012-09-27 16:01 ` Samuel Martin
  2012-09-27 16:09   ` Stefan Fröberg
  2012-09-27 16:30 ` Stefan Fröberg
  1 sibling, 1 reply; 4+ messages in thread
From: Samuel Martin @ 2012-09-27 16:01 UTC (permalink / raw)
  To: buildroot

Hi Stefan,

2012/9/27 Stefan Fr?berg <stefan.froberg@petroprogram.com>:
> Hello everyone
>
> I need to enable sighold() and sigrelse() functions in uClibc (version
> 0.9.33 using NPTL)
> and I have enabled the corresponding UCLIBC_SUSV4_LEGACY (Enable SuSv4
> Legacy or obsolescent functions)
> option in .config.
>
> However, when trying to use those functions in application they are
> undeclared and
> indeed, when checking from uClibc source directory libc/signal I see
> that they are not even compiled
> (no sighold.o and sigrelse.o).
>
> So what else is needed to make sighold.o and sigrelse.o ?
>
> Best regards
> Stefan
>
> P.S:
> Is there __fxstat64() function somewhere in uClibc ?

Whenever one changes the uclibc configuration, the whole toolchain
should be rebuilt.

So, after running 'make uclibc-menuconfig', to rebuild everything, you
should run: 'make clean all'.


Regards,

-- 
Sam

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

* [Buildroot] How to enable sighold and sigrelse in uClibc ?
  2012-09-27 16:01 ` Samuel Martin
@ 2012-09-27 16:09   ` Stefan Fröberg
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Fröberg @ 2012-09-27 16:09 UTC (permalink / raw)
  To: buildroot

Hi Sam

27.9.2012 19:01, Samuel Martin kirjoitti:
> Hi Stefan,
>
> 2012/9/27 Stefan Fr?berg <stefan.froberg@petroprogram.com>:
>> Hello everyone
>>
>> I need to enable sighold() and sigrelse() functions in uClibc (version
>> 0.9.33 using NPTL)
>> and I have enabled the corresponding UCLIBC_SUSV4_LEGACY (Enable SuSv4
>> Legacy or obsolescent functions)
>> option in .config.
>>
>> However, when trying to use those functions in application they are
>> undeclared and
>> indeed, when checking from uClibc source directory libc/signal I see
>> that they are not even compiled
>> (no sighold.o and sigrelse.o).
>>
>> So what else is needed to make sighold.o and sigrelse.o ?
>>
>> Best regards
>> Stefan
>>
>> P.S:
>> Is there __fxstat64() function somewhere in uClibc ?
> Whenever one changes the uclibc configuration, the whole toolchain
> should be rebuilt.
>
> So, after running 'make uclibc-menuconfig', to rebuild everything, you
> should run: 'make clean all'.

Sure, I have done that several times.
But still those two functions are not compiled in.

There *must* be some configuration option that I have missed ....
(scratching head)


>
> Regards,
>

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

* [Buildroot] How to enable sighold and sigrelse in uClibc ?
  2012-09-27 15:52 [Buildroot] How to enable sighold and sigrelse in uClibc ? Stefan Fröberg
  2012-09-27 16:01 ` Samuel Martin
@ 2012-09-27 16:30 ` Stefan Fröberg
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Fröberg @ 2012-09-27 16:30 UTC (permalink / raw)
  To: buildroot

Ok, I finally found it.

Also "BSD obsolete signal functions" (UCLIBC_HAS_OBSOLETE_BSD_SIGNAL) under
"Advanced Library Settings" must be enabled to make this work.

And looking into lipthread/nptl/sem_open.c I revealed that __fxstat64() is
basically equivalent to fstat64() if Largefile support is enabled in uClibc
and otherwise just fstat().

So I can hack that into my application or maybe directly into sys/stat.h

Case solved :)

27.9.2012 18:52, Stefan Fr?berg kirjoitti:
> Hello everyone
>
> I need to enable sighold() and sigrelse() functions in uClibc (version
> 0.9.33 using NPTL)
> and I have enabled the corresponding UCLIBC_SUSV4_LEGACY (Enable SuSv4
> Legacy or obsolescent functions)
> option in .config.
>
> However, when trying to use those functions in application they are
> undeclared and
> indeed, when checking from uClibc source directory libc/signal I see
> that they are not even compiled
> (no sighold.o and sigrelse.o).
>
> So what else is needed to make sighold.o and sigrelse.o ?
>
> Best regards
> Stefan
>
> P.S:  
> Is there __fxstat64() function somewhere in uClibc ?
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

end of thread, other threads:[~2012-09-27 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-27 15:52 [Buildroot] How to enable sighold and sigrelse in uClibc ? Stefan Fröberg
2012-09-27 16:01 ` Samuel Martin
2012-09-27 16:09   ` Stefan Fröberg
2012-09-27 16:30 ` Stefan Fröberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox