[Pkg-bluetooth-maintainers] Bug#434460: libbtctl: strptime() implicitly converted to pointer

dann frazier dannf at debian.org
Tue Jul 24 00:42:28 UTC 2007


Package: libbtctl
Version: 0.9.0-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.

_XOPEN_SOURCE must be defined to use strptime. Though there is a
#define for this just before the time.h include, something else is
probably causing <time.h> to be included earlier and without the
_XOPEN_SOURCE prereq (I haven't dug too deeply into this).

A solution to this is to move the _XOPEN_SOURCE definition up higher
in the source file - however, this alone turns off other prototypes
including timegm(). The following patch defines _GNU_SOURCE instead,
which enables a superset of features.

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

----- Forwarded message from Debian/IA64 non-US Build Daemon <buildd at caballero.debian.org> -----

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 successful build of libbtctl_0.9.0-1 (dist=unstable)
From: Debian/IA64 non-US Build Daemon <buildd at caballero.debian.org>
Date: Mon, 23 Jul 2007 23:16:28 +0100
To: undisclosed-recipients: ;
X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.7.23.145932
Debian-Buildd-Error: Yes

Function `strptime' implicitly converted to pointer at btobex.c:290

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

-- 
dann frazier

-------------- next part --------------
A non-text attachment was scrubbed...
Name: define-gnu-source.patch
Type: text/x-diff
Size: 558 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-bluetooth-maintainers/attachments/20070723/795846bf/attachment.patch 


More information about the Pkg-bluetooth-maintainers mailing list