Subject: lib/3908: lib/libresolv/* uses parts of libc and needs thus to include
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 07/22/1997 18:07:04
>Number:         3908
>Category:       lib
>Synopsis:       lib/libresolv/* uses parts of libc and needs thus to include 
         libc/include
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 22 09:20:01 1997
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
>Release:        <NetBSD-current source date> NetBSD-current 22.07.1997
>Environment:
	
System: NetBSD di-frueauf 1.2G NetBSD 1.2G (CYBERDYNE) #13: Fri Jul 18 18:11:58 CEST 1997 root@di-frueauf:/usr/src/sys/arch/amiga/compile/CYBERDYNE amiga


>Description:
	
lib/libresolv/* uses parts of libc and needs thus to include libc/include.

>How-To-Repeat:
	
Try to compile /src/lib/libresolv on a current NetBSD system and
watch:

cc -O -DDEBUG -DLIBC_SCCS -O4 -m486 -Werror  -c /usr/src/lib/libresolv/../libc/n
et/res_query.c
/usr/src/lib/libresolv/../libc/net/res_query.c:66: namespace.h: No such file or 
directory
*** Error code 1

>Fix:
	
Dunno if this is the proper patch, but the following diff for
/src/lib/libresolv/Makefile solved it for me:

*** Makefile-orig	Tue Jul 22 17:58:21 1997
--- Makefile	Tue Jul 22 17:58:21 1997
***************
*** 2,8 ****
  #	$Id: Makefile,v 1.3 1997/07/20 22:38:45 christos Exp $
  
  LIB=resolv
! CFLAGS+=-DDEBUG -DLIBC_SCCS
  
  .PATH:	${.CURDIR}/../libc/net
  
--- 2,8 ----
  #	$Id: Makefile,v 1.3 1997/07/20 22:38:45 christos Exp $
  
  LIB=resolv
! CFLAGS+=-DDEBUG -DLIBC_SCCS -I${.CURDIR}/../libc/include
  
  .PATH:	${.CURDIR}/../libc/net
  
>Audit-Trail:
>Unformatted:
lib/libresolv/* uses parts of libc and needs thus to include libc/include