Discussion:
bug in cvs-1.11.23.tar.gz
lizt
2013-03-26 13:02:09 UTC
Permalink
dear guys:
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
make[2]: *** [getline.o] Error 1
make[2]: Leaving directory `/home/myPrograms/cvs/cvs-1.11.23/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/myPrograms/cvs/cvs-1.11.23'
make: *** [all] Error 2

I fixed it by rename the function "int getline()" in source file
lib/getline.c .

Please check and confirm the bug. Thank you.

Yours faithfully
Petr Pisar
2013-03-27 07:17:46 UTC
Permalink
Post by lizt
I found a bug when I installed the cvs using source package
cvs-1.11.23.tar.gz .
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
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
a***@gmail.com
2014-02-04 14:42:02 UTC
Permalink
Post by Petr Pisar
Post by lizt
I found a bug when I installed the cvs using source package
cvs-1.11.23.tar.gz .
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
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
n***@gmail.com
2014-02-19 00:24:01 UTC
Permalink
Post by a***@gmail.com
Post by Petr Pisar
Post by lizt
I found a bug when I installed the cvs using source package
cvs-1.11.23.tar.gz .
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
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
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
Thanks!

Loading...