Re: git 0.99.7b doesn't build on Cygwin
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 23, 2005, 13:44 UTC
- Message-ID
- <Pine.LNX.4.63.0509231537390.11109@wgmdd8.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <ud5mznc1x.fsf@peter-b.co.uk>
Hi,
On Fri, 23 Sep 2005, Peter TB Brett wrote:
> I wanted to use git on a Windows-based project (yes, there are some > out there still), so I fired up my Cygwin xterm, untarred the git > sources and totally failed to succeed in building them:
Also see my mail regarding cygwin:
http://www.gelato.unsw.edu.au/archives/git/0508/7956.html
Show 6 quoted lines
> gcc -o connect.o -c -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' connect.c > connect.c: In function `git_tcp_connect': > connect.c:298: error: storage size of 'hints' isn't known > connect.c:322: warning: implicit declaration of function `getaddrinfo' > connect.c:324: warning: implicit declaration of function `gai_strerror' > [...]
This is the IPv6 stuff. There are patches to cygwin to support IPv6 somewhere, but they haven't made it into mainline.
As for the other problem I mentioned in my original mail:
It seems that the fixup of the mmap()ed regions after a fork() does not work properly in cygwin. Remember that cygwin just wraps the non-POSIX Win32API and tries to make it sort of POSIX compliant. The problem is that Win32API lacks a proper fork(). This is therefore emulated, and after that, all the mmap()ed regions have to be mapped again. That fails.
Sidenote: I ran it inside gdb, and it worked fine! So I tried to recompile the cygwin1.dll, but that wrecked my whole installation of cygwin and I spent 2 hours just to be able to "gcc -o" again.
Ciao, Dscho