Package: xorg-x11
Version: 6.8.2.dfsg.1-5
Severity: important
Tags: patch

xc/lib/xtrans/Xtranssock.c has an unguarded occurance of MAXHOSTNAMELEN,
making the build fail on hurd-i386:

gcc -c -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes               
          -Wmissing-prototypes -Wmissing-declarations                    
-Wredundant-decls -Wnested-externs -Wundef    -I../..
-I../../exports/include  
-D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE
-D_XOPEN_SOURCE                               -D_BSD_SOURCE
-D_SVID_SOURCE 
-DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS  -D_REENTRANT -DXUSE_MTSAFE_API   
-DMALLOC_0_RETURNS_NULL  -DHAS_SNPRINTF -DLIBX11                   
-DPOSTLOCALELIBDIR=\"lib\"      -O2 -fno-strict-aliasing -g
-I../../lib/xtrans
-DUNIXCONN -DTCPCONN -DHAS_STICKY_DIR_BIT -DHAS_FCHOWN -DIPv6
-DBSD44SOCKETS
-DX11_t -DTRANS_CLIENT -DFAIL_HARD  x11trans.c -o unshared/x11trans.o
In file included from x11trans.c:80:
../../lib/xtrans/Xtranssock.c:1378: error: 'MAXHOSTNAMELEN' undeclared
here (not
in a function)
make[3]: *** [x11trans.o] Error 1

This has been filed upstream as #4256 and a patch is attached.


Michael

-- 
Michael Banck
Debian Developer
[EMAIL PROTECTED]
http://www.advogato.org/person/mbanck/diary.html
--- xc/lib/xtrans/Xtranssock.c.orig     2005-08-26 15:35:03.000000000 +0200
+++ xc/lib/xtrans/Xtranssock.c  2005-08-26 15:35:32.000000000 +0200
@@ -275,6 +275,10 @@
 
 #define PORTBUFSIZE    32
 
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 255
+#endif
+
 /*
  * This provides compatibility for apps linked against system libraries
  * that don't have IPv6 support.

Reply via email to