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 554042 - OpenSolaris: configure fail on checking 'unsigned long is at least as big as guint32'
OpenSolaris: configure fail on checking 'unsigned long is at least as big as ...
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: General
git-master
Other opensolaris
: Normal major
: ---
Assigned To: Andreas Köhler
Andreas Köhler
: 539942 (view as bug list)
Depends on:
Blocks: backport
 
 
Reported: 2008-09-27 07:30 UTC by Halton Huo
Modified: 2018-06-29 22:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for bug #554042 (709 bytes, patch)
2008-09-27 08:23 UTC, Halton Huo
none Details | Review
patch for bug #554042 (1.23 KB, patch)
2008-10-08 02:01 UTC, Halton Huo
committed Details | Review

Description Halton Huo 2008-09-27 07:30:16 UTC
Build trunk r17600 under OpenSolaris, configure fails on

checking if unsigned long is at least as big as guint32... no
configure: error: cannot continue
./configure: line 27001: exit: size: numeric argument required
./configure: line 27001: exit: size: numeric argument required

I'm compile the following test case 

$cat uslong.c 
#include <glib.h>
  int main(int argc, char *argv[]) {
    g_warning ("%d", sizeof(unsigned long));
    g_warning ("%d", sizeof(guint32));
    return(!(sizeof(unsigned long) >= sizeof(guint32)));
  }

$cc `pkg-config --cflags --libs glib-2.0` uslong.c && ./a.out ; echo $?

** (process:1055): WARNING **: 4

** (process:1055): WARNING **: 4
0
Comment 1 Halton Huo 2008-09-27 08:23:09 UTC
Created attachment 119466 [details] [review]
patch for  bug #554042

This patch is very likely patch for bug #539942.
Comment 2 Andreas Köhler 2008-09-27 13:18:42 UTC
I am sure that this patch is good, but does it solve all similar problems in configure.in?  I just ask because I am already amused that this bug pops up :-)
Comment 3 Halton Huo 2008-10-07 06:34:53 UTC
(In reply to comment #2)
> I am sure that this patch is good, but does it solve all similar problems in
> configure.in?  I just ask because I am already amused that this bug pops up :-)
> 
At least ./configure passes under OpenSolaris box.
Comment 4 Halton Huo 2008-10-08 01:58:56 UTC
When I go through log, find
 checking if guile long_long is at least as big as gint64... no

Then I wrote another case
$cat longlong.c
/*
 cc `guile-config link` `pkg-config --cflags --libs glib-2.0` longlong.c
*/
#include <glib.h>
#include <libguile/__scm.h>
  int main(int argc, char *argv[]) {
    g_warning ("%d", sizeof(long_long));
    g_warning ("%d", sizeof(guint64));
    return(!(sizeof(long_long) >= sizeof(guint64)));
  }
$./a.out && echo $?

** (process:2713): WARNING **: 8

** (process:2713): WARNING **: 8
0

So this must be also wrong for checking long_long is at least as big as gint64

Will offer a updated patch later.
Comment 5 Halton Huo 2008-10-08 02:01:15 UTC
Created attachment 120173 [details] [review]
patch for bug #554042

This is new patch including fix checking 'unsigned long is at least as big as guint32' and 'guile long_long is at least as big as gint64'
Comment 6 Christian Stimming 2008-10-25 20:00:14 UTC
Committed as r17653, thanks a lot!
Comment 7 Christian Stimming 2008-10-25 20:00:57 UTC
*** Bug 539942 has been marked as a duplicate of this bug. ***
Comment 8 John Ralls 2018-06-29 22:10:39 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=554042. Please update any external references or bookmarks.