From: Jonas Fonseca Date: Mon, 20 Sep 2010 21:48:23 GMT Subject: Re: [tig] Re: compilation error: undefined reference to `set_tabsize' Message-ID: In-Reply-To: <20100920204344.GB13017@vidovic> On Mon, Sep 20, 2010 at 16:43, Nicolas Sebrecht wrote: > The 20/09/10, Stefan Näwe wrote: >> Nicolas Sebrecht gmx.fr> writes: >> >> > tig don't compile anymore here: >> > >> >   % make >> >   gcc   tig.o  -lncursesw  -o tig >> >   tig.o: In function `init_display': tig.c:7113: undefined reference to >> `set_tabsize' >> >   collect2: ld returned 1 exit status >> >   make: *** [tig] Error 1 >> >   % >> > >> > and bisected on >> > >> > commit f1fe753be71ef3ce5abcbb16c2a359f97e5c7e7d >> > Author: Stefan Naewe <> >> > Date:   Sun Sep 12 11:03:52 2010 +0200 >> > >> >     Use function set_tabsize() >> > >> >     this fixes the following compile error on cygwin: >> >     tig.c: In function `init_display': >> >     tig.c:7112: error: invalid lvalue in assignment >> >> That change works for me on Cygwin, Ubuntu 10.04, Debian 5.0.6 >> >> Maybe you should say something about your system/OS version ? > > Naturally. I'm running on Gentoo. One possibility is to add a check to configure, but I don't know if you are even using that. Alternatively, I think it would also be safe to simply just delete the line in question, since tig expands all tabs to strings since quite a few releases. -- Jonas Fonseca