git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git 0.99.7b doesn't build on Cygwin

From
Peter TB Brett <peter@peter-b.co.uk>
Date
Sep 23, 2005, 13:33 UTC
Message-ID
<ud5mznc1x.fsf@peter-b.co.uk>
Hi folks,

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:

                              ---- ----

$ make gcc -o apply.o -c -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' apply.c gcc -o blob.o -c -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' blob.c gcc -o commit.o -c -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' commit.c 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' connect.c:324: warning: format argument is not a pointer (arg 3) connect.c:326: error: dereferencing pointer to incomplete type connect.c:327: error: dereferencing pointer to incomplete type connect.c:327: error: dereferencing pointer to incomplete type connect.c:327: error: dereferencing pointer to incomplete type connect.c:330: error: dereferencing pointer to incomplete type connect.c:330: error: dereferencing pointer to incomplete type connect.c:338: warning: implicit declaration of function `freeaddrinfo' connect.c:298: warning: unused variable `hints' make: *** [connect.o] Error 1

$ gcc --version gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) ...

                              ---- ----

It looks like the sort of problems I get when I'm missing header files, but all the headers #included by connect.c are present on my system, so I'm really not sure what's going on there...

Peter
P.S. Please Cc: me on any replies, I'm not subscribed to the list.
-- 
Quake II build tools:  http://peter-b.co.uk/
Latest QuArK:          http://quark.sourceforge.net/LatestVersion

v2sw6YShw7ln5pr6ck3ma8u7Lw3+2m0l7CFi6e4+8t4Eb8Aen4g6Pa2Xs5MSr5p4
  hackerkey.com
Next: Johannes Schindelin
Message 1 of 38 in “git 0.99.7b doesn't build on Cygwin”
  1. Peter TB BrettSep 23, 2005
  2. Johannes SchindelinSep 23, 2005
  3. Peter TB BrettSep 23, 2005
  4. Martin LanghoffSep 23, 2005
  5. Petr BaudisSep 23, 2005
  6. Linus TorvaldsSep 24, 2005
  7. Linus TorvaldsSep 24, 2005
  8. Junio C HamanoSep 25, 2005
  9. Implementing diff, was Re: git 0.99.7b doesn't build on CygwinJohannes Schindelin, Sep 25, 2005
  10. Davide LibenziSep 25, 2005
  11. Linus TorvaldsSep 25, 2005
  12. Davide LibenziSep 25, 2005
  13. Johannes SchindelinSep 24, 2005
  14. Linus TorvaldsSep 24, 2005
  15. Junio C HamanoSep 24, 2005
  16. Davide LibenziSep 24, 2005
  17. Linus TorvaldsSep 24, 2005
  18. Davide LibenziSep 24, 2005
  19. Junio C HamanoSep 24, 2005
  20. Davide LibenziSep 24, 2005
  21. Junio C HamanoSep 24, 2005
  22. Junio C HamanoSep 24, 2005
  23. Davide LibenziSep 24, 2005
  24. Linus TorvaldsSep 24, 2005
  25. Linus TorvaldsSep 24, 2005
  26. Linus TorvaldsSep 25, 2005
  27. Jon LoeligerSep 26, 2005
  28. Junio C HamanoSep 26, 2005
  29. Davide LibenziSep 24, 2005
  30. Giuseppe BilottaSep 25, 2005
  31. Junio C HamanoSep 26, 2005
  32. Davide LibenziSep 26, 2005
  33. Giuseppe BilottaSep 26, 2005
  34. H. Peter AnvinSep 26, 2005
  35. Davide LibenziSep 26, 2005
  36. H. Peter AnvinSep 26, 2005
  37. Daniel BarkalowSep 25, 2005
  38. Davide LibenziSep 24, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.