[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#298492: marked as done (mifluz: FTBFS (amd64/gcc-4.0): cast from 'char*' to 'int' loses precision)



Your message dated Sat, 02 Apr 2005 03:32:35 -0500
with message-id <E1DHe3X-0004cv-00@newraff.debian.org>
and subject line Bug#298492: fixed in mifluz 0.24.0-9
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Mar 2005 21:23:32 +0000
>From aj@andaco.de Mon Mar 07 13:23:32 2005
Return-path: <aj@andaco.de>
Received: from c223012.adsl.hansenet.de (localhost.localdomain) [213.39.223.12] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D8PhL-0001ON-00; Mon, 07 Mar 2005 13:23:32 -0800
Received: from aj by localhost.localdomain with local (Exim 4.44)
	id 1D8Qdc-0000fQ-Nn; Mon, 07 Mar 2005 23:23:44 +0100
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: mifluz: FTBFS (amd64/gcc-4.0): cast from 'char*' to 'int' loses precision
Message-Id: <E1D8Qdc-0000fQ-Nn@localhost.localdomain>
Date: Mon, 07 Mar 2005 23:23:44 +0100
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: mifluz
Severity: normal
Tags: patch

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

rm -f .libs/WordDB.lo
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DCONFIG_FILE=\"/etc/mifluz/mifluz.conf\" -I../mifluz -I../db -I../db -I../clib -I.. -DNOSTREAM -D_REENTRANT -g -O2 -Wall -Woverloaded-virtual -fno-rtti -fno-exceptions -Wp,-MD,.deps/WordDB.pp -c WordDB.cc  -fPIC -DPIC -DPIC -o WordDB.o
Object.h:37: warning: 'virtual int Object::compare(const Object&)' was hidden
htString.h:132: warning:   by 'String::compare'
List.h:84: warning: 'virtual void List::Insert(Object*, int)' was hidden
StringList.h:50: warning:   by 'StringList::Insert'
List.h:76: warning: 'virtual void List::Add(Object*)' was hidden
StringList.h:48: warning:   by 'StringList::Add'
List.h:93: warning: 'virtual void List::Assign(Object*, int)' was hidden
StringList.h:52: warning:   by 'StringList::Assign'
WordDBCache.h: In member function 'int WordDBCache::Absolute()':
WordDBCache.h:152: error: cast from 'char*' to 'int' loses precision
WordDBCache.h:153: error: cast from 'char*' to 'int' loses precision
make[3]: *** [WordDB.lo] Error 1
make[3]: Leaving directory `/mifluz-0.24.0/mifluz'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/mifluz-0.24.0/db/db_int.h ./db/db_int.h
--- ../tmp-orig/mifluz-0.24.0/db/db_int.h	2000-06-28 18:47:01.000000000 +0200
+++ ./db/db_int.h	2005-03-07 21:37:22.741723718 +0100
@@ -108,10 +108,10 @@
  * an array.
  */
 #undef	SSZ
-#define	SSZ(name, field)	((int)&(((name *)0)->field))
+#define	SSZ(name, field)	((long)&(((name *)0)->field))
 
 #undef	SSZA
-#define	SSZA(name, field)	((int)&(((name *)0)->field[0]))
+#define	SSZA(name, field)	((long)&(((name *)0)->field[0]))
 
 /*
  * Print an address as a u_long (a u_long is the largest type we can print
diff -urN ../tmp-orig/mifluz-0.24.0/mifluz/WordDBCache.h ./mifluz/WordDBCache.h
--- ../tmp-orig/mifluz-0.24.0/mifluz/WordDBCache.h	2001-06-29 16:14:08.000000000 +0200
+++ ./mifluz/WordDBCache.h	2005-03-07 21:37:22.746722753 +0100
@@ -149,8 +149,8 @@
   inline int Absolute() {
     int i;
     for(i = 0; i < entries_length; i++) {
-      entries[i].key = pool + (int)(entries[i].key);
-      entries[i].data = pool + (int)(entries[i].data);
+      entries[i].key = pool + (long)(entries[i].key);
+      entries[i].data = pool + (long)(entries[i].data);
     }
     return OK;
   }
diff -urN ../tmp-orig/mifluz-0.24.0/search/WordResults.cc ./search/WordResults.cc
--- ../tmp-orig/mifluz-0.24.0/search/WordResults.cc	2001-08-31 16:06:04.000000000 +0200
+++ ./search/WordResults.cc	2005-03-07 21:42:58.202973508 +0100
@@ -25,11 +25,11 @@
 
 static int wordResults_cmp(const DBT* a, const DBT* b)
 {
-  int length = (int)a->app_private;
+  long length = (long)a->app_private;
 
   WordKeyNum* a_values = (WordKeyNum*)a->data;
   WordKeyNum* b_values = (WordKeyNum*)b->data;
-  for(int i = 0; i < length; i++) {
+  for(long i = 0; i < length; i++) {
     if(a_values[i] != b_values[i]) {
       return a_values[i] > b_values[i] ? 1 : -1;
     }

---------------------------------------
Received: (at 298492-close) by bugs.debian.org; 2 Apr 2005 08:39:03 +0000
>From katie@ftp-master.debian.org Sat Apr 02 00:39:03 2005
Return-path: <katie@ftp-master.debian.org>
Received: from gluck.debian.org [192.25.206.10] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DHe9n-0000fG-00; Sat, 02 Apr 2005 00:39:03 -0800
Received: from newraff.debian.org [208.185.25.31] (mail)
	by gluck.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DHe9m-00079w-00; Sat, 02 Apr 2005 01:39:02 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DHe3X-0004cv-00; Sat, 02 Apr 2005 03:32:35 -0500
From: Philipp Kern <pkern@debian.org>
To: 298492-close@bugs.debian.org
X-Katie: $Revision: 1.55 $
Subject: Bug#298492: fixed in mifluz 0.24.0-9
Message-Id: <E1DHe3X-0004cv-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sat, 02 Apr 2005 03:32:35 -0500
Delivered-To: 298492-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 3

Source: mifluz
Source-Version: 0.24.0-9

We believe that the bug you reported is fixed in the latest version of
mifluz, which is due to be installed in the Debian FTP archive:

libmifluz0-dev_0.24.0-9_i386.deb
  to pool/main/m/mifluz/libmifluz0-dev_0.24.0-9_i386.deb
libmifluz0_0.24.0-9_i386.deb
  to pool/main/m/mifluz/libmifluz0_0.24.0-9_i386.deb
mifluz-doc_0.24.0-9_all.deb
  to pool/main/m/mifluz/mifluz-doc_0.24.0-9_all.deb
mifluz_0.24.0-9.diff.gz
  to pool/main/m/mifluz/mifluz_0.24.0-9.diff.gz
mifluz_0.24.0-9.dsc
  to pool/main/m/mifluz/mifluz_0.24.0-9.dsc
mifluz_0.24.0-9_i386.deb
  to pool/main/m/mifluz/mifluz_0.24.0-9_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 298492@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Philipp Kern <pkern@debian.org> (supplier of updated mifluz package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat,  2 Apr 2005 08:11:11 +0000
Source: mifluz
Binary: mifluz-doc libmifluz0-dev libmifluz0 mifluz
Architecture: source all i386
Version: 0.24.0-9
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Philipp Kern <pkern@debian.org>
Description: 
 libmifluz0 - Libraries for using mifluz
 libmifluz0-dev - development environment for mifluz
 mifluz     - A full text inverted indexer
 mifluz-doc - Documentation for mifluz
Closes: 236662 260687 276975 298492
Changes: 
 mifluz (0.24.0-9) unstable; urgency=low
 .
   * QA upload.
   * Fixed FTBFS on amd64/gcc-4.0, thanks to Andreas Jochens. (Closes: #298492)
   * Updated German debconf translation by Jens Nachtigall. (Closes: #276975)
   * Added Catalan debconf translation by Aleix Badia i Bosch.
     (Closes: #236662)
   * mifluz now suggests mifluz-doc. (Closes: #260687)
Files: 
 aff06e154577c502460ad085e2aeb8de 715 utils optional mifluz_0.24.0-9.dsc
 9b58f78ff5a8abf2e73ae5d1d8fe1e62 72144 utils optional mifluz_0.24.0-9.diff.gz
 8241d7057cc2bb829fa5309568b838ea 384658 doc optional mifluz-doc_0.24.0-9_all.deb
 3f267fbb81c4f7b19cdeb0e9ae8920a8 323184 libs optional libmifluz0_0.24.0-9_i386.deb
 6b47c5dbef16cc7a90f41cbc83ed98a7 89818 utils optional mifluz_0.24.0-9_i386.deb
 47a514a486c64ee1e2ac538afd039eba 550830 libdevel optional libmifluz0-dev_0.24.0-9_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
Comment: Signed and encrypted mails welcome...

iEYEARECAAYFAkJOVwcACgkQ7Ro5M7LPzdjzwgCfQgpy2hWBt/oZd3PDHUCdprOF
4ikAn2YvrMvCMsV3U/5jS27e8sjMdXNI
=tGsm
-----END PGP SIGNATURE-----



Reply to: