Package: bible-kjv
Severity: normal
Tags: patch

When building 'bible-kjv' on amd64 with gcc-4.0,
I get the following error:

cc -Wall -Wformat -Werror -Wshadow -W -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual 
-Wbad-function-cast -Wpointer-arith -g2 -ggdb -DDESTLIB=\"/usr/lib\"   -c -o 
tsl.o tsl.c
cc1: warnings being treated as errors
tsl.c: In function 'tsl_textread':
tsl.c:535: warning: pointer targets in passing argument 1 of 'cmp_decompress' 
differ in signedness
tsl.c:535: warning: pointer targets in passing argument 2 of 'cmp_decompress' 
differ in signedness
make[1]: *** [tsl.o] Error 1
make[1]: Leaving directory `/bible-kjv-4.18'
make: *** [build] Error 2

With the attached patch 'bible-kjv' can be compiled
on amd64 using gcc-4.0. 

The patch also changes the Build-Depends
from 'libreadline4-dev' to 'libreadline5-dev'.

Regards
Andreas Jochens

diff -urN ../tmp-orig/bible-kjv-4.18/tsl.c ./tsl.c
--- ../tmp-orig/bible-kjv-4.18/tsl.c    2005-01-22 19:47:06.000000000 +0100
+++ ./tsl.c     2005-01-31 13:30:49.123343566 +0100
@@ -532,7 +532,7 @@
            tsl_wbuffers[window] = brp;
            brp->win = window;
            
-           if (cmp_decompress( tsl_cmpbuffer, uncbuf, cmpwsize ) != tsl_wsize) 
{
+           if (cmp_decompress( (unsigned char*)tsl_cmpbuffer, (unsigned 
char*)uncbuf, cmpwsize ) != tsl_wsize) {
                /* Last window is probably small.  Just ignore its size */
                if (window != (tsl_wnum-1)) {
                    free(uncbuf);
diff -urN ../tmp-orig/bible-kjv-4.18/debian/control ./debian/control
--- ../tmp-orig/bible-kjv-4.18/debian/control   2003-01-08 19:57:38.000000000 
+0100
+++ ./debian/control    2005-01-31 13:28:57.019992888 +0100
@@ -2,7 +2,7 @@
 Section: doc
 Priority: optional
 Maintainer: Matthew Vernon <[EMAIL PROTECTED]>
-Build-Depends: libreadline4-dev
+Build-Depends: libreadline5-dev
 Standards-Version: 3.5.6
 
 Package: bible-kjv



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to