public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gethostbyname conflicts
@ 2012-07-25 19:20 Bernd Prager
  2012-07-25 19:29 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Prager @ 2012-07-25 19:20 UTC (permalink / raw)
  To: cygwin

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?

Thank you,
-- Bernd

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gethostbyname conflicts
  2012-07-25 19:20 gethostbyname conflicts Bernd Prager
@ 2012-07-25 19:29 ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 2+ messages in thread
From: Larry Hall (Cygwin) @ 2012-07-25 19:29 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-25 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-25 19:20 gethostbyname conflicts Bernd Prager
2012-07-25 19:29 ` Larry Hall (Cygwin)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).