You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Brendan Webb <we...@ohsu.edu> on 2013/10/09 01:22:34 UTC

rfc5861 plugin not compiling on ATS 4.0.1

Wondering if anyone else has tried compiling the rfc5861 plugin against ATS 4.0.1? I just upgraded our dev instance of ATS to 4.0.1 and can't seem to get the rfc5861 plugin working.


Brendan Webb
Web Engineer
Oregon Health & Science University

Re: rfc5861 plugin not compiling on ATS 4.0.1

Posted by Phil Sorber <so...@apache.org>.
On Wed, Oct 9, 2013 at 4:52 PM, Brendan Webb <we...@ohsu.edu> wrote:

>  This is the error I get trying to compile against ATS 4.0.1, which I
> upgraded from 3.0.4:
>
>  $ make -f Makefile.tsxs
> tsxs -v -o rfc5861.so rfc5861.c
>   compiling rfc5861.c -> rfc5861.lo
> cc -I/app00/trafficserver/include -g -pipe -Wall -O3
> -feliminate-unused-debug-symbols -fno-strict-aliasing -mcx16 -fpic -c
> rfc5861.c -o rfc5861.lo
> rfc5861.c:35:22: error: ink_defs.h: No such file or directory
> rfc5861.c:307: error: expected ‘;’, ‘,’ or ‘)’ before ‘ATS_UNUSED’
> rfc5861.c:438: error: expected ‘;’, ‘,’ or ‘)’ before ‘ATS_UNUSED’
> rfc5861.c: In function ‘rfc5861_plugin’:
> rfc5861.c:616: error: ‘fetch_resource’ undeclared (first use in this
> function)
> rfc5861.c:616: error: (Each undeclared identifier is reported only once
> rfc5861.c:616: error: for each function it appears in.)
> tsxs: compilation failed: cc -I/app00/trafficserver/include -g -pipe -Wall
> -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -mcx16 -fpic -c
> rfc5861.c -o rfc5861.lo
> make: *** [all] Error 1
>
>   *
> *
>  On Tue, Oct 8, 2013 at 5:22 PM, Brendan Webb <we...@ohsu.edu> wrote:
>
>>  Wondering if anyone else has tried compiling the rfc5861 plugin against
>> ATS 4.0.1? I just upgraded our dev instance of ATS to 4.0.1 and can't seem
>> to get the rfc5861 plugin working.
>>
>>
>>  Brendan Webb
>> Web Engineer
>> Oregon Health & Science University
>>
>
>  We've been able to get it to compile. What errors are you getting?
>

Ok, so your problem here is that you are trying to build out of tree. That
has changed in 4.x. If you add --enable-experimental-plugins to your
configure line it should build that plugin during the normal build process.

Now I'll let Igor and James debate building plugins out of tree...

Re: rfc5861 plugin not compiling on ATS 4.0.1

Posted by Brendan Webb <we...@ohsu.edu>.
This is the error I get trying to compile against ATS 4.0.1, which I upgraded from 3.0.4:

$ make -f Makefile.tsxs
tsxs -v -o rfc5861.so rfc5861.c
  compiling rfc5861.c -> rfc5861.lo
cc -I/app00/trafficserver/include -g -pipe -Wall -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -mcx16 -fpic -c rfc5861.c -o rfc5861.lo
rfc5861.c:35:22: error: ink_defs.h: No such file or directory
rfc5861.c:307: error: expected ‘;’, ‘,’ or ‘)’ before ‘ATS_UNUSED’
rfc5861.c:438: error: expected ‘;’, ‘,’ or ‘)’ before ‘ATS_UNUSED’
rfc5861.c: In function ‘rfc5861_plugin’:
rfc5861.c:616: error: ‘fetch_resource’ undeclared (first use in this function)
rfc5861.c:616: error: (Each undeclared identifier is reported only once
rfc5861.c:616: error: for each function it appears in.)
tsxs: compilation failed: cc -I/app00/trafficserver/include -g -pipe -Wall -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -mcx16 -fpic -c rfc5861.c -o rfc5861.lo
make: *** [all] Error 1


On Tue, Oct 8, 2013 at 5:22 PM, Brendan Webb <we...@ohsu.edu>> wrote:
Wondering if anyone else has tried compiling the rfc5861 plugin against ATS 4.0.1? I just upgraded our dev instance of ATS to 4.0.1 and can't seem to get the rfc5861 plugin working.


Brendan Webb
Web Engineer
Oregon Health & Science University

We've been able to get it to compile. What errors are you getting?

Re: rfc5861 plugin not compiling on ATS 4.0.1

Posted by Phil Sorber <so...@apache.org>.
On Tue, Oct 8, 2013 at 5:22 PM, Brendan Webb <we...@ohsu.edu> wrote:

>  Wondering if anyone else has tried compiling the rfc5861 plugin against
> ATS 4.0.1? I just upgraded our dev instance of ATS to 4.0.1 and can't seem
> to get the rfc5861 plugin working.
>
>
>  Brendan Webb
> Web Engineer
> Oregon Health & Science University
>

We've been able to get it to compile. What errors are you getting?