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:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type :content-transfer-encoding; q=dns; s=default; b=Ut/I3IrBaJqNkPo9 vO1jw3fJLiTPqcO82v3ArUgRwDPmxuYGjxzKzQJyW/g4ticlr4EQNizAoR4NNNve iEBLWesA87RJ5mQsJhJ6c9ddz6QStirZMJMPG4S2L733sQJlq/x1LMw1DjCL5RAV gaThmLlm4TWIpnSR/tbACKm0Jj0= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type :content-transfer-encoding; s=default; bh=lo8ja7RcOlQQ6WmdjCDD6n xDjrw=; b=N9aQlpskntUzB2axcn1zf6WeVkzta/J4VzCAzleGkNaOqG01GB/T8r /o8jNjOaQpZZ851xP5QP6poWiSjuh6QRLBVHUNzVNBzRbsvq1vUB2QgrsX5XENy0 B+UdCxvPaTxiwIJc7dZnRMzdRsk//hatNAZUyTiB07bmmbfTIogdw= 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.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy=time, H*F:D*ro, time!, HCc:D*cygwin.com X-HELO: mail-wm0-f52.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gWiTzOhRC+EaTinp+r6y6uj6eVf86dKqsFLZqKcYPIQ=; b=R03sGmh8jAhEg7ZZCIHQAJ0bQ9vxe67+YxEEkr4rdAx//K31M/z6quwLWvDtpD3Hdn RwB8DqvcUlKc4kSRnMkyO9pG5PjeZ+v30ykHTv0xXn2bOR9WLP7sKCIzlD5r0NBEBxg2 SMfh3D45gnmtMxbi+v/R6Qae25RyKrWfiTSGXZoncY6oiHF/9piXiV388BV2x826yJhI mhJXiB2Qd4fvzPImjHlYp219ubdVyJB0Ea3Kbc+ks9vXuWVa0eDPeCRrajCRLPFCvUd4 2+GVjZ6ivf+o8i1ZwhS3jGH5FYCS9TYE5E3+oXXhRIZOpwTKJJuWI4CPQklBfWz/tYIv pj7g== X-Gm-Message-State: ABUngveaXJWRsFS2sAVzTziJChsVrGyjsKL5Bx1agrzw9BEV/zFUMbmkc2+WMNJshDNE3uLcmLLepsP3EO4a3A== X-Received: by 10.28.199.71 with SMTP id x68mr6751823wmf.34.1478866598834; Fri, 11 Nov 2016 04:16:38 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Sorin Adrian Savu Date: Fri, 11 Nov 2016 14:16:38 +0200 Message-ID: Subject: Re: Compiling rtorrent-0.9.4-1 with cygport To: Marco Atzeri Cc: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id uABCH5kE009809 On Tue, Nov 8, 2016 at 8:24 PM, Marco Atzeri wrote: > 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 ? Yes, tracker doesn't accept 0.9.6-1 > > >> >> 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. Tested today, and I can confirm it works. Would you mind pointing me to some documentation/info about what changed in the headers ? > > about --with-xmlrpc-c, I think there is no cygwin package to > support such configuration. I've used the source package directly for lib xmlrpc-c > > Regards > Marco > Thanks for your time! -- 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