Menu

#7 unknown type name 'siginfo_t'

open
nobody
None
5
2020-11-15
2019-01-15
Tom
No

Yes, I am still using this after all of these years. :)

Two problems:

  1. The web site claims that version 0.14 has been released, but the source for it isn't there.

  2. It no longer compiles (log attached). :(

Hope someone is still there. :) Thanks.

1 Attachments

Discussion

  • Sören Wellhöfer

    Hi,
    thank you for reporting this problem.
    It's probably because something changed with the POSIX definition.
    Try adding -D_POSIX_C_SOURCE=199309L as a temporary fix to the compiler flags.
    I will look into this issue.
    Best Regards,
    Sören

     
  • Alberto Varesio

    Alberto Varesio - 2020-10-15

    Some modifications I made to get it compile under GCC-10 with defaults

    $ LC_ALL=C TZ=UTC0 diff -Naur stroke-0.1.3 stroke-0.1.3-J
    diff -Naur stroke-0.1.3/src/aux.c stroke-0.1.3-J/src/aux.c
    --- stroke-0.1.3/src/aux.c  2011-02-24 13:36:34.000000000 +0000
    +++ stroke-0.1.3-J/src/aux.c    2020-10-15 16:42:28.405609962 +0000
    @@ -58,7 +58,7 @@
    
      * Current verbosity level function.
      * Used as reference by libgeneral.
      */
    -inline int
    +extern inline int
     verbosity_level()
     {
        return CHKF(VERBOSE);
    @@ -419,7 +419,7 @@
                    goto error;
            }
    
    
    -       if(months >> D(MON) && D(DAY) > 30) {
    +       if(months >> D(MON)  & D(DAY) > 30) {
                goto error;
            } else if(D(MON) == 2) {
                /* leap year */
    diff -Naur stroke-0.1.3/src/libgeneral/src/signals.c stroke-0.1.3-J/src/libgeneral/src/signals.c
    --- stroke-0.1.3/src/libgeneral/src/signals.c   2009-05-27 13:36:11.000000000 +0000
    +++ stroke-0.1.3-J/src/libgeneral/src/signals.c 2020-10-14 11:25:29.552432556 +0000
    @@ -26,6 +26,7 @@
     #endif
    
     #include <stdlib.h>
    +#include <signal.h>
    
     #include <libgeneral/signals.h>
    
     
  • Sören Wellhöfer

    Hello Alberto,

    thanks for the patch, I'll look into applying it to the next release version of stroke.

    Best regards,
    Sören

     

Log in to post a comment.

MongoDB Logo MongoDB