delorie.com/archives/browse.cgi | search |
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 |
Message-id: | <501048E0.8020803@cygwin.com> |
Date: | Wed, 25 Jul 2012 15:28:32 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
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: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |