Package: vflib3
Version: 3.6.14-1
Severity: important
Tags: patch
Usertags: implicit-pointer-conversion

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

This is often due to a missing function prototype definition.
For more information, see [2].

  Function `strdup' implicitly converted to pointer at vflmkvfl.c:147
  Function `strdup' implicitly converted to pointer at vflmktex.c:137
  Function `strdup' implicitly converted to pointer at vflmkgf.c:119
  Function `strdup' implicitly converted to pointer at vflmkpk.c:119
  Function `strdup' implicitly converted to pointer at vflmktfm.c:117
  Function `strdup' implicitly converted to pointer at vflmkvf.c:134
  Function `strdup' implicitly converted to pointer at vflmkt1.c:183
  Function `strdup' implicitly converted to pointer at vflmkpcf.c:112
  Function `strdup' implicitly converted to pointer at vflmkttf.c:115
  Function `strdup' implicitly converted to pointer at vflmkekan.c:112
  Function `strdup' implicitly converted to pointer at vflmkajt.c:165

The strdup prototype is not available from string.h when compiling
with -ansi. You can add -D_GNU_SOURCE to the CFLAGS to re-enable it.

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

diff -urpN vflib3-3.6.14.orig/configure vflib3-3.6.14/configure
--- vflib3-3.6.14.orig/configure        2005-04-07 18:55:20.000000000 -0600
+++ vflib3-3.6.14/configure     2008-02-06 19:26:24.000000000 -0700
@@ -1604,7 +1604,7 @@ fi
 
 
 if test "x$CC" = xgcc; then
-       XX_CFLAGS="-g -Wall -pedantic -ansi"
+       XX_CFLAGS="-g -Wall -pedantic -ansi -D_GNU_SOURCE"
 else
                XX_CFLAGS=
 fi



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to