Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8A2FCEA6 for ; Wed, 16 May 2012 10:23:22 +0000 (UTC) Received: (qmail 7020 invoked by uid 500); 16 May 2012 10:23:22 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 6574 invoked by uid 500); 16 May 2012 10:23:18 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 6014 invoked by uid 99); 16 May 2012 10:23:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 10:23:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.82.170] (HELO mail-we0-f170.google.com) (74.125.82.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 10:23:08 +0000 Received: by werm13 with SMTP id m13so382073wer.29 for ; Wed, 16 May 2012 03:22:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=T5XKvGxTXPdpScrxMNVKBqVL+Pa3tDqh2RHGDkj4Bxs=; b=Ftw4NAiy4zqlWRrnxPthq7Leq1/T0bqhYrFRdl1WTlt0Focc+TiNr81rVzdjOEItLk 9s0m/V+WdbgEBvOBVAZh7oJszr4ZcmjJ9beye3UkF/iZYEx1Cbx1mEECM9Wwg46XkyaM TNdURj9fc2YxhrmIWSsY9NtkI5LoqlQpYjrydQocsK/EYXlbs/N0DzjGDEMphYiA7JoB ocZjazOrelCFdC1TNvoZnK2Y6+IpuAG3WNQYouRmniip62Ly3Mi6BvbEIcF+MhqP2sla j/j2P7Tz1lO1gufVjqApv83Yh0i7cU6qhe4Gku3pc6tUepvl6lYsR+oeQVviN9uKsfD5 xrmQ== Received: by 10.216.200.22 with SMTP id y22mr1619124wen.118.1337163768051; Wed, 16 May 2012 03:22:48 -0700 (PDT) Received: from [192.168.1.26] (132.Red-79-148-248.staticIP.rima-tde.net. [79.148.248.132]) by mx.google.com with ESMTPS id eb8sm12763353wib.11.2012.05.16.03.22.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 May 2012 03:22:47 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: ESI Plugin From: =?iso-8859-1?Q?Jorge_Rom=E1n_Novalbos?= In-Reply-To: <50CA8092-C80E-457F-B19A-C410856F57DB@linux-it.es> Date: Wed, 16 May 2012 12:22:45 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <3A6F78D0-CBC8-4461-A94E-B033FA054475@linux-it.es> References: <50CA8092-C80E-457F-B19A-C410856F57DB@linux-it.es> To: users@trafficserver.apache.org X-Mailer: Apple Mail (2.1257) X-Gm-Message-State: ALoCoQnUdHKU4r3pzgFE7PCeU6bMkHx/AmsRwTVtmIar5hwFPbiF/hFHrB+5+3M+g9dhwd6LpdJ0 I am focusing with compile the pluging using the make command and i have = achieved some advances.=20 I have installed some packages (libboost1.42-dev and gcc-4.4-locales) = and the error now is: root@ts1:~/ATS-plugins/trafficserver-plugins/esi# make tsxs -v -I lib -I fetcher/ -C plugin.cc serverIntercept.cc lib/*.cc = fetcher/*.cc -o esi.so compiling plugin.cc -> plugin.lo g++ -I/opt/trafficserver-3.0.4/include -Ilib -Ifetcher/ -g -pipe -Wall = -Werror -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing = -Wno-invalid-offsetof -fpic -c plugin.cc -o plugin.lo En el fichero inclu=EDdo de /usr/include/c++/4.4/ext/hash_map:60, de lib/StringHash.h:29, de lib/EsiProcessor.h:31, de plugin.cc:34: /usr/include/c++/4.4/backward/backward_warning.h:28:2: error: #warning = This file includes at least one deprecated or antiquated header which = may be removed without further notice at a future date. Please use a = non-deprecated interface with equivalent functionality instead. For a = listing of replacement headers and interfaces, consult the file = backward_warning.h. To disable this warning use -Wno-deprecated. plugin.cc: In function =91void cacheNodeList(ContData*)=92: plugin.cc:453: error: conversi=F3n inv=E1lida de =91const sockaddr*=92 a = =91unsigned int=92 plugin.cc:453: error: conversi=F3n inv=E1lida de =91tsapi_cont*=92 a = =91int=92 plugin.cc:453: error: no se puede convertir =91TSFetchWakeUpOptions=92 a = =91tsapi_cont*=92 para el argumento =915=92 para =91void = TSFetchUrl(const char*, int, unsigned int, int, tsapi_cont*, = TSFetchWakeUpOptions, TSFetchEvent)=92 Compile failed: g++ -I/opt/trafficserver-3.0.4/include -Ilib -Ifetcher/ = -g -pipe -Wall -Werror -O3 -feliminate-unused-debug-symbols = -fno-strict-aliasing -Wno-invalid-offsetof -fpic -c plugin.cc -o = plugin.lo make: *** [all] Error 1 I'm debuging the make command with strace but I'm not able to fix the = problem. Some advices? On 16/05/2012, at 10:51, Jorge Rom=E1n Novalbos wrote: > Hi all,=20 >=20 > I'm compiling the ESI plugin in my trafficserver-3.0.4. I downloaded = the plugins from repository and i have followed the next steps: >=20 > 1. cd trafficserver-plugins/esi > 2. /opt/trafficserver/bin/tsxs -o esi.so -c serverIntercept.cc > 3 /opt/trafficserver/bin/tsxs -o esi.so -i > 4 edit /opt/trafficserver/etc/trafficserver/plugin.config an add = esi.so > 5. Restart trafficserver daemon. >=20 >=20 > The traffic_server process never start because can't load the esi = plugin. The traffic.out show these lines: >=20 > [May 16 10:31:49.263] Server {47992987118880} ERROR: unable to find = TSPluginInit function = '/opt/trafficserver-3.0.4/libexec/trafficserver/esi.so': = /opt/trafficserver-3.0.4/libexec/trafficserver/esi.so: undefined symbol: = TSPluginInit > [May 16 10:31:50.361] Manager {140531591419680} ERROR: = [LocalManager::pollMgmtProcessServer] Server Process terminated due to = Sig 6: Aborted > [May 16 10:31:50.361] Manager {140531591419680} ERROR: (last system = error 2: No such file or directory) > [May 16 10:31:50.361] Manager {140531591419680} ERROR: = [Alarms::signalAlarm] Server Process was reset > [May 16 10:31:50.361] Manager {140531591419680} ERROR: (last system = error 2: No such file or director y) >=20 > Obviously something is wrong in esi pluging but I don't know if i am = doing some step wrong. >=20 > I have tried to use the Makefile file in esi source but never compile. = This is the error: >=20 > root@ts1:~/ATS-plugins/trafficserver-plugins/esi# make > tsxs -v -I lib -I fetcher/ -C plugin.cc serverIntercept.cc lib/*.cc = fetcher/*.cc -o esi.so > compiling plugin.cc -> plugin.lo > g++ -I/opt/trafficserver-3.0.4/include -Ilib -Ifetcher/ -g -pipe -Wall = -Werror -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing = -Wno-invalid-offsetof -fpic -c plugin.cc -o plugin.lo > In file included from /usr/include/c++/4.4/ext/hash_map:60, > from lib/StringHash.h:29, > from lib/EsiProcessor.h:31, > from plugin.cc:34: > /usr/include/c++/4.4/backward/backward_warning.h:28:2: error: #warning = This file includes at least one deprecated or antiquated header which = may be removed without further notice at a future date. Please use a = non-deprecated interface with equivalent functionality instead. For a = listing of replacement headers and interfaces, consult the file = backward_warning.h. To disable this warning use -Wno-deprecated. > In file included from lib/EsiProcessor.h:35, > from plugin.cc:34: > lib/Variables.h:29:33: error: boost/noncopyable.hpp: No existe el = fichero o el directorio > In file included from lib/EsiProcessor.h:35, > from plugin.cc:34: > lib/Variables.h:38: error: =91boost=92 has not been declared > lib/Variables.h:38: error: expected =91{=92 before =91noncopyable=92 > lib/Variables.h:38: error: invalid type in declaration before =91{=92 = token > cc1plus: warnings being treated as errors > lib/Variables.h:38: error: extended initializer lists only available = with -std=3Dc++0x or -std=3Dgnu++0x > lib/Variables.h:40: error: expected primary-expression before =91public=92= > lib/Variables.h:40: error: expected =91}=92 before =91public=92 > lib/Variables.h:40: error: expected =91,=92 or =91;=92 before =91public=92= > lib/Variables.h: In function =91void EsiLib::populate(const char*, = int)=92: > lib/Variables.h:60: error: =91_query_string_parsed=92 was not declared = in this scope > lib/Variables.h:61: error: =91_parseQueryString=92 was not declared in = this scope > lib/Variables.h:63: error: =91_query_string=92 was not declared in = this scope > lib/Variables.h: At global scope: > lib/Variables.h:70: error: non-member function =91const std::string& = EsiLib::getValue(const std::string&)=92 cannot have cv-qualifier > lib/Variables.h:73: error: non-member function =91const std::string& = EsiLib::getValue(const char*, int)=92 cannot have cv-qualifier > lib/Variables.h: In function =91const std::string& = EsiLib::getValue(const char*, int)=92: > lib/Variables.h:75: error: =91EMPTY_STRING=92 was not declared in this = scope > lib/Variables.h: At global scope: > lib/Variables.h:88: error: declaration of =91~EsiLib::Variables=92 as = non-member > lib/Variables.h:90: error: expected unqualified-id before =91private=92 > lib/Variables.h:99: error: storage size of =91EsiLib::SIMPLE_HEADERS=92 = isn't known > lib/Variables.h:102: error: storage size of =91EsiLib::SPECIAL_HEADERS=92= isn't known > lib/Variables.h:105: error: storage size of = =91EsiLib::NORM_SIMPLE_HEADERS=92 isn't known > lib/Variables.h:106: error: storage size of = =91EsiLib::NORM_SPECIAL_HEADERS=92 isn't known > lib/Variables.h:114: error: non-member function =91std::string& = EsiLib::_toUpperCase(std::string&)=92 cannot have cv-qualifier > lib/Variables.h:115: error: non-member function =91int = EsiLib::_searchHeaders(const std::string*, const char*, int)=92 cannot = have cv-qualifier > lib/Variables.h:117: error: non-member function =91bool = EsiLib::_parseDictVariable(const std::string&, const char*&, int&, const = char*&, int&)=92 cannot have cv-qualifier > lib/Variables.h:150: error: non-member function =91const std::string& = EsiLib::_getSubCookieValue(const std::string&, size_t)=92 cannot have = cv-qualifier > lib/Variables.h:154: error: expected declaration before =91}=92 token > lib/Variables.h:99: error: =91EsiLib::SIMPLE_HEADERS=92 defined but = not used > lib/Variables.h:102: error: =91EsiLib::SPECIAL_HEADERS=92 defined but = not used > lib/Variables.h:105: error: =91EsiLib::NORM_SIMPLE_HEADERS=92 defined = but not used > lib/Variables.h:106: error: =91EsiLib::NORM_SPECIAL_HEADERS=92 defined = but not used > Compile failed: g++ -I/opt/trafficserver-3.0.4/include -Ilib = -Ifetcher/ -g -pipe -Wall -Werror -O3 -feliminate-unused-debug-symbols = -fno-strict-aliasing -Wno-invalid-offsetof -fpic -c plugin.cc -o = plugin.lo > make: *** [all] Error 1 >=20 >=20 >=20 > could anybody help me? >=20 >=20 >=20 > Thanks to all developer for this amaizing software.