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

Build failure related to header requirements of atscppapi

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: CPP API
    • Labels:
      None

      Description

      When I built my plugin outside of trafficserver source tree, I found build failure related to header requirements of atscppapi as below logs.

      # I set /usr/local/trafficserver/ as prefix.
      In file included from /usr/local/trafficserver/include/atscppapi/Transaction.h:30:
      /usr/local/trafficserver/include/atscppapi/shared_ptr.h:28:10: fatal error: 'ink_autoconf.h' file not found
      #include "ink_autoconf.h"
               ^
      1 error generated.
      

      The shared_ptr.h requires a variable defined on ink_autoconf.h but it doesn't exist in destination directory. so I've already posted Pull-Request on GitHub to fix it. please review, and show me better solution if you have.
      https://github.com/apache/trafficserver/pull/80

        Attachments

        1. extend-tsxs.diff
          1 kB
          Masakazu Kitajo
        2. shared_ptr_h_in.patch
          5 kB
          Ryo Okubo

          Issue Links

            Activity

              People

              • Assignee:
                briang Brian Geffon
                Reporter:
                rokubo Ryo Okubo
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: