Subject: pkg/34424: net/bind9 Solaris10 gcc -m64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 08/30/2006 15:35:01
>Number:         34424
>Category:       pkg
>Synopsis:       net/bind9 Solaris10 gcc -m64
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 30 15:35:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


making all in /pkg/obj/net/bind9/work/bind-9.3.2/lib/bind/dst
/bin/bash /pkg/obj/net/bind9/work/bind-9.3.2/lib/bind/libtool --mode=compile gcc  -O -I/usr/include -I/usr/pkg/include  -I/pkg/obj/net/bind9/work/bind-9.3.2/lib/bind -I/pkg/obj/net/bind9/work/bind-9.3.2/lib/bind/make/../port/solaris/include -I.. -I./../include    -D_REENTRANT -DCYLINK_DSS -DHMAC_MD5 -DUSE_MD5 -DDNSSAFE    -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings  -c dst_api.c
 gcc -O -I/pkg/obj/net/bind9/work/.buildlink/include -I/pkg/obj/net/bind9/work/bind-9.3.2/lib/bind -I/pkg/obj/net/bind9/work/bind-9.3.2/lib/bind/make/../port/solaris/include -I.. -I./../include -D_REENTRANT -DCYLINK_DSS -DHMAC_MD5 -DUSE_MD5 -DDNSSAFE -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -c dst_api.c  -fPIC -DPIC -o .libs/dst_api.o
In file included from ./../include/arpa/nameser.h:573,
                 from dst_api.c:56:
./../include/arpa/nameser_compat.h:85: error: syntax error before string constant
*** Error code 1

Stop.



>How-To-Repeat:


bmake


>Fix:



maybe the patch:
--- lib/bind/include/arpa/nameser_compat.h.orig Thu Jul  1 06:43:41 2004
+++ lib/bind/include/arpa/nameser_compat.h      Wed Aug 30 16:25:11 2006
@@ -53,7 +53,7 @@
 
 #if defined(vax) || defined(ns32000) || defined(sun386) || defined(i386) || \
     defined(MIPSEL) || defined(_MIPSEL) || defined(BIT_ZERO_ON_RIGHT) || \
-    defined(__alpha__) || defined(__alpha) || \
+    defined(__alpha__) || defined(__alpha) || defined(__x86_64__) || \
     (defined(__Lynx__) && defined(__x86__))
 #define BYTE_ORDER     LITTLE_ENDIAN
 #endif