Package: ipgrab
Version: 0.9.10-1
Severity: normal
Tags: patch

Hi,

as the Ubuntu buildds check for implicit pointer conversion during the
build, ipgrab failed to build on 64 bit architectures (AMD64 and IA64)
in Ubuntu:

,----[ 
http://launchpadlibrarian.net/48792489/buildlog_ubuntu-maverick-amd64.ipgrab_0.9.10-1_FAILEDTOBUILD.txt.gz
 ]-
| parse_cl.c: In function 'free_args':
| parse_cl.c:163: warning: implicit declaration of function 'my_free'
| parse_cl.c: In function 'Cmdline':
| parse_cl.c:206: warning: implicit declaration of function 'my_malloc'
| parse_cl.c:206: warning: cast to pointer from integer of different size
| Function `my_malloc' implicitly converted to pointer at parse_cl.c:206
`----
And at the end of the build log:
,----
| Function `my_malloc' implicitly converted to pointer at parse_cl.c:206
| 
| Our automated build log filter detected the problem(s) above that will
| likely 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.
| 
| Since use of implicitly converted pointers is always fatal to the application
| on ia64, they are errors.  Please correct them for your next upload.
| 
| More information can be found at:
|     http://wiki.debian.org/ImplicitPointerConversions
`----

Attached is a patch to add the missing include and fix it.

Michael

Index: ipgrab-0.9.10/src/parse_cl.c
===================================================================
--- ipgrab-0.9.10.orig/src/parse_cl.c   2010-06-01 11:13:40.000000000 +0200
+++ ipgrab-0.9.10/src/parse_cl.c        2010-06-01 11:13:56.000000000 +0200
@@ -20,6 +20,7 @@
 #include <stdlib.h>
 #include <getopt.h>
 #include "parse_cl.h"
+#include "utilities.h"
 
 /*----------------------------------------------------------------------------
 **



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to