X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:cc:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=DQ5OdvIBRb+Smw4m iy0aOdMIogjZ8RYUIHlFBWcQ87L0QtbnKoaR5sy9duFOMAs65uCQlZ7OChv8r7ks XbZ5KxuNMmVneSBe/EyPWXTsdY4gUvNdSEoAQqG3dpXjSoMVLgEhL2Wc5pno80k2 wFOJmN/ILACu1rUMI0f4kDTJLQs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:cc:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=piP4lQsCE8T+RPV5Ur7UW1 wSNRc=; b=JdVO1y1/MyBGUo/hzrdgv6Z37voio2e9xb+i5CeIUtJUwqQm4yDCcG Rjf1x1F7G4xRXYvn0Y6aiUzz4YV/FpvfdgsOuhu5SFCMSBeHTHhWm+5i5JHHwdxB phDA6URQu4tE3kykk/9wF7m5JqXsu/+KrHEB6muRN5W9BVmio+5s8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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) Subject: Re: Compiling rtorrent-0.9.4-1 with cygport To: cygwin AT cygwin DOT com References: Cc: sorin AT itguy DOT ro From: Marco Atzeri Message-ID: Date: Tue, 8 Nov 2016 19:24:58 +0100 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 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