Package: gnuserv
Version: 3.12.7-2
Severity: serious
Tags: patch

When building 'gnuserv' on amd64/unstable,
I get the following error:

gcc -c -I. -I. -DHAVE_CONFIG_H -I -g -O2 gnuclient.c
In file included from gnuclient.c:61:
./sysfile.h:395: error: conflicting types for 'strerror'
/usr/include/string.h:256: error: previous declaration of 'strerror' was here
make[1]: *** [gnuclient.o] Error 1
make[1]: Leaving directory `/gnuserv-3.12.7'
make: *** [build-stamp] Error 2

With the attached patch 'gnuserv' can be compiled on unstable.

The patch removes the problematic declaration of strerror from sysfile.h.
The strerror function does not seem to be used anywhere in the gnuserv code.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gnuserv-3.12.7/sysfile.h ./sysfile.h
--- ../tmp-orig/gnuserv-3.12.7/sysfile.h        2004-10-19 08:51:09.000000000 
+0000
+++ ./sysfile.h 2006-04-18 08:24:32.000000000 +0000
@@ -387,14 +387,6 @@
 int dup2 (int oldd, int newd);
 #endif
 
-#ifndef HAVE_STRERROR
-/* X11R6 defines strerror as a macro */
-# ifdef strerror
-# undef strerror
-# endif
-const char *strerror (int);
-#endif
-
 
 
 /* 


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

Reply via email to