From: Boyd Lynn Gerber Date: Thu, 04 Sep 2008 03:58:08 GMT Subject: Re: latest clone/pull of git.git problems with setlinebuf. Message-ID: In-Reply-To: <7vljy88u0m.fsf@gitster.siamese.dyndns.org> On Wed, 3 Sep 2008, Junio C Hamano wrote: > Boyd Lynn Gerber 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 ZENEZ 1042 East Fort Union #135, Midvale Utah 84047