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

error when compiling plugin written in C

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.9
    • 3.0.0
    • TS API
    • None

    Description

      error when compiling any plugins(written in C) with tsxs/gcc: (tested on ubuntu 10.04 32bit / mac os 10.6.7 64bit)

      $/home/ts/ts-2.1.9/bin/tsxs -c hello.c -o hello.so
      compiling hello.c -> hello.lo
      In file included from hello.c:25:
      /home/ts/ts-2.1.9/include/ts/ts.h:616: error: expected specifier-qualifier-list before 'sockaddr_storage'
      Compile failed: gcc -I/home/ts/ts-2.1.9/include -march=i586 -g -pipe -Wall -Werror -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -fpic -c hello.c -o hello.lo

      Attachments

        1. ts-809.patch
          0.3 kB
          Conan Wang

        Activity

          People

            zwoop Leif Hedstrom
            conanmind Conan Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: