[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin
Subject:    Compiling rtorrent-0.9.4-1 with cygport
From:       Sorin Adrian Savu <sorin () itguy ! ro>
Date:       2016-10-26 5:10:10
Message-ID: CAFeE7G=Pp-uRL_NiRd4nJOVo6=Uvu+3Zo2+Q_Nm_0_cE8xz48w () mail ! gmail ! com
[Download RAW message or body]

Hello!

I'm trying to compile rtorrent-0.9.4-1 with cygport to add support for XMLRPC.

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 ?

--
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic