Package: jlint
Version: 3.0-1
Severity: serious
Tags: patch

When building 'jlint' in a clean 'unstable' chroot,
I get the following error:

gcc -g -lz -o antic antic.o
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [antic] Error 1
make[1]: Leaving directory `/jlint-3.0'
make: *** [build-arch-stamp] Error 2

Please add the missing Build-Depends on 'zlib1g-dev'
to debian/control.

Additionally, the build fails on amd64 because some pointers are
casted to (int). The attached patch fixes this.

Regards
Andreas Jochens

diff -urN ../tmp-orig/jlint-3.0/debian/control ./debian/control
--- ../tmp-orig/jlint-3.0/debian/control        2005-09-03 11:38:44.000000000 
+0000
+++ ./debian/control    2005-09-03 11:34:06.000000000 +0000
@@ -2,7 +2,7 @@
 Section: devel
 Priority: optional
 Maintainer: Ganesan Rajagopal <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 3.0.0), texi2html, tetex-extra
+Build-Depends: debhelper, zlib1g-dev, texi2html, tetex-extra
 Standards-Version: 3.6.2
 
 Package: jlint
diff -urN ../tmp-orig/jlint-3.0/jlint.cc ./jlint.cc
--- ../tmp-orig/jlint-3.0/jlint.cc      2004-01-14 16:23:20.000000000 +0000
+++ ./jlint.cc  2005-09-03 11:38:32.000000000 +0000
@@ -137,7 +137,7 @@
 
 void format_message(int code, utf_string const& file, int line, __VALIST ap)
 {
-  static int loop_id;
+  static long loop_id;
   static message_node *first, *last;
   static char* compound_message;
   const void* parameter[MAX_MSG_PARAMETERS];
@@ -150,7 +150,7 @@
     if (compound_message != NULL
         && ((loop_id != 0 
              && ((code != msg_loop && code != msg_sync_loop)
-                 || (int)parameter[2] != loop_id))
+                 || (long)parameter[2] != loop_id))
             || (loop_id == 0 && code != msg_wait_path)))
       {
         if (!message_node::find(compound_message)) { 
@@ -225,7 +225,7 @@
                            name.as_asciz()); 
             break;
           case 'd': // integer
-            dst += sprintf(dst, "%d", (int)parameter[index]);  
+            dst += sprintf(dst, "%ld", (long)parameter[index]);  
             break;
           default:
             assert(false/*bad message parameter format*/);
@@ -261,7 +261,7 @@
               compound_message = strdup(his_buf);
               first = last = new message_node(msg_buf);
               if (code != msg_wait) { 
-                loop_id = (int)parameter[2];
+                loop_id = (long)parameter[2];
               }
             } else if (!message_node::find(his_buf)) { 
               fprintf(stdout, "%s\n", msg_buf);


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

Reply via email to