This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: fate/resolution/location of things like "sys/sockio.h"


> From: dave.korn@artimi.com
> Date: Thu, 22 May 2008 16:15:16 +0100

Thanks. If you are interested, let me try to give a chronology of follow on events as best as I can
reconstruct:

1:::::::::::::::::::::::::::::::::::::::::::
> Wrong place to look, surely?
>
> http://cygwin.com/cgi-bin2/package-grep.cgi?grep=sys%2Fsockio.h

Oddly enough, that helped :)
OK, so I copied sockio.h and also needed ioccom.h. Just to be clear,

http://cygwin.com/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/sys/ioccom.h?cvsroot=src

my install is messed up so I'm not sure this problem applies to anyone else
but I'm just being complete incase it matters.

2:::::::::::::::::::::::::::::::::::::::::::::::

Then, I encountered a define problem. This seems to have occured elsewhere
so I thought I would post the issue with definition of ssize_t: 

http://code.google.com/p/xdelta/issues/detail?id=56

This turned out to be flagged with __CYGWIN__ and also easy to fix in the makefile.

3::::::::::::::::::::::::::::::::::::::::::::::::::::::

But, then I had a missing definition for IFF_POINTOPOINT which does seem to be 
an issue with cygwin. According to this, the symbol should be defined in if.h: 

https://www.linux-foundation.org/dbadmin/browse/headgroup.php?cmd=list-byheadgroup&HGid=437

my if.h needed to be modified, 

#define IFF_LOOPBACK    0x8             /* is a loopback net            */
//
#define IFF_POINTOPOINT    0x10            /* mjm,            */
// https://www.linux-foundation.org/dbadmin/browse/headgroup.php?cmd=list-byheadgroup&HGid=437

#define IFF_NOTRAILERS  0x20            /* avoid use of trailers        */

4: ::::::::::::::::::::::::::::::::::::::::::::
Next, a problem with INET6_ADDSTRLEN16. I found this and implemented the suggestion,


http://viral.media.mit.edu/peers/peers-win.html

#if defined(__CYGWIN__) 
#define INET_ADDRSTRLEN 16 
#define INET6_ADDRSTRLEN 46 
#endif /* __CYGWIN__ */

which again seemed to work but I have no idea what other problems may turn up if this isn't right.

5::::::::::::::::::::::::::::::::::::::::::::

Then I finally encountered a big link problem and determined that some pieces
were built with and without -mno-cygwin. I was finally able to stop it from complaining
by grepping all the libraries for the missing symbols and just randomly adding stuff
but, duh, the executable wouldn't run. I can probably figure this out but I've never built anything with -mno-cygwin before
so it will probably take a while.



Thanks. 




Mike Marchywka
586 Saint James Walk
Marietta GA 30067-7165
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
marchywka@hotmail.com
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.
Note: Hotmail is possibly blocking my mom's entire
ISP - try  me on marchywka@yahoo.com if no reply
here. Thanks.


> From: dave.korn@artimi.com
> To: cygwin@cygwin.com
> Subject: RE: fate/resolution/location of things like "sys/sockio.h"
> Date: Thu, 22 May 2008 16:15:16 +0100
>
> Mike Marchywka wrote on 22 May 2008 16:03:
>
>> but I can't figure out exactly what the status of "sys/sockio.h" is from
>> the results here:
>>
>> http://www.google.com/search?hl=en&q=site%3Acygwin.com++%22sockio.h%22
>
> Wrong place to look, surely?
>
> http://cygwin.com/cgi-bin2/package-grep.cgi?grep=sys%2Fsockio.h
>
>> Is there a definitive way to fix this?
>
> Fix what exactly? The fact that cygwin doesn't supply or support
> ? Well, yes, there is a definitive way to fix it:
>
> http://cygwin.com/acronyms#PTC
>
>
> cheers,
> DaveK
> --
> Can't think of a witty .sigline today....
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>

_________________________________________________________________
Give to a good cause with every e-mail. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?souce=EML_WL_ GoodCause

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]