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

Re: latest clone/pull of git.git problems with setlinebuf.

From
BGBoyd Lynn Gerber <gerberb@zenez.com>
Date
Sep 4, 2008, 03:58 UTC
Message-ID
<alpine.LNX.1.10.0809032157200.21167@suse104.zenez.com>
In-Reply-To
<7vljy88u0m.fsf@gitster.siamese.dyndns.org>
On Wed, 3 Sep 2008, Junio C Hamano wrote:
Show 20 quoted lines
> Boyd Lynn Gerber <gerberb@zenez.com> writes:
>> I just noticed that setlinebuf is coming back as undefined when trying
>> to build the lastest version.
>>
>> on UnixWare 7.1.4 I get
>>
>>     LINK git-var
>>     CC daemon.o
>> UX:acomp: WARNING: "daemon.c", line 485: end-of-loop code not reached
>>     LINK git-daemon
>> Undefined                       first referenced
>> symbol                              in file
>> setlinebuf                          daemon.o
>> UX:ld: ERROR: Symbol referencing errors. No output written to git-daemon
>> gmake: *** [git-daemon] Error 1
>
> Ah, ok.  I should have noticed that setlinebuf() was outside POSIX (it is
> not usable on older BSDs either).
>
> Let's see if we can replace it with setvbuf() which is POSIX.
This fixes the problem. on both OS's.
Thanks,

-- Boyd Gerber <gerberb@zenez.com> ZENEZ 1042 East Fort Union #135, Midvale Utah 84047

Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 9 in “latest clone/pull of git.git problems with setlinebuf.”
  1. Boyd Lynn GerberSep 4, 2008
  2. Boyd Lynn GerberSep 4, 2008
  3. Avery PennarunSep 4, 2008
  4. Boyd Lynn GerberSep 4, 2008
  5. Junio C HamanoSep 4, 2008
  6. Boyd Lynn GerberSep 4, 2008
  7. Junio C HamanoSep 4, 2008
  8. Boyd Lynn GerberSep 4, 2008
  9. Boyd Lynn GerberSep 4, 2008

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.