pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/41335: rtorrent failed to compile on Solaris 10
>Number: 41335
>Category: pkg
>Synopsis: rtorrent failed to compile on Solaris 10
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 02 09:50:00 +0000 2009
>Originator: Stephan Pietzko
>Release: pkgsrc-2009Q1 (30. Apr. 2009)
>Organization:
University of Konstanz
>Environment:
SunOS host 5.10 Generic_138888-08 sun4u sparc SUNW,A70
>Description:
rtorrent (pkgsrc-2009Q1 version 30. Apr.) does not compile on Solaris 10 with
gcc.
[...]
scgi.cc: In member function `void rpc::SCgi::open_named(const std::string&)':
scgi.cc:91: error: `AF_LOCAL' undeclared (first use this function)
scgi.cc:91: error: (Each undeclared identifier is reported only once for each
function it appears in.)
gmake[3]: *** [scgi.o] Error 1
gmake[3]: Leaving directory
`/usr/pkgsrc/net/rtorrent/work/rtorrent-0.8.2/src/rpc'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/net/rtorrent/work/rtorrent-0.8.2/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/net/rtorrent/work/rtorrent-0.8.2'
gmake: *** [all] Error 2
*** Error code 2
Stop.
bmake: stopped in /usr/pkgsrc/net/rtorrent
*** Error code 1
>How-To-Repeat:
Install pkgsrc-2009Q1 (30. Apr) on Solaris 10 (patched to 30. Apr) with the Sun
gcc.
PATH=/usr/pkg/bin:/usr/pkg/sbin:/usr/sbin:/usr/bin:/opt/SUNWspro/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/ccs/lib:/usr/sfw/bin:/usr/sfw/sbin
> cd /usr/pkgsrc/bootstrap
> ./bootstrap
> cd /usr/pkgsrc/net/rtorrent
> bmake
>Fix:
see http://libtorrent.rakshasa.no/ticket/1003
> diff -c work/rtorrent-0.8.2/src/rpc/scgi.cc
> /usr/local/src/pkgsrc/rtorrent/work/rtorrent-0.8.2/src/rpc/scgi.cc
*** work/rtorrent-0.8.2/src/rpc/scgi.cc Sat May 2 12:51:37 2009
--- /usr/local/src/pkgsrc/rtorrent/work/rtorrent-0.8.2/src/rpc/scgi.cc Sat May
2 11:40:19 2009
***************
*** 88,94 ****
char buffer[sizeof(sockaddr_un) + filename.size()];
sockaddr_un* sa = reinterpret_cast<sockaddr_un*>(buffer);
! sa->sun_family = AF_LOCAL;
std::memcpy(sa->sun_path, filename.c_str(), filename.size() + 1);
if (!get_fd().open_local())
--- 88,94 ----
char buffer[sizeof(sockaddr_un) + filename.size()];
sockaddr_un* sa = reinterpret_cast<sockaddr_un*>(buffer);
! sa->sun_family = AF_UNIX;
std::memcpy(sa->sun_path, filename.c_str(), filename.size() + 1);
if (!get_fd().open_local())
Home |
Main Index |
Thread Index |
Old Index