Your message dated Sun, 16 Jan 2005 08:32:13 -0500
with message-id <[EMAIL PROTECTED]>
and subject line Bug#287450: fixed in librudiments0 0.27-3
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; 27 Dec 2004 20:11:05 +0000
>From [EMAIL PROTECTED] Mon Dec 27 12:11:05 2004
Return-path: <[EMAIL PROTECTED]>
Received: from c156115.adsl.hansenet.de (localhost.localdomain)
[213.39.156.115]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1Cj1Cr-0002jG-00; Mon, 27 Dec 2004 12:11:05 -0800
Received: from aj by localhost.localdomain with local (Exim 4.34)
id 1Cj1Hy-0000BT-Fj; Mon, 27 Dec 2004 21:16:22 +0100
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: librudiments0: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses
precision
Message-Id: <[EMAIL PROTECTED]>
Date: Mon, 27 Dec 2004 21:16:22 +0100
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(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_2004_03_25
X-Spam-Level:
Package: librudiments0
Severity: normal
Tags: patch
When building 'librudiments0' on amd64 with gcc-4.0,
I get the following error:
g++ -Wall -pipe -D_REENTRANT -I../ -I../include -c sharedmemory.C -fPIC -DPIC
-o .libs/sharedmemory.o
sharedmemory.C: In member function 'bool sharedmemory::create(key_t, size_t,
mode_t)':
sharedmemory.C:101: error: cast from 'void*' to 'int' loses precision
sharedmemory.C: In member function 'bool sharedmemory::attach(key_t)':
sharedmemory.C:133: error: cast from 'void*' to 'int' loses precision
sharedmemory.C: In member function 'bool sharedmemory::createOrAttach(key_t,
size_t, mode_t)':
sharedmemory.C:147: error: cast from 'void*' to 'int' loses precision
sharedmemory.C:160: error: cast from 'void*' to 'int' loses precision
make[2]: *** [sharedmemory.lo] Error 1
make[2]: Leaving directory `/librudiments0-0.27/src'
With the attached patch 'librudiments0' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/librudiments0-0.27/src/sharedmemory.C ./src/sharedmemory.C
--- ../tmp-orig/librudiments0-0.27/src/sharedmemory.C 2004-06-19
18:49:19.000000000 +0200
+++ ./src/sharedmemory.C 2004-12-27 21:04:37.910092104 +0100
@@ -98,7 +98,7 @@
// attach to the segment, remove the
// segment and return 0 on failure
shmptr=shmat(shmid,0,0);
- if ((int)shmptr==-1) {
+ if ((long)shmptr==-1) {
forceRemove();
return false;
}
@@ -130,7 +130,7 @@
// to see if it's not -1, but allow that it could very well be less
// than -1 and still be valid.
return ((shmid=shmget(key,0,0))>-1 &&
- (int)(shmptr=shmat(shmid,0,0))!=-1);
+ (long)(shmptr=shmat(shmid,0,0))!=-1);
}
bool sharedmemory::createOrAttach(key_t key, size_t size, mode_t permissions) {
@@ -144,7 +144,7 @@
// attach to the segment, remove the
// segment and return 0 on failure
shmptr=shmat(shmid,0,0);
- if ((int)shmptr==-1) {
+ if ((long)shmptr==-1) {
forceRemove();
return false;
}
@@ -157,7 +157,7 @@
// attach to the segment, return 1 on success and 0 on failure
shmptr=shmat(shmid,0,0);
- return ((int)shmptr!=-1);
+ return ((long)shmptr!=-1);
}
---------------------------------------
Received: (at 287450-close) by bugs.debian.org; 16 Jan 2005 13:35:35 +0000
>From [EMAIL PROTECTED] Sun Jan 16 05:35:35 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1CqAZ5-0007KC-00; Sun, 16 Jan 2005 05:35:35 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
id 1CqAVp-0000aK-00; Sun, 16 Jan 2005 08:32:13 -0500
From: Matthias Klose <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#287450: fixed in librudiments0 0.27-3
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Sun, 16 Jan 2005 08:32:13 -0500
Delivered-To: [EMAIL PROTECTED]
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:
Source: librudiments0
Source-Version: 0.27-3
We believe that the bug you reported is fixed in the latest version of
librudiments0, which is due to be installed in the Debian FTP archive:
librudiments0-dev_0.27-3_i386.deb
to pool/main/libr/librudiments0/librudiments0-dev_0.27-3_i386.deb
librudiments0-doc_0.27-3_all.deb
to pool/main/libr/librudiments0/librudiments0-doc_0.27-3_all.deb
librudiments0_0.27-3.diff.gz
to pool/main/libr/librudiments0/librudiments0_0.27-3.diff.gz
librudiments0_0.27-3.dsc
to pool/main/libr/librudiments0/librudiments0_0.27-3.dsc
librudiments0c102_0.27-3_i386.deb
to pool/main/libr/librudiments0/librudiments0c102_0.27-3_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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <[EMAIL PROTECTED]> (supplier of updated librudiments0 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 [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sun, 16 Jan 2005 14:23:31 +0100
Source: librudiments0
Binary: librudiments0c102 librudiments0-doc librudiments0-dev
Architecture: source all i386
Version: 0.27-3
Distribution: unstable
Urgency: low
Maintainer: Matthias Klose <[EMAIL PROTECTED]>
Changed-By: Matthias Klose <[EMAIL PROTECTED]>
Description:
librudiments0-dev - C++ class library providing base classes
librudiments0-doc - C++ class library providing base classes
librudiments0c102 - C++ class library providing base classes
Closes: 287450
Changes:
librudiments0 (0.27-3) unstable; urgency=low
.
* Fix FTBFS on amd64 with gcc-4.0 (closes: #287450).
Files:
c2461f9a62ded5c77995a07d633d1e96 636 libs optional librudiments0_0.27-3.dsc
2b5fb2c2ef78089f2f17199585c5e1d4 5642 libs optional
librudiments0_0.27-3.diff.gz
0dc6612b2d7683e52b838ca6347e7844 90832 doc optional
librudiments0-doc_0.27-3_all.deb
a8949169a4316c0df11550db97bb1f85 106132 libs optional
librudiments0c102_0.27-3_i386.deb
bef1dd016f1d98b1671e18053d19a8b5 174468 libdevel optional
librudiments0-dev_0.27-3_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFB6mtwStlRaw+TLJwRAgIRAJ9fRt6schbrU8MsAGCFDr9eeTTBXQCeIqTp
hBqkaMJCKkenymUJcbnzvhs=
=/8pN
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]