You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by "Walsh, Peter" <Pe...@disney.com> on 2011/04/08 20:02:23 UTC

release 2.0.1 make errors.

Hello,
I recently downloaded the stable release 2.0.1 however I got the following
make errors...

UnixNet.cc: In function Œvoid initialize_eventfd(EThread*)¹:
UnixNet.cc:141: error: aggregate Œepoll_event ev¹ has incomplete type and
cannot be defined
UnixNet.cc:142: error: invalid application of Œsizeof¹ to incomplete type
Œepoll_event¹ 
UnixNet.cc:144: error: ŒEPOLLIN¹ was not declared in this scope
UnixNet.cc:144: error: ŒEPOLLET¹ was not declared in this scope
UnixNet.cc:146: error: Œstruct PollDescriptor¹ has no member named
Œepoll_fd¹
UnixNet.cc:146: error: ŒEPOLL_CTL_ADD¹ was not declared in this scope
UnixNet.cc:146: error: Œepoll_ctl¹ was not declared in this scope


I also downloaded the unstable release 2.1.7 and followed the same steps
and it built successfully.

Has anyone else experienced similar issues when building 2.0.1?

I'm building on Mac Os x, 10.6.6, with gcc 4.2.1

-Pete


Re: release 2.0.1 make errors.

Posted by Leif Hedstrom <zw...@apache.org>.
On 04/08/2011 12:02 PM, Walsh, Peter wrote:
> Hello,
> I recently downloaded the stable release 2.0.1 however I got the following
> make errors...
>
> UnixNet.cc: In function Œvoid initialize_eventfd(EThread*)¹:
> UnixNet.cc:141: error: aggregate Œepoll_event ev¹ has incomplete type and
> cannot be defined
> UnixNet.cc:142: error: invalid application of Œsizeof¹ to incomplete type
> Œepoll_event¹
> UnixNet.cc:144: error: ŒEPOLLIN¹ was not declared in this scope
> UnixNet.cc:144: error: ŒEPOLLET¹ was not declared in this scope
> UnixNet.cc:146: error: Œstruct PollDescriptor¹ has no member named
> Œepoll_fd¹
> UnixNet.cc:146: error: ŒEPOLL_CTL_ADD¹ was not declared in this scope
> UnixNet.cc:146: error: Œepoll_ctl¹ was not declared in this scope
>
>
> I also downloaded the unstable release 2.1.7 and followed the same steps
> and it built successfully.
>
> Has anyone else experienced similar issues when building 2.0.1?
>
> I'm building on Mac Os x, 10.6.6, with gcc 4.2.1

Stick to v2.1.7 (or later). ;)

-- Leif


> -Pete
>


TSHttpTxnCacheLookupStatusGet error

Posted by "Walsh, Peter" <Pe...@disney.com>.
Hello,
Has anyone had success using the method TSHttpTxnCacheLookupStatusGet
(http://trafficserver.apache.org/docs/v2/sdk/HTTPTransactionFunctions.html#
INKHttpTxnCacheLookupStatusGet) from within the hook
TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK?

I'm interested in programmatically retrieving the status of the cache
lookup in a plugin and I've been attempting to use the
TSHttpTxnCacheLookupStatusGet method but it appears to always return in
error.

Here's an outline of the steps I've taken:
- Register for TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK with TSHttpTxnHookAdd
after TS_EVENT_HTTP_TXN_START.
- Look for the event TS_EVENT_HTTP_CACHE_LOOKUP_COMPLETE in my handler
- then call to TSHttpTxnCacheLookupStatusGet(txnp, &lookup_status) to
retrieve the cache lookup status.

However I can see in my squid.log file what the lookup status should be so
I know a cache lookup is happening.

Any thoughts?

Thanks,
Pete