Package: gnome-pilot
Version: 2.0.12-1.3
Tags: patch

Our automated buildd log filter [1] detected a problem that will cause
your package to segfault on architectures where the size of a pointer
is greater than the size of an integer, such as ia64:

Function `crypt' implicitly converted to pointer at gpilotd.c:544
Function `crypt' implicitly converted to pointer at make-password.c:76

[1] http://people.debian.org/~dannf/check-implicit-pointer-functions

The problem is due to the fact that the Debian package invokes
"configure" without explicit --target= option and configure.in relies
on $target without first calling AC_CANONICAL_TARGET.  Because of
this, the CPP macro USE_XOPEN_SOURCE doesn't get defined and as a
result of that, the crypt() function gets declared implicitly.

The easiest fix is to do that early on in configure.in, as shown in
the attached patch (caveat: you need to re-run "autoconf" after
applying the patch to get configure updated).

Thanks,

  --david
--- gnome-pilot-2.0.12/configure.in	2005-07-12 22:15:08.000000000 -0700
+++ gnome-pilot-2.0.12-davidm/configure.in	2005-07-12 22:05:01.000000000 -0700
@@ -1,5 +1,7 @@
 AC_INIT(Makefile.am)
 
+AC_CANONICAL_TARGET
+
 dnl ******************************
 dnl Version
 dnl ******************************

Reply via email to