X-Recipient: archive-cygwin@delorie.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-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
To: cygwin@cygwin.com
Subject: Re: gethostbyname conflicts
References: <501046E1.6080903@prager.ws>
In-reply-to: <501046E1.6080903@prager.ws>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

