From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125257 invoked by alias); 11 Nov 2016 12:16:51 -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 125245 invoked by uid 89); 11 Nov 2016 12:16:51 -0000 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 Received: from mail-wm0-f52.google.com (HELO mail-wm0-f52.google.com) (74.125.82.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 11 Nov 2016 12:16:40 +0000 Received: by mail-wm0-f52.google.com with SMTP id t79so88580881wmt.0 for ; Fri, 11 Nov 2016 04:16:40 -0800 (PST) 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 Received: by 10.28.98.2 with HTTP; Fri, 11 Nov 2016 04:16:38 -0800 (PST) In-Reply-To: References: From: Sorin Adrian Savu Date: Fri, 11 Nov 2016 13:57:00 -0000 Message-ID: Subject: Re: Compiling rtorrent-0.9.4-1 with cygport To: Marco Atzeri Cc: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00116.txt.bz2 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=3D"--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 =E2=80=98std::wstring display::wstring_width(const string&, = int)=E2=80=99: >> >> /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: =E2=80=98wcswidth=E2=80=99 was not declared in this scope >> int swidth =3D 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: =E2=80=98::wcwidth=E2=80=99 has not been declared >> int next =3D ::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+=3D" -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