From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40049 invoked by alias); 8 Nov 2016 18:25:53 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 40035 invoked by uid 89); 8 Nov 2016 18:25:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Marco, commented, hello! X-HELO: mail-wm0-f53.google.com Received: from mail-wm0-f53.google.com (HELO mail-wm0-f53.google.com) (74.125.82.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Nov 2016 18:25:51 +0000 Received: by mail-wm0-f53.google.com with SMTP id p190so263526416wmp.1 for ; Tue, 08 Nov 2016 10:25:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=IqCr543yRxZWgaEDIeClv17Qpg1DxUGqV6VWX7+7Ops=; b=Ev8AcIo/CufuF5YNtF2KwmL+uSHAukzH57C7oyCEsLb0zHhnHBFGV5HPYCVXFAYpGJ 3+6c8yRdAGnwOpy+hTYXgwK1jL3yiZV5WiePgW3XJZi31NvT52cd3WIjAOX+O5KKvr3K uDZ3RTlYQ++uGef5ZqkXkkhbpaoUNiYUP0Ax7DGOLvJvMtsD2nSyTHHG1iEOTU6AP/h6 I+GXGvyD32o1XpSdGpVWP69HajKOFf97xNZS6DDVZW9MjRWYi2BIyL5S8Po0FvFraRia /v7oGo0dL/LFZAEL3auk1n8Qpm5RI8aorgAMZ7SFqurPOXZH7ZXwkukmDWzw9Q7KMR9m CIrQ== X-Gm-Message-State: ABUngvcPUY21hwHa89R+irNrmoSpycsj/Z9hLpeWSMdSy8u9/KdWx72wTknAOnrgDqqvfw== X-Received: by 10.28.220.5 with SMTP id t5mr11731950wmg.80.1478629548939; Tue, 08 Nov 2016 10:25:48 -0800 (PST) Received: from [192.168.2.109] (p4FDB3E1A.dip0.t-ipconnect.de. [79.219.62.26]) by smtp.googlemail.com with ESMTPSA id s133sm2370455wmd.19.2016.11.08.10.25.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Nov 2016 10:25:48 -0800 (PST) Subject: Re: Compiling rtorrent-0.9.4-1 with cygport To: cygwin@cygwin.com References: Cc: sorin@itguy.ro From: Marco Atzeri Message-ID: Date: Tue, 08 Nov 2016 18:25:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00072.txt.bz2 On 26/10/2016 07:10, Sorin Adrian Savu wrote: > Hello! > > I'm trying to compile rtorrent-0.9.4-1 with cygport to add support for XMLRPC. rtorrent package is currently 0.9.6-1. Any reason for 0.9.4 ? > > I've added: > CYGCONF_ARGS="--with-xmlrpc-c" > in the cygport file. > > When I try to compile, I get the following error: > > /usr/src/rtorrent-0.9.4-1.src/rtorrent-0.9.4-1.x86_64/src/rtorrent-0.9.4/src/display/window_file_list.cc: > In function ‘std::wstring display::wstring_width(const string&, int)’: > /usr/src/rtorrent-0.9.4-1.src/rtorrent-0.9.4-1.x86_64/src/rtorrent-0.9.4/src/display/window_file_list.cc:80:38: > error: ‘wcswidth’ was not declared in this scope > int swidth = wcswidth(result, width); > ^ > /usr/src/rtorrent-0.9.4-1.src/rtorrent-0.9.4-1.x86_64/src/rtorrent-0.9.4/src/display/window_file_list.cc:87:18: > error: ‘::wcwidth’ has not been declared > int next = ::wcwidth(result[length]); > ^ > After some investigation it seems to be related to _XOPEN_SOURCE > flag, but when I add that I get other errors. > > I've tried compiling with the CYGCONF_ARGS commented out and the > behavior is the same. > > Am I missing something ? How can I find out which compile flags were > used at the package build time ? You are not missing anything. CYGCONF_ARGS was empty for last binary build. The cygwin headers changed from last time I built the rtorrent package. I see the same error today. Adding CXXFLAGS+=" -D_GNU_SOURCE" to the cygport should solve the build problem. about --with-xmlrpc-c, I think there is no cygwin package to support such configuration. Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple