Package: libhttpfetcher1
Version: 1.0.1-1.1
Severity: grave
Tags: patch
Justification: renders package unusable


The source for libhttpfetcher1 declares 'extern int errno' directly,
instead of using errno.h, which causes all programs using the library to fail 
miserably on start on systems with a newer glibc, for thread reasons.

Enclosed is a simple patch to fix this problem:

diff -u http_fetcher-1.0.1/src/http_fetcher.c 
http_fetcher-1.0.1-fixed/src/http_fetcher.c
--- http_fetcher-1.0.1/src/http_fetcher.c       2001-07-30 14:47:15.000000000 
-0400
+++ http_fetcher-1.0.1-fixed/src/http_fetcher.c 2005-01-15 16:07:10.000000000 
-0500
@@ -25,6 +25,7 @@
 #include <sys/types.h>
 #include <sys/time.h>
 #include "http_fetcher.h"
+#include <errno.h>

 /* Globals */
 int timeout = DEFAULT_READ_TIMEOUT;
@@ -457,7 +458,6 @@
         */
 const char *http_strerror()
        {
-       extern int errno;
        extern int *sys_errlist[];

        if(errorSource == ERRNO)


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libhttpfetcher1 depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information


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

Reply via email to