Package: lavaps Version: 2.7-3 Severity: serious Tags: patch When building 'lavaps' on amd64/unstable, I get the following error:
from /usr/include/libgnomeui-2.0/gnome.h:5, from gtk_blob.cc:36: gtk_blob.cc:1062: error: expected primary-expression before ')' token gtk_blob.cc:1066: error: expected primary-expression before ')' token make[4]: *** [gtk_blob.o] Error 1 make[4]: Leaving directory `/lavaps-2.7/src' This is because the dgettext test in the configure script fails because the test program casts a pointer to an int which causes gcc to fail with a 'cast from void* to int loses precision' error. With the attached patch 'lavaps' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/lavaps-2.7/acinclude.m4 ./acinclude.m4 --- ../tmp-orig/lavaps-2.7/acinclude.m4 2004-12-25 02:34:41.000000000 +0000 +++ ./acinclude.m4 2005-08-24 15:09:22.000000000 +0000 @@ -1556,7 +1556,7 @@ ], [])[extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); -return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], +return (long) gettext ("")]ifelse([$2], [need-ngettext], [ + (long) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], gt_cv_func_gnugettext_libc=yes, gt_cv_func_gnugettext_libc=no)]) @@ -1592,7 +1592,7 @@ #endif const char *_nl_expand_alias ();], [bindtextdomain ("", ""); -return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], +return (long) gettext ("")]ifelse([$2], [need-ngettext], [ + (long) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], gt_cv_func_gnugettext_libintl=yes, gt_cv_func_gnugettext_libintl=no) dnl Now see whether libintl exists and depends on libiconv. @@ -1613,7 +1613,7 @@ #endif const char *_nl_expand_alias ();], [bindtextdomain ("", ""); -return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], +return (long) gettext ("")]ifelse([$2], [need-ngettext], [ + (long) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" gt_cv_func_gnugettext_libintl=yes @@ -2077,7 +2077,7 @@ [AC_TRY_LINK([ #include <libintl.h> ], - [return (int) dgettext ("","")], + [return (long) dgettext ("","")], gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no) ]) diff -urN ../tmp-orig/lavaps-2.7/configure ./configure --- ../tmp-orig/lavaps-2.7/configure 2004-12-25 02:37:07.000000000 +0000 +++ ./configure 2005-08-24 15:10:24.000000000 +0000 @@ -7427,7 +7427,7 @@ int main () { -return (int) dgettext ("","") +return (long) dgettext ("","") ; return 0; } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]