After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 302600 - [PATCH]64 bit compilation errors
[PATCH]64 bit compilation errors
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: General
git-master
Other Linux
: Normal blocker
: ---
Assigned To: Chris Lyttle
Chris Lyttle
Depends on:
Blocks:
 
 
Reported: 2005-05-01 04:24 UTC by Dan Widyono
Modified: 2018-06-29 20:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
allows compilation on 64-bit systems (16.68 KB, patch)
2005-05-01 04:41 UTC, Dan Widyono
none Details | Review
Update to previous attachment (12.56 KB, patch)
2005-08-08 21:49 UTC, Frederic Leroy
committed Details | Review

Description Dan Widyono 2005-05-01 04:24:42 UTC
Version details: g2 branch
Distribution/Version: RHEL4 clone

try to compile from CVS g2 branch on a 64-bit system, it should compile, it
bails on lots of lines for three different reasons, patch included.
Comment 1 Dan Widyono 2005-05-01 04:25:35 UTC
patch *to be included RSN*, that should have said.  I don't know how many more
of these monsters will rear their ugly heads, and I'm still fixing them one by one.
Comment 2 Dan Widyono 2005-05-01 04:41:13 UTC
Created attachment 45891 [details] [review]
allows compilation on 64-bit systems

3 classes "fixed":
1. pointer to int and vice-versa conversion wrapped with GPOINTER_TO_INT et al.

2. printf format string "%lld" --> "%" G_GINT64_FORMAT
3. maximum 64-bit signed value from 10000000LL * MAX_LONG --> 
    G_GINT64_CONSTANT(-2^31) * G_GINT64_CONSTANT(2^31)
(thanks to warlord for these ideas)

compiles, runs
Comment 3 Frederic Leroy 2005-08-08 21:49:05 UTC
Created attachment 50419 [details] [review]
Update to previous attachment

Thanks to you, I can now use gnucash
This is an update of the previous attachment made on yesterday g2 cvs 
Work on linux gentoo ppc64
Comment 4 Christian Kirbach 2005-08-09 14:01:31 UTC
thanks for sending in.
Confirming so that developers will have a look at it.
Comment 5 Derek Atkins 2005-08-15 21:40:24 UTC
Added "PATCH" keyword so it will show up.
Comment 6 David Hampton 2005-08-16 00:14:26 UTC
Thanks for the patches.
Comment 7 John Ralls 2018-06-29 20:51:38 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=302600. Please update any external references or bookmarks.