NetBSD Problem Report #29032

From joff@oz.embeddedx86.com  Fri Jan 21 01:15:39 2005
Return-Path: <joff@oz.embeddedx86.com>
Received: from oz.embeddedx86.com (unknown [67.40.67.44])
	by narn.netbsd.org (Postfix) with ESMTP id DDAC263B844
	for <gnats-bugs@gnats.netbsd.org>; Fri, 21 Jan 2005 01:15:37 +0000 (UTC)
Message-Id: <200501210114.j0L1E9I00883@oz.embeddedx86.com>
Date: Thu, 20 Jan 2005 18:14:09 -0700 (MST)
From: joff@embeddedARM.com
Reply-To: joff@embeddedARM.com
To: gnats-bugs@netbsd.org
Subject: missing resolv.h building toolchain on cygwin
X-Send-Pr-Version: 3.95

>Number:         29032
>Category:       toolchain
>Synopsis:       missing resolv.h building toolchain on cygwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 21 01:16:00 +0000 2005
>Closed-Date:    Sun Nov 15 01:11:44 +0000 2009
>Last-Modified:  Sun Nov 15 01:11:44 +0000 2009
>Originator:     Jesse Off
>Release:        2.99.14
>Organization:
	Technologic Systems
>Environment:
Cygwin on Win/XP
Architecture: i386
Machine: i386
>Description:
Building asn1_compile tool assumes arpa/nameser.h and resolv.h headers.

#   compile  asn1_compile/gen.lo
cc -O -I/tmp/obj/cygdrive/c/sfu/root/src/tools/compat -I/tmp/obj/cygdrive/c/sfu/root/src/tools/compat/include  -I/cygdrive/c/sfu/root/src/tools/asn1_compile/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -I.              -I/cygdrive/c/sfu/root/src/include/heimdal      -I/cygdrive/c/sfu/root/src/crypto/dist/heimdal/lib/asn1                 -I/cygdrive/c/sfu/root/src/crypto/dist/heimdal/lib/roken                -DKRB5=1                                -DHAVE_CONFIG_H -DHAVE_IPV6  -c -o gen.lo.o    /cygdrive/c/sfu/root/src/crypto/dist/heimdal/lib/asn1/gen.c
In file included from /cygdrive/c/sfu/root/src/crypto/dist/heimdal/lib/asn1/gen_locl.h:52,
	  from /cygdrive/c/sfu/root/src/crypto/dist/heimdal/lib/asn1/gen.c:34:
	  /cygdrive/c/sfu/root/src/include/heimdal/roken.h:61:26: arpa/nameser.h: No such file or directory
	  /cygdrive/c/sfu/root/src/include/heimdal/roken.h:62:20: resolv.h: No such file or directory
>How-To-Repeat:
	./build.sh -m evbarm -M /tmp/obj tools on recent Cygwin
>Fix:
	Unknown

>Release-Note:

>Audit-Trail:
From: Hiroyuki Bessho <bsh@grotto.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/29032
Date: Wed, 18 Apr 2007 08:01:33 +0900

 I could fix the problem and succeeded to build NetBSD/i386 on Cygwin
 with following patch.

 Index: tools/asn1_compile/Makefile
 ===================================================================
 RCS file: /u0/cvsupbase/cvsroot-netbsd/src/tools/asn1_compile/Makefile,v
 retrieving revision 1.4
 diff -u -r1.4 Makefile
 --- tools/asn1_compile/Makefile	8 Dec 2002 20:19:57 -0000	1.4
 +++ tools/asn1_compile/Makefile	17 Apr 2007 22:49:29 -0000
 @@ -3,4 +3,13 @@
  HOSTPROGNAME=	${_TOOL_PREFIX}asn1_compile
  HOST_SRCDIR=	lib/libasn1/asn1_compile

 +BUILD_OSTYPE!=  uname -s
 +.if ! empty(BUILD_OSTYPE:MCYGWIN*)
 +# Cygwin doesn't have arpa/nameser.h
 +_BINDDIR=${.CURDIR}/../../dist/bind
 +HOST_CPPFLAGS+=	-idirafter ${_BINDDIR}/lib/bind/include
 +HOST_CPPFLAGS+= -idirafter ${_BINDDIR}/lib/bind/port/cygwin/include
 +.endif
 +
  .include "${.CURDIR}/../Makefile.host"
 Index: tools/compile_et/Makefile
 ===================================================================
 RCS file: /u0/cvsupbase/cvsroot-netbsd/src/tools/compile_et/Makefile,v
 retrieving revision 1.5
 diff -u -r1.5 Makefile
 --- tools/compile_et/Makefile	16 Nov 2003 14:14:18 -0000	1.5
 +++ tools/compile_et/Makefile	17 Apr 2007 22:49:29 -0000
 @@ -19,6 +19,14 @@
  	${_MKTARGET_CREATE}
  	./make-print-version print_version.h

 +BUILD_OSTYPE!=  uname -s
 +.if ! empty(BUILD_OSTYPE:MCYGWIN*)
 +# Cygwin doesn't have arpa/nameser.h
 +_BINDDIR=${.CURDIR}/../../dist/bind
 +HOST_CPPFLAGS+=	-idirafter ${_BINDDIR}/lib/bind/include
 +HOST_CPPFLAGS+= -idirafter ${_BINDDIR}/lib/bind/port/cygwin/include
 +.endif
 +
  .include "${.CURDIR}/../Makefile.host"

  .PATH: ${DIST}/heimdal/lib/roken ${DIST}/heimdal/lib/vers
 Index: tools/host-mkdep/host-mkdep.in
 ===================================================================
 RCS file: /u0/cvsupbase/cvsroot-netbsd/src/tools/host-mkdep/host-mkdep.in,v
 retrieving revision 1.16
 diff -u -r1.16 host-mkdep.in
 --- tools/host-mkdep/host-mkdep.in	1 Sep 2005 21:51:11 -0000	1.16
 +++ tools/host-mkdep/host-mkdep.in	17 Apr 2007 22:49:29 -0000
 @@ -132,7 +132,7 @@
  				shift
  				;;

 -		-[IDU]|-include|-isystem)
 +		-[IDU]|-include|-isystem|-idirafter)
  				CPPFLAGS="$CPPFLAGS $1 $2"
  				shift 2
  				;;

From: Izumi Tsutsui <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/29032 CVS commit: src/tools/compat
Date: Sat, 18 Oct 2008 16:25:04 +0000 (UTC)

 Module Name:	src
 Committed By:	tsutsui
 Date:		Sat Oct 18 16:25:04 UTC 2008

 Modified Files:
 	src/tools/compat: Makefile configure.ac

 Log Message:
 Prepare dummy <resolv.h> and <arpa/nameser.h> to make asn1_compile and
 compile_et compile on systems which don't have these BIND headers like Cygwin.

 Tested by "build.sh -m i386 -U release" on CYGWIN_NT-5.1-1.5.25,
 and should close PR toolchain/29032.


 To generate a diff of this commit:
 cvs rdiff -r1.51 -r1.52 src/tools/compat/Makefile
 cvs rdiff -r1.66 -r1.67 src/tools/compat/configure.ac

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/29032 CVS commit: [netbsd-4] src/tools/compat
Date: Tue, 18 Nov 2008 19:12:57 +0000 (UTC)

 Module Name:	src
 Committed By:	snj
 Date:		Tue Nov 18 19:12:57 UTC 2008

 Modified Files:
 	src/tools/compat [netbsd-4]: Makefile configure.ac

 Log Message:
 Pull up following revision(s) (requested by tsutsui in ticket #1224):
 	tools/compat/Makefile: revision 1.52
 	tools/compat/configure.ac: revision 1.67
 Prepare dummy <resolv.h> and <arpa/nameser.h> to make asn1_compile and
 compile_et compile on systems which don't have these BIND headers like
 Cygwin.
 Tested by "build.sh -m i386 -U release" on CYGWIN_NT-5.1-1.5.25,
 and should close PR toolchain/29032.


 To generate a diff of this commit:
 cvs rdiff -r1.47.2.1 -r1.47.2.2 src/tools/compat/Makefile
 cvs rdiff -r1.60.2.1 -r1.60.2.2 src/tools/compat/configure.ac

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 04 Jan 2009 20:06:05 +0000
State-Changed-Why:
A fix has been committed to HEAD and pulled up to netbsd-4; does it work for
you?


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 15 Nov 2009 01:11:44 +0000
State-Changed-Why:
feedback timeout.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.