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

Create wrapper function for dlerror() to handle the return of const char* on FreeBSD < 8.1 and OpenBSD

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Cleanup
    • Labels:
      None

      Description

      #if defined(freebsd) || defined(openbsd)
            err = (char *)dlerror();
      #else
            err = dlerror();
      #endif
      

      Why is this #if dance necessary here?

      http://www.freebsd.org/cgi/man.cgi?dlerror dlerror() hasn't been const char* since FreeBSD 8.1. In OpenBSD it's still is ...broken, but then we should abstract that into a wrapper function of our own at autoconf time.

      We're not handling this case at every call of dlerror() anyways.. so....

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              i.galic Igor Galić
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: