pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/41532: net/rtorrent fails to compile on solaris 10



The following reply was made to PR pkg/41532; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost, pkg-manager%netbsd.org@localhost, 
gnats-admin%netbsd.org@localhost, 
        pkgsrc-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/41532: net/rtorrent fails to compile on solaris 10
Date: Wed, 3 Jun 2009 11:35:15 -0400

 On Jun 3, 12:50pm, kordex%gmail.com@localhost (kordex%gmail.com@localhost) 
wrote:
 -- Subject: pkg/41532: net/rtorrent fails to compile on solaris 10
 
 | >Number:         41532
 | >Category:       pkg
 | >Synopsis:       net/rtorrent fails to compile on solaris 10
 | >Confidential:   no
 | >Severity:       non-critical
 | >Priority:       medium
 | >Responsible:    pkg-manager
 | >State:          open
 | >Class:          sw-bug
 | >Submitter-Id:   net
 | >Arrival-Date:   Wed Jun 03 12:50:00 +0000 2009
 | >Originator:     Mikko Kortelainen
 | >Release:        none
 | >Organization:
 | home
 | >Environment:
 | SunOS flexnet 5.10 Generic sun4u sparc SUNW,Netra-T4
 | 
 | >Description:
 | net/rtorrent fails to compile on solaris: AF_LOCAL undeclared.
 | >How-To-Repeat:
 | try to build net/rtorrent on solaris10
 | >Fix:
 | --- /export/home/kordex/rtorrent-0.8.2/src/rpc/scgi.cc       2008-05-07 
15:19:10.000000000 +0300
 | +++ scgi.cc  2009-04-03 13:50:34.413629000 +0300
 | @@ -88,7 +88,12 @@
 |    char buffer[sizeof(sockaddr_un) + filename.size()];
 |    sockaddr_un* sa = reinterpret_cast<sockaddr_un*>(buffer);
 |  
 | +#if defined(sun) || defined(__sun) 
 | +  sa->sun_family = AF_UNIX;
 | +#else
 |    sa->sun_family = AF_LOCAL;
 | +#endif
 | +
 |    std::memcpy(sa->sun_path, filename.c_str(), filename.size() + 1);
 |  
 |    if (!get_fd().open_local())
 
 
 #ifdef AF_LOCAL
     sa->sun_family = AF_LOCAL;
 #else
     sa->sun_family = AF_UNIX;
 #endif
 
 christos
 


Home | Main Index | Thread Index | Old Index