* FreeSWITCH build, timerfd macros
@ 2012-12-13 11:23 ojab
2012-12-13 17:28 ` John Spencer
0 siblings, 1 reply; 5+ messages in thread
From: ojab @ 2012-12-13 11:23 UTC (permalink / raw)
To: musl
Hi list,
glibc's timerfd.h has some defines, which doesn't exist in musl.
One of them — TFD_TIMER_ABSTIME, which is basically
#define TFD_TIMER_ABSTIME (1 << 0)
is used by FreeSWITCH, so right now FS build fails with
> src/switch_time.c:827:29: error: 'TFD_TIMER_ABSTIME' undeclared (first use in this function)
Can this macro be added to musl?
//wbr ojab
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: FreeSWITCH build, timerfd macros
2012-12-13 11:23 FreeSWITCH build, timerfd macros ojab
@ 2012-12-13 17:28 ` John Spencer
2012-12-13 18:59 ` Rich Felker
0 siblings, 1 reply; 5+ messages in thread
From: John Spencer @ 2012-12-13 17:28 UTC (permalink / raw)
To: musl
On 12/13/2012 12:23 PM, ojab wrote:
> Hi list,
>
> glibc's timerfd.h has some defines, which doesn't exist in musl.
>
> One of them — TFD_TIMER_ABSTIME, which is basically
> #define TFD_TIMER_ABSTIME (1 << 0)
>
> is used by FreeSWITCH, so right now FS build fails with
>> src/switch_time.c:827:29: error: 'TFD_TIMER_ABSTIME' undeclared
>> (first use in this function)
to make it work you can simply add -DTFD_TIMER_ABSTIME=1 to your CFLAGS.
for example:
CFLAGS="-DTFD_TIMER_ABSTIME=1" ./configure --blah --blah
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: FreeSWITCH build, timerfd macros
2012-12-13 17:28 ` John Spencer
@ 2012-12-13 18:59 ` Rich Felker
2012-12-13 19:07 ` ojab
0 siblings, 1 reply; 5+ messages in thread
From: Rich Felker @ 2012-12-13 18:59 UTC (permalink / raw)
To: musl
On Thu, Dec 13, 2012 at 06:28:18PM +0100, John Spencer wrote:
> On 12/13/2012 12:23 PM, ojab wrote:
> >Hi list,
> >
> >glibc's timerfd.h has some defines, which doesn't exist in musl.
> >
> >One of them — TFD_TIMER_ABSTIME, which is basically
> >#define TFD_TIMER_ABSTIME (1 << 0)
> >
> >is used by FreeSWITCH, so right now FS build fails with
> >>src/switch_time.c:827:29: error: 'TFD_TIMER_ABSTIME' undeclared
> >>(first use in this function)
>
> to make it work you can simply add -DTFD_TIMER_ABSTIME=1 to your CFLAGS.
> for example:
> CFLAGS="-DTFD_TIMER_ABSTIME=1" ./configure --blah --blah
Yes, but this macro is obviously supposed to be defined in timerfd.h.
Are there any other macros we should add there at the same time?
Rich
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: FreeSWITCH build, timerfd macros
2012-12-13 18:59 ` Rich Felker
@ 2012-12-13 19:07 ` ojab
2012-12-13 19:14 ` Rich Felker
0 siblings, 1 reply; 5+ messages in thread
From: ojab @ 2012-12-13 19:07 UTC (permalink / raw)
To: musl
On 13.12.2012 22:59, Rich Felker wrote:
> On Thu, Dec 13, 2012 at 06:28:18PM +0100, John Spencer wrote:
>> On 12/13/2012 12:23 PM, ojab wrote:
>>> Hi list,
>>>
>>> glibc's timerfd.h has some defines, which doesn't exist in musl.
>>>
>>> One of them — TFD_TIMER_ABSTIME, which is basically
>>> #define TFD_TIMER_ABSTIME (1 << 0)
>>>
>>> is used by FreeSWITCH, so right now FS build fails with
>>>> src/switch_time.c:827:29: error: 'TFD_TIMER_ABSTIME' undeclared
>>>> (first use in this function)
>>
>> to make it work you can simply add -DTFD_TIMER_ABSTIME=1 to your CFLAGS.
>> for example:
>> CFLAGS="-DTFD_TIMER_ABSTIME=1" ./configure --blah --blah
>
> Yes, but this macro is obviously supposed to be defined in timerfd.h.
> Are there any other macros we should add there at the same time?
>
> Rich
>
There is also
/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
enum
{
TFD_CLOEXEC = 02000000,
#define TFD_CLOEXEC TFD_CLOEXEC
TFD_NONBLOCK = 00004000
#define TFD_NONBLOCK TFD_NONBLOCK
};
in glibc sources.
//wbr ojab
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: FreeSWITCH build, timerfd macros
2012-12-13 19:07 ` ojab
@ 2012-12-13 19:14 ` Rich Felker
0 siblings, 0 replies; 5+ messages in thread
From: Rich Felker @ 2012-12-13 19:14 UTC (permalink / raw)
To: musl
On Thu, Dec 13, 2012 at 11:07:42PM +0400, ojab wrote:
> There is also
> /* Bits to be set in the FLAGS parameter of `timerfd_create'. */
> enum
> {
> TFD_CLOEXEC = 02000000,
> #define TFD_CLOEXEC TFD_CLOEXEC
> TFD_NONBLOCK = 00004000
> #define TFD_NONBLOCK TFD_NONBLOCK
> };
>
> in glibc sources.
OK, I will add these, presuming the values vary by arch to match the
corresponding O_* constants from fcntl.h. If that's incorrect, please
let me know.
Rich
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-12-13 19:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-13 11:23 FreeSWITCH build, timerfd macros ojab
2012-12-13 17:28 ` John Spencer
2012-12-13 18:59 ` Rich Felker
2012-12-13 19:07 ` ojab
2012-12-13 19:14 ` Rich Felker
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).