You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by mingzym <gi...@git.apache.org> on 2017/03/03 09:26:07 UTC

[GitHub] trafficserver issue #1529: cppapi broken building on FreeBSD 11

GitHub user mingzym opened an issue:

    https://github.com/apache/trafficserver/issues/1529

    cppapi broken building on FreeBSD 11

    ```
    gmake[3]: Entering directory '/usr/home/zym/traffic/lib/cppapi'
      CXX      AsyncHttpFetch.lo
      CXX      GlobalPlugin.lo
      CXX      InterceptPlugin.lo
      CXX      Request.lo
      CXX      Stat.lo
      CXX      RemapPlugin.lo
      CXX      Response.lo
      CXX      Transaction.lo
    In file included from GlobalPlugin.cc:27:
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:71:19: error: no member named 'setEvent' in 'atscppapi::Transaction'
          transaction.setEvent(event);
          ~~~~~~~~~~~ ^
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:77:19: error: no member named 'resetHandles' in 'atscppapi::Transaction'
          transaction.resetHandles();
          ~~~~~~~~~~~ ^
    2 errors generated.
    gmake[3]: *** [Makefile:807: GlobalPlugin.lo] Error 1
    gmake[3]: *** Waiting for unfinished jobs....
    In file included from InterceptPlugin.cc:28:
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:71:19: error: no member named 'setEvent' in 'atscppapi::Transaction'
          transaction.setEvent(event);
          ~~~~~~~~~~~ ^
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:77:19: error: no member named 'resetHandles' in 'atscppapi::Transaction'
          transaction.resetHandles();
          ~~~~~~~~~~~ ^
    In file included from AsyncHttpFetch.cc:29:
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:71:19: error: no member named 'setEvent' in 'atscppapi::Transaction'
          transaction.setEvent(event);
          ~~~~~~~~~~~ ^
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:77:19: error: no member named 'resetHandles' in 'atscppapi::Transaction'
          transaction.resetHandles();
          ~~~~~~~~~~~ ^
    2 errors generated.
    In file included from Request.cc:25:
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:71:19: error: no member named 'setEvent' in 'atscppapi::Transaction'
          transaction.setEvent(event);
          ~~~~~~~~~~~ ^
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:77:19: error: no member named 'resetHandles' in 'atscppapi::Transaction'
          transaction.resetHandles();
          ~~~~~~~~~~~ ^
    InterceptPlugin.cc:257:7: error: use of undeclared identifier 'isWebsocket'
      if (isWebsocket()) {
          ^
    gmake[3]: *** [Makefile:807: AsyncHttpFetch.lo] Error 1
    Request.cc:181:10: error: out-of-line definition of 'setHost' does not match any declaration in 'atscppapi::Request'
    Request::setHost(std::string const &host)
             ^~~~~~~
    3 errors generated.
    gmake[3]: *** [Makefile:807: Request.lo] Error 1
    3 errors generated.
    gmake[3]: *** [Makefile:807: InterceptPlugin.lo] Error 1
    In file included from RemapPlugin.cc:24:
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:71:19: error: no member named 'setEvent' in 'atscppapi::Transaction'
          transaction.setEvent(event);
          ~~~~~~~~~~~ ^
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:77:19: error: no member named 'resetHandles' in 'atscppapi::Transaction'
          transaction.resetHandles();
          ~~~~~~~~~~~ ^
    2 errors generated.
    gmake[3]: *** [Makefile:807: RemapPlugin.lo] Error 1
    In file included from Response.cc:23:
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:71:19: error: no member named 'setEvent' in 'atscppapi::Transaction'
          transaction.setEvent(event);
          ~~~~~~~~~~~ ^
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:77:19: error: no member named 'resetHandles' in 'atscppapi::Transaction'
          transaction.resetHandles();
          ~~~~~~~~~~~ ^
    2 errors generated.
    gmake[3]: *** [Makefile:807: Response.lo] Error 1
    In file included from Transaction.cc:32:
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:71:19: error: no member named 'setEvent' in 'atscppapi::Transaction'
          transaction.setEvent(event);
          ~~~~~~~~~~~ ^
    /home/zym/traffic/lib/cppapi/include/utils_internal.h:77:19: error: no member named 'resetHandles' in 'atscppapi::Transaction'
          transaction.resetHandles();
          ~~~~~~~~~~~ ^
    Transaction.cc:106:14: error: out-of-line definition of 'setEvent' does not match any declaration in 'atscppapi::Transaction'
    Transaction::setEvent(TSEvent event)
                 ^~~~~~~~
    Transaction.cc:511:14: error: out-of-line definition of 'resetHandles' does not match any declaration in 'atscppapi::Transaction'
    Transaction::resetHandles()
                 ^~~~~~~~~~~~
    4 errors generated.
    gmake[3]: *** [Makefile:807: Transaction.lo] Error 1
    gmake[3]: Leaving directory '/usr/home/zym/traffic/lib/cppapi'
    gmake[2]: *** [Makefile:597: all-recursive] Error 1
    gmake[2]: Leaving directory '/usr/home/zym/traffic/lib'
    gmake[1]: *** [Makefile:536: all] Error 2
    gmake[1]: Leaving directory '/usr/home/zym/traffic/lib'
    gmake: *** [Makefile:837: all-recursive] Error 1
    [zym@FreeBSD ~/traffic]$
    ```

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #1529: cppapi broken building on FreeBSD 11

Posted by mingzym <gi...@git.apache.org>.
Github user mingzym commented on the issue:

    https://github.com/apache/trafficserver/issues/1529
  
    hmm, it turns out to be conflict with the system trafficserver lib installed in /usr/local/, which is v6.2.0. I have to remove it.
    
    why it build with the /usr/local preferred?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #1529: cppapi broken building on FreeBSD 11

Posted by SolidWallOfCode <gi...@git.apache.org>.
Github user SolidWallOfCode commented on the issue:

    https://github.com/apache/trafficserver/issues/1529
  
    Are you sure you're using the right codebase? This builds on the CI FreeBSD and I can see the declaration of `Transaction::setEvent` [here:https://github.com/apache/trafficserver/blob/master/lib/cppapi/include/atscppapi/Transaction.h#L90]. There was a library name change for 7.X, note the source is now in `lib/cppapi` not `lib/atscppapi/src`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---