[pkg-boinc-devel] compile error on amd64
Frank S. Thomas
frank at thomas-alfeld.de
Tue Nov 29 23:51:04 UTC 2005
On Tuesday 29 November 2005 09:27, Julio Karl Borreguero Witt wrote:
> i saw a similar thread before, which obviously remains unresolved.
>
> i got boinc via cvs, version 5.2.12, the latest until now [200511290926]
>
> shmem.C: In function 'int attach_shmem(key_t, void**)':
> shmem.C:132: error: cast from 'void*' to 'int' loses precision
>
> what to do ?
You could apply the following patch:
--- boinc-4.71.orig/lib/shmem.C
+++ boinc-4.71/lib/shmem.C
@@ -128,7 +128,7 @@
return ERR_SHMGET;
}
p = shmat(id, 0, 0);
- if ((int)p == -1) {
+ if ((long)p == -1) {
return ERR_SHMAT;
}
*pp = p;
I've already reported this to the upstream developers, but they didn't fixed
it yet.
- Frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-boinc-devel/attachments/20051130/aab8e2c5/attachment.pgp
More information about the pkg-boinc-devel
mailing list