mainGnuTLS - Support: sr #107985, dtls-stress doesn't compile on...

 
 

sr #107985: dtls-stress doesn't compile on darwin

Submitter:  Jack Howarth <jhowarth>
Submitted:  Fri 16 Mar 2012 12:31:17 AM UTC
   
 
Category:  Core library Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  nmav
Open/Closed:  Closed Operating System:  Mac OS
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 02 Apr 2012 06:54:44 PM UTC, comment #2: 

This should be solved in GnuTLS 3.0.18.

Nikos Mavrogiannopoulos <nmav>
Group administrator
Wed 28 Mar 2012 08:26:07 AM UTC, comment #1: 

Hello,
 I didn't know that. We might have to disable this test on that system.

Anonymous
Fri 16 Mar 2012 12:31:17 AM UTC, original submission:  

The dtls-stress testsuite test fails to compile on darwin which lacks posix timers...

  CC     dtls-stress.o
dtls-stress.c:552:1: error: unknown type name 'timer_t'; did you mean 'time_t'?
timer_t killtimer_tid = 0;
^~~~~~~
time_t
/usr/include/sys/types.h:240:26: note: 'time_t' declared here
typedef __darwin_time_t         time_t;
                                ^
dtls-stress.c:557:20: error: variable has incomplete type 'struct itimerspec'
        struct itimerspec tout = { { 0, 0 }, { 2 * timeout_seconds, 0 } };
                          ^
dtls-stress.c:557:9: note: forward declaration of 'struct itimerspec'
        struct itimerspec tout = { { 0, 0 }, { 2 * timeout_seconds, 0 } };
               ^
dtls-stress.c:560:3: warning: implicit declaration of function 'timer_delete' is invalid in C99 [-Wimplicit-function-declaration]
                timer_delete(killtimer_tid);
                ^
dtls-stress.c:566:6: warning: implicit declaration of function 'timer_create' is invalid in C99 [-Wimplicit-function-declaration]
        if (timer_create(CLOCK_MONOTONIC, &sig, &killtimer_tid) < 0) {
            ^
dtls-stress.c:566:19: error: use of undeclared identifier 'CLOCK_MONOTONIC'
        if (timer_create(CLOCK_MONOTONIC, &sig, &killtimer_tid) < 0) {
                         ^
dtls-stress.c:571:2: warning: implicit declaration of function 'timer_settime' is invalid in C99 [-Wimplicit-function-declaration]
        timer_settime(killtimer_tid, 0, &tout, 0);
        ^
3 warnings and 3 errors generated.

Can it be recoded to not require posix timers?

Jack Howarth <jhowarth>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nmav (Posted a comment)
  • -email is unavailable- added by jhowarth (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-02 nmav StatusNone Done
        Assigned toNone nmav
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code