Le mercredi 27 mars 2013 07:17:46 UTC, Petr Pisar a écrit :
> On Tue, Mar 26, 2013 at 09:02:09PM +0800, lizt wrote:
> 
> >     I  found a bug when I installed the cvs using source package
> 
> > cvs-1.11.23.tar.gz .
> 
> >     Detail:
> 
> >         make  all-recursive
> 
> >         make[1]: Entering directory `/home/myPrograms/cvs/cvs-1.11.23'
> 
> >         Making all in lib
> 
> >         make[2]: Entering directory `/home/myPrograms/cvs/cvs-1.11.23/lib'
> 
> >         gcc -DHAVE_CONFIG_H -I. -I.. -I../src     -g -O2 -MT
> 
> > getline.o -MD -MP -MF .deps/getline.Tpo -c -o getline.o getline.c
> 
> >         In file included from getline.c:25:0:
> 
> >         getline.h:15:3: error: conflicting types for 'getline'
> 
> >         /usr/include/stdio.h:675:20: note: previous declaration of
> 
> > 'getline' was here
> 
> >         getline.c:158:1: error: conflicting types for 'getline'
> 
> >         /usr/include/stdio.h:675:20: note: previous declaration of
> 
> > 'getline' was here
> 
> Use patch
> 
> <http://pkgs.fedoraproject.org/cgit/cvs.git/plain/cvs-1.11.23-getline64.patch>.
> 
> The sources bundles old implemetation from gnulib which is not compatible with
> 
> current glibc.
> 
> 
> 
> -- Petr

I found this fix in :
http://permalink.gmane.org/gmane.linux.lfs.devel/10198

 find all the .c programs that call getline and change those to
 get_line.

sed -i 's/getline /get_line /' lib/getline.{c,h}
it's work
_______________________________________________
Bug-cvs mailing list
Bug-cvs@nongnu.org
https://lists.nongnu.org/mailman/listinfo/bug-cvs

Reply via email to