From doug@zoot.simplenet.net Mon Jul 26 16:58:13 1999
Return-Path: <doug@zoot.simplenet.net>
Received: from zoot.simplenet.net (zoot.simplenet.net [209.132.9.66])
	by hub.freebsd.org (Postfix) with ESMTP id 166C11512F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jul 1999 16:58:07 -0700 (PDT)
	(envelope-from doug@zoot.simplenet.net)
Received: (from root@localhost)
	by zoot.simplenet.net (8.9.3/8.9.3) id QAA28499;
	Mon, 26 Jul 1999 16:56:58 -0700 (PDT)
	(envelope-from doug)
Message-Id: <199907262356.QAA28499@zoot.simplenet.net>
Date: Mon, 26 Jul 1999 16:56:58 -0700 (PDT)
From: Doug@gorean.org
Sender: doug@zoot.simplenet.net
Reply-To: Doug@gorean.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: doscmd build depends on X
X-Send-Pr-Version: 3.2

>Number:         12825
>Category:       bin
>Synopsis:       doscmd build depends on X
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sheldonh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 26 17:00:01 PDT 1999
>Closed-Date:    Fri Oct 1 05:02:03 PDT 1999
>Last-Modified:  Fri Oct  1 05:02:46 PDT 1999
>Originator:     Doug
>Release:        FreeBSD 4.0-19990708-CURRENT i386
>Organization:
AAAG
>Environment:

	Building most recent -current sources on a -current system

>Description:

	A make world build stops in the doscmd directory when there
is no X (specifically no X libs/headers) installed on the system.

>How-To-Repeat:

	cd /usr/src/usr.bin/doscmd && make

>Fix:
	
	Unknown


>Release-Note:
>Audit-Trail:

From: Tim Vanderhoek <vanderh@ecf.utoronto.ca>
To: Doug@gorean.org
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/12825: doscmd build depends on X
Date: Mon, 26 Jul 1999 21:18:27 -0400

 On Mon, Jul 26, 1999 at 04:56:58PM -0700, Doug@gorean.org wrote:
 > 
 > 	A make world build stops in the doscmd directory when there
 > is no X (specifically no X libs/headers) installed on the system.
 
 Um, are you sure?  Do you have some left-over /usr/X11R6 directories?
 When did it start doing this?
 
 
 -- 
 This is my .signature which gets appended to the end of my messages.
 

From: Doug <Doug@gorean.org>
To: Tim Vanderhoek <vanderh@ecf.utoronto.ca>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/12825: doscmd build depends on X
Date: Mon, 26 Jul 1999 22:36:37 -0700

 Tim Vanderhoek wrote:
 > 
 > On Mon, Jul 26, 1999 at 04:56:58PM -0700, Doug@gorean.org wrote:
 > >
 > >       A make world build stops in the doscmd directory when there
 > > is no X (specifically no X libs/headers) installed on the system.
 > 
 > Um, are you sure?  Do you have some left-over /usr/X11R6 directories?
 
 	Hrrmmm... maybe that's the problem. I had installed X, then realized it
 was the 3.3.3.1 version still and cd 'cd /usr/X11R6 && rm -r *'. I'll try
 again with no X directory at all. 
 
 Sorry for the confusion,
 
 Doug
 
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Tue Jul 27 02:51:18 PDT 1999 
State-Changed-Why:  
This one's bitten me before. Can you confirm that it was pilot error and 
not some other problem? 

From: Doug <Doug@gorean.org>
To: sheldonh@FreeBSD.org
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/12825: doscmd build depends on X
Date: Tue, 27 Jul 1999 12:18:40 -0700 (PDT)

 On Tue, 27 Jul 1999 sheldonh@FreeBSD.org wrote:
 
 > State-Changed-From-To: open->feedback
 > This one's bitten me before. Can you confirm that it was pilot error and
 > not some other problem?
 
 	I don't see how it could be pilot error to have an empty
 /usr/X11R6 directory. :) In any case, a quick look at the Makefile for
 doscmd shows this:
 
 .if exists(${X11BASE}/include/X11/X.h) && exists(${XLIBDIR}/libX11.a)
 CFLAGS+= -I. -I${X11BASE}/include -DDISASSEMBLER
 LDADD= -L${XLIBDIR} -lX11
 DPADD= ${XLIBDIR}/libX11.a
 .else
 CFLAGS+= -I. -DDISASSEMBLER -DNO_X
 .endif
 
 When it failed for me the error was directly related to lX11, so I'd say
 that this is a genuine bug given that I didn't have either one of those
 files (although I did have an empty /usr/X11R6 directory) and yet make
 tried to link against libX11 anyway. 
 
 	I vaguely remember having some odd problems with the .if exists
 test a while back when I was working on a port, but I'm far from a make
 expert, so I couldn't really say where to look for this. 
 
 Doug
 
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Doug <Doug@gorean.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/12825: doscmd build depends on X 
Date: Tue, 27 Jul 1999 21:51:04 +0200

 On Tue, 27 Jul 1999 12:18:40 MST, Doug wrote:
 
 > 	I don't see how it could be pilot error to have an empty
 > /usr/X11R6 directory. :) In any case, a quick look at the Makefile for
 > doscmd shows this:
 
 I'll create an empty /usr/X11R6 before my next buildworld and see what
 happens. It'll have to wait 'til then unless you can provide error
 output.
 
 Ciao,
 Sheldon.
 
Responsible-Changed-From-To: freebsd-bugs->sheldonh 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Thu Jul 29 12:10:53 PDT 1999 
Responsible-Changed-Why:  
I'll be looking into this soon if Doug doesn't provide feedback. 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Doug@gorean.org
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/12825: doscmd build depends on X 
Date: Thu, 12 Aug 1999 04:38:20 +0200

 On Mon, 26 Jul 1999 16:56:58 MST, Doug@gorean.org wrote:
 
 >  When it failed for me the error was directly related to lX11, so I'd say
 >  that this is a genuine bug given that I didn't have either one of those
 >  files (although I did have an empty /usr/X11R6 directory) and yet make
 >  tried to link against libX11 anyway. 
 
 Okay, I've tried this with an empty /usr/X11R6 and the build behaves as
 expected, in that everything is compiled with -DNO_X . I'm out of ideas,
 unless you can send the exact error message(s) you got?
 
 Ciao,
 Sheldon.
 

From: Doug <Doug@gorean.org>
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/12825: doscmd build depends on X
Date: Wed, 11 Aug 1999 20:06:57 -0700

 Sheldon Hearn wrote:
 > 
 > On Mon, 26 Jul 1999 16:56:58 MST, Doug@gorean.org wrote:
 > 
 > >  When it failed for me the error was directly related to lX11, so I'd say
 > >  that this is a genuine bug given that I didn't have either one of those
 > >  files (although I did have an empty /usr/X11R6 directory) and yet make
 > >  tried to link against libX11 anyway.
 > 
 > Okay, I've tried this with an empty /usr/X11R6 and the build behaves as
 > expected, in that everything is compiled with -DNO_X . I'm out of ideas,
 > unless you can send the exact error message(s) you got?
 
  2# cd /usr
  3# mv X11R6 X11R6-real
  4# mkdir X11R6
  5# cd src/usr.bin/doscmd
  6# make
 make: don't know how to make /usr/X11R6/include/X11/Xlib.h. Stop
 
 	That's with -current cvsup'ed about 2 hours ago. When I ran into this
 problem during the world build originally I got the same error message,
 this is just the fastest way to reproduce it. 
 
 Doug
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Doug <Doug@gorean.org>
Cc:  
Subject: Re: bin/12825: doscmd build depends on X 
Date: Thu, 12 Aug 1999 07:25:50 +0200

 Hi Doug,
 
 Okay, I seem to have the same .mk files as you do. I've just blown away
 obj, cleaned out crufty objects from my source tree and am conducting a
 buildworld, in the hopes that it'll trigger the problem you see.
 
 If I can't see it, you'll probably want to ask in a public forum whether
 anyone else sees this.
 
 Ciao,
 Sheldon.
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Doug <Doug@gorean.org>
Cc:  
Subject: Re: bin/12825: doscmd build depends on X 
Date: Thu, 12 Aug 1999 10:18:30 +0200

 On Thu, 12 Aug 1999 07:25:50 +0200, Sheldon Hearn wrote:
 
 > If I can't see it, you'll probably want to ask in a public forum whether
 > anyone else sees this.
 
 Just thought I'd drop you a quick note to let you know that the
 buildworld went through without a hickup.
 
 Let me know if you find out what's causing your problem.
 
 Later,
 Sheldon.
 
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Fri Oct 1 05:02:03 PDT 1999 
State-Changed-Why:  
I can't duplicate this with CURRENT, nor with STABLE, so I'm closing 
this until more evidence is uncovered. :-( 
>Unformatted:
