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

Re: Unable to fork off sideband demultiplexer

From
Jeff King <peff@peff.net>
Date
Jun 2, 2011, 19:29 UTC
Message-ID
<20110602192927.GA21262@sigill.intra.peff.net>
In-Reply-To
<loom.20110602T172442-653@post.gmane.org>
On Thu, Jun 02, 2011 at 03:29:04PM +0000, Randy Brandenburg wrote:
Show 5 quoted lines
> I rebuilt git-1.7.5 from source on the Solaris 9 platform with gcc-3.4.6, GNU 
> make 3.82, and GNU install (from coreutils 8.11). Following these steps
> 
> ----------------------------------------------------------------------------
> # ./configure CC=gcc

Hmm, I would have thought configure would set up most of what you needed below, but it's possible our autoconf is not very complete (unlike many projects, it's not necessary to use it to build).

Show 5 quoted lines
> Edit the Makefile - set the path to "ar", "gcc" and GNU "install".
> CC = /usr/local/bin/gcc
> AR = /usr/ccs/bin/ar
> INSTALL = /usr/local/bin/install
> Look for ifeq ($(uname_S),SunOS) and set INSTALL to /usr/lcoal/bin/install

Rather than edit the Makefile, you can put these in "config.mak" which is sourced automatically by the Makefile (after the defaults are set up, so you can override them).

Show 6 quoted lines
> # gmake NO_TCLTK=1 NO_CURL=1 NO_PTHREADS=YesPlease install prefix=/opt/sfw
> # git --version
> git version 1.7.5
> ----------------------------------------------------------------------------
> Preliminary testing indicates a working system -- will investigate thourough 
> today and tomorrow.

Great, I'm glad it's working. With NO_PTHREADS set, you will be fork()ing off the sideband process instead of using a thread. So you avoid pthreads altogether and it works, but you can't do multi-threaded delta compression.

If you build without NO_PTHREADS set on a Solaris 9 box, does it work on that same box? That would confirm or deny my ABI compatibility theory (and hopefully point us in the right direction for the sunfreeware people to build a binary that works on Solaris 9 and 10).

-Peff
Previous: Randy BrandenburgNext: Randy Brandenburg
Message 6 of 15 in “Unable to fork off sideband demultiplexer”
  1. Randy BrandenburgJun 1, 2011
  2. Junio C HamanoJun 1, 2011
  3. Jeff KingJun 1, 2011
  4. Randy BrandenburgJun 1, 2011
  5. Randy BrandenburgJun 2, 2011
  6. Jeff KingJun 2, 2011
  7. Randy BrandenburgJun 3, 2011
  8. Randy BrandenburgJun 3, 2011
  9. Jeff KingJun 3, 2011
  10. Randy BrandenburgJun 3, 2011
  11. Jeff KingJun 3, 2011
  12. Brandon CaseyJun 3, 2011
  13. Ben WaltonJun 2, 2011
  14. Randy BrandenburgJun 3, 2011
  15. Ben WaltonJun 4, 2011

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.