Package: stage
Version: 2.0.3-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].

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

The strdup() prototype is only defined by string.h if _GNU_SOURCE is
defined. The attached patch fixes the issue for the Debian build, but
upstream should probably be notified so that it can be fixed more
generally.

----- Forwarded message from Debian/IA64 non-US Build Daemon <[EMAIL 
PROTECTED]> -----

X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on ldl.fc.hp.com
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 required=3.5 tests=AWL,BAYES_00,UNDISC_RECIPS 
        autolearn=disabled version=3.1.7-deb
X-Virus-Scanned: Debian amavisd-new at ldl.fc.hp.com
Subject: Log for failed build of stage_2.0.3-1 (dist=unstable)
From: Debian/IA64 non-US Build Daemon <[EMAIL PROTECTED]>
Date: Sat, 01 Sep 2007 05:37:01 +0100
To: undisclosed-recipients: ;
X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 
2007.8.31.210724
Debian-Buildd-Error: Yes

Function `strdup' implicitly converted to pointer at gui_menus.c:716

----- End forwarded message -----

-- 
dann frazier

--- stage-2.0.3/debian/rules.orig	2007-09-04 17:59:56.000000000 -0600
+++ stage-2.0.3/debian/rules	2007-09-04 17:56:26.000000000 -0600
@@ -16,7 +16,7 @@
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -D_GNU_SOURCE
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -O0

Reply via email to