X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=2.6 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=windows-1252; format=flowed Message-id: <501048E0.8020803@cygwin.com> Date: Wed, 25 Jul 2012 15:28:32 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 To: cygwin AT cygwin DOT com Subject: Re: gethostbyname conflicts References: <501046E1 DOT 6080903 AT prager DOT ws> In-reply-to: <501046E1.6080903@prager.ws> 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 On 7/25/2012 3:20 PM, Bernd Prager wrote: > All, > > I am having troubles compiling a boost package due to conflicting declarations: > > /usr/include/w32api/winsock2.h:635:33: error: declaration of C function ‘int > gethostname(char*, int)’ conflicts with > /usr/include/sys/unistd.h:238:6: error: previous declaration ‘int > gethostname(char*, size_t)’ here > > Can that get fixed? You want to have a look at the configuration for the Boost package you're building. It should not be including things from the w32api if it's building for Cygwin. If you aren't aware, Cygwin has a Boost package already. If you're looking for a more current version, you may find you have better luck using the build scripts for the current Cygwin package as a basis if you prefer not to wait for the Cygwin maintainer to release an update. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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