Traffic Server
  1. Traffic Server
  2. TS-328

add the example directory into the build and fix and compilation bugs

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: None
    • Labels:
      None
    1. 001-example-bcall.patch
      41 kB
      Bryan Call
    2. 002-example-bcall.patch
      1 kB
      Bryan Call
    3. 003-example-bcall.patch
      44 kB
      Bryan Call
    4. 0001-TS328_example_gp_diff4.patch
      2 kB
      George Paul
    5. 004-example-bcall.patch
      18 kB
      Bryan Call

      Activity

      Hide
      George Paul added a comment -

      Ok the '004-example-bcall.patch' patch worked after renaming the directory 'proxy/api/include' to 'proxy/api/ts'.

      Show
      George Paul added a comment - Ok the '004-example-bcall.patch' patch worked after renaming the directory 'proxy/api/include' to 'proxy/api/ts'.
      Hide
      Bryan Call added a comment -

      Patch to remove the creation of the symlink and renamed the directory proxy/api/include to proxy/api/ts

      Show
      Bryan Call added a comment - Patch to remove the creation of the symlink and renamed the directory proxy/api/include to proxy/api/ts
      Hide
      Bryan Call added a comment -

      Problem with recursive directories and symlinking to the parent directory...

      Show
      Bryan Call added a comment - Problem with recursive directories and symlinking to the parent directory...
      Hide
      George Paul added a comment -

      This patch '0001-TS328_example_gp_diff4.patch' fixes a few more compilations errors after applying '003-example-bcall.patch' first.
      -George

      Show
      George Paul added a comment - This patch '0001-TS328_example_gp_diff4.patch' fixes a few more compilations errors after applying '003-example-bcall.patch' first. -George
      Hide
      Bryan Call added a comment -

      Complete patch that uses libtool to make the modules/plugins. Fixes problems with building in another directory.

      Show
      Bryan Call added a comment - Complete patch that uses libtool to make the modules/plugins. Fixes problems with building in another directory.
      Hide
      George Paul added a comment -

      I ran into problems trying to do build in a separate build directory which I do by default i.e. not in the same directory as source is located. It looks like the include directories and source locations need to be prefixed with $(top_srcdir) in the Makefile.am(s).

      i.e.
      mkdir build; cd build;
      ../configure
      make

      e.g. traffic/example/Makefile.am
      ...
      API_INC=$(top_srcdir)/proxy/api/include
      ....
      ln -sfn . $(top_srcdir)/proxy/api/include/ts

      e.g. traffic/example/add-header/Makefile.am
      ...
      $(CC) $(CFLAGS) -I$(API_INC) -o add-header.o -c $(top_srcdir)/example/add-header/add-header.c
      ...

      Show
      George Paul added a comment - I ran into problems trying to do build in a separate build directory which I do by default i.e. not in the same directory as source is located. It looks like the include directories and source locations need to be prefixed with $(top_srcdir) in the Makefile.am(s). i.e. mkdir build; cd build; ../configure make e.g. traffic/example/Makefile.am ... API_INC=$(top_srcdir)/proxy/api/include .... ln -sfn . $(top_srcdir)/proxy/api/include/ts e.g. traffic/example/add-header/Makefile.am ... $(CC) $(CFLAGS) -I$(API_INC) -o add-header.o -c $(top_srcdir)/example/add-header/add-header.c ...
      Hide
      Bryan Call added a comment -

      Additional patch for Ubuntu 10.04 support.

      Show
      Bryan Call added a comment - Additional patch for Ubuntu 10.04 support.
      Hide
      Bryan Call added a comment -

      Added the example directory in the build, fixes a few compilation problems with newer compilers, and Makefile.am cleanup.

      Tested on Fedora 12 x86_64

      Show
      Bryan Call added a comment - Added the example directory in the build, fixes a few compilation problems with newer compilers, and Makefile.am cleanup. Tested on Fedora 12 x86_64

        People

        • Assignee:
          Bryan Call
          Reporter:
          Bryan Call
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development