Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3548

psiginfo differs on illumos vs. Linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.3.0, 6.0.0
    • Core
    • None

    Description

      The arguments to psiginfo() are different on illumos platforms such as OmniOS. This results in a build error:

        CXXLD    CompileParseRules
      ./CompileParseRules
        CXX      ParseRules.lo
        CCLD     mkdfa
      signals.cc: In function 'void signal_format_siginfo(int, siginfo_t*, const char*)':
      signals.cc:162:21: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
         psiginfo(info, msg);
                           ^
      In file included from ink_platform.h:104:0,
                       from libts.h:45,
                       from signals.cc:29:
      /usr/include/siginfo.h:53:13: error:   initializing argument 2 of 'void psiginfo(siginfo_t*, char*)' [-fpermissive]
       extern void psiginfo(siginfo_t *, char *);
                   ^
      gmake[3]: *** [signals.lo] Error 1
      

      This happens with 5.2.1 as well as 5.3.0-rc2.

      Attachments

        Issue Links

          Activity

            People

              jamespeach James Peach
              esproul Eric Sproul
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: