Subject: Re: build problem
To: None <tech-x11@netbsd.org>
From: Ron Roskens <roskens@elfin.net>
List: tech-x11
Date: 11/18/2001 01:20:39
On Sun, 4 Nov 2001, Frederick Bruckman wrote:

> On Sun, 4 Nov 2001, Adam Majewski wrote:

> > # cd sup/xsrc/xfree/xc
> > # make World
> > [...]
> > rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS
> > make.log MakeOut *.core "#"*
> > cleaning in lib/GL/GL...
> > make: don't know how to make clean. Stop
> >
> > make: stopped in /xds/sup/xsrc/xfree/xc/lib/GL/GL
> > *** Error code 2
> >
> > Stop.

> Is this a tree in which you've built before, and still have some old
> "Makefile"'s lying around? "make build" at the top level (under
> "xsrc/") will clean out all that old junk for you. Specify XFree 4 by
> setting "USE_XF86_4=yes" in "/etc/mk.conf". (And no, "make release"
> still doesn't work for XFree 4.)

I've been trying to compile xfree86 4.1.0 on my machine and I'm seeing
this exact same problem. It starts during the make Makefiles stage when it
enters xfree/xc/lib/GL and deduces that GL/Makefile is up to date. For
some reason the netbsd make is not noticing that GL is a sub directory of
lib/GL and that it should create a makefile in there.

cd to xfree/xc/lib/GL and do a:
make -dA ONESUBDIR=GL ONECURDIR=lib/GL/ IMAKETOP=../../.. IMAKEPREFIX=../ GL/Makefile 2>&1 | tee make.log

Searching for GL/Makefile.../d/d02/xsrc/xfree/xc/lib/GL...here...returning
/d/d02/xsrc/xfree/xc/lib/GL/Makefile
GL/Makefile:@ = /d/d02/xsrc/xfree/xc/lib/GL/Makefile
SuffFindDeps (GL/Makefile)
        No known suffix on GL/Makefile. Using .NULL suffix
not adding suffix rules
GL/Makefile:@ = /d/d02/xsrc/xfree/xc/lib/GL/Makefile
GL/Makefile:* = GL/Makefile
Searching for GL/Makefile.../d/d02/xsrc/xfree/xc/lib/GL...here...returning
/d/d02/xsrc/xfree/xc/lib/GL/Makefile
GL/Makefile:@ = /d/d02/xsrc/xfree/xc/lib/GL/Makefile
GL/Makefile:* = Makefile
Examining GL/Makefile...modified  1:06:02 Nov 18, 2001...up-to-date.
`GL/Makefile' is up to date.

I do know that this is strictly limited to the netbsd make. If you try to
build using GNU make you will not have any problems.

I've also tried this out using a freshly cvs'd copy from XFree86, and it
has the same problem.

Elfin