GNOME Bugzilla – Bug 554042
OpenSolaris: configure fail on checking 'unsigned long is at least as big as guint32'
Last modified: 2018-06-29 22:10:39 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
Created attachment 119466 [details] [review] patch for bug #554042 This patch is very likely patch for bug #539942.
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 :-)
(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.
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.
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'
Committed as r17653, thanks a lot!
*** Bug 539942 has been marked as a duplicate of this bug. ***
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.