Package: gopher
Version: 3.0.12
Severity: important
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 and amd64.

Though the prototype for get_current_dir_name is in unistd.h, it isn't
defined unless _GNU_SOURCE is.  However, definine _GNU_SOURCE breaks
the build in other ways.

This works around the problem by just copying the prototype from
unistd.h; however, you may want to just use getcwd() instead.

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

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

Subject: Log for successful build of gopher_3.0.12 (dist=unstable)
From: Debian/IA64 non-US Build Daemon <[EMAIL PROTECTED]>
Date: Tue, 09 May 2006 16:55:53 +0100
To: undisclosed-recipients: ;
X-PMX-Version: 5.1.2.240295, Antispam-Engine: 2.3.0.1, Antispam-Data: 
2006.5.9.83111
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ldl.fc.hp.com
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ldl.lart
X-Spam-Level: 
X-Spam-Status: No, score=-1.6 required=3.5 tests=AWL,BAYES_00,UNDISC_RECIPS 
        autolearn=no version=3.0.3
Debian-Buildd-Error: Yes

Function `get_current_dir_name' implicitly converted to pointer at 
download.c:259

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

--- gopher-3.0.12/gopher/download.c~    2006-05-09 09:37:02.000000000 -0600
+++ gopher-3.0.12/gopher/download.c     2006-05-09 10:38:53.000000000 -0600
@@ -144,6 +144,8 @@
 #  include <unistd.h>
 #endif /* HAVE_UNISTD_H */
 
+char *get_current_dir_name(void);
+
 #ifdef HAVE_SYS_PARAM_H
 #  include <sys/param.h>
 #endif

-- 
dann frazier | HP Open Source and Linux Organization


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

Reply via email to