Subject: Re: Can't "make" in devel/smpeg (and how to troubleshoot?)
To: Jeremy C. Reed <reed@reedmedia.net>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 06/01/2001 10:28:09
In these circumstances, use "make PKG_DEBUG_LEVEL=2" to see what's
going on - it will spit out huge amounts of tracing information, and
uses "set -x" to show what's going on in all the shell invocations.

I've found that the "Need an operator" message has come mostly when
there was a conflict in the cvs update, and it has put the

<<<<<<<
=======
>>>>>>>

lines in to flag this.

Regards,
Alistair

On Fri, Jun 01, 2001 at 01:42:11AM -0700, Jeremy C. Reed wrote:
> This is NetBSD 1.5.1_BETA (i386).
> 
> I am having problems with devel/smpeg. I would appreciate any ideas on how
> I can debug this further.
> 
> /usr/pkgsrc/devel/smpeg/Makefile:
>      $NetBSD: Makefile,v 1.5 2001/05/17 12:33:04 hubertf Exp $
> 
> /usr/pkgsrc/mk/bsd.pkg.mk:
>      $NetBSD: bsd.pkg.mk,v 1.749 2001/05/24 19:39:55 skrll Exp $
>      $i: $
>      $pkg: $
> 
> /usr/pkgsrc/mk/bsd.prefs.mk:
>      $NetBSD: bsd.prefs.mk,v 1.36 2001/05/17 15:08:17 abs Exp $
> 
> I could successfully make another package (chat/gaim).
> 
> After a cvs update and a "make clean" ...
> 
> rainier:/usr/pkgsrc/devel/smpeg$ make
> ===> Validating dependencies for smpeg-0.4.3
> "Makefile", line 40: Need an operator
> "Makefile", line 45: Need an operator
> "Makefile", line 52: Need an operator
> Fatal errors encountered -- cannot continue
> *** Error code 1
> 
> Stop.
> ===> smpeg-0.4.3 cannot build necessary dependencies.
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> 
> 
> Please note that the Makefile doesn't have 40 lines. I am not sure where
> to look for line 40, 45 or 52. I briefly looked in
> /usr/pkgsrc/mk/bsd.pkg.mk and /usr/pkgsrc/mk/bsd.prefs.mk.
> 
> So I did a "make -d A"; here are parts of the results:
> 
> Global:.PARSEDIR = ../../mk
> Global:.PARSEFILE = bsd.prefs.mk
> transformation .sh complete
> Global:X11BASE = /usr/X11R6
> Searching for /usr/X11R6/include/GL/glx.h...Looking for
> "/usr/X11R6/include/GL/g
> lx.h"...Caching 13:37:37 Nov 03, 2000 for /usr/X11R6/include/GL/glx.h
> Global:__BUILTIN_MESA = 0
> lhs = "0", rhs = "0", op = ==
> Global:HAVE_BUILTIN_MESA = NO
> Global:delete __BUILTIN_MESA
> lhs = "NetBSD", rhs = "NetBSD", op = ==
> lhs = "i386", rhs = "alpha", op = ==
> lhs = "i386", rhs = "i386", op = ="Makefile", line 40: Need an operator
> "Makefile", line 45: Need an operator
> "Makefile", line 52: Need an operator
> =
> 
> ...
> 
> ----
> --- def = MACHINE_ARCH
>         @${ECHO} MACHINE_ARCH=  ${MACHINE_ARCH:Q} | ${SED} -e 's|^PATH=[^       
> ]*|PATH=...|' >> ${BUILD_INFO_FILE}
> 
> ----
> --- def = OS_VERSION
>         @${ECHO} OS_VERSION=    ${OS_VERSION:Q} | ${SED} -e 's|^PATH=[^         
> ]*|PATH=...|' >> ${BUILD_INFO_FILE}
> 
> ----
> --- def = OPSYS
>         @${ECHO} OPSYS= ${OPSYS:Q} | ${SED} -e 's|^PATH=[^
> ]*|PATH=...|' >>
>  ${BUILD_INFO_FILE}
> 
> ----
> --- def = PKGPATH
>         @${ECHO} PKGPATH=       ${PKGPATH:Q} | ${SED} -e 's|^PATH=[^
> ]*|PATH=
> ...|' >> ${BUILD_INFO_FILE}
> 
> ----
> Fatal errors encountered -- cannot continue
> gsrc/packages
> 
> ...
> 
> Searching for install-depends...failed.
> Searching for uptodate-pkgtools...failed.
> uptodate-pkgtools:@ = uptodate-pkgtools
> SuffFindDeps (uptodate-pkgtools)
>         No known suffix on uptodate-pkgtools. Using .NULL suffix
> not adding suffix rules
> uptodate-pkgtools:@ = uptodate-pkgtools
> uptodate-pkgtools:* = uptodate-pkgtools
> Searching for uptodate-pkgtools...failed.
> Examining uptodate-pkgtools...Searching for uptodate-pkgtools...failed.
> non-existent...non-existent and no sources...out-of-date.
> uptodate-pkgtools:? = 
> uptodate-pkgtools:> = 
> Applying :C to "20010306"
> Result is "2001/03/06"
> Applying :C to "20010307"
> Result is "2001/03/07"
> update time to now: 16:00:00 Dec 31, 1969
> Examining install-depends...Searching for install-depends...failed.
> non-existent...modified before source...out-of-date.
> install-depends:> = uptodate-pkgtools
> install-depends:? = uptodate-pkgtools
> *** Error code 1
> 
> ...
> 
> Searching for real-fetch...failed.
> real-fetch:@ = real-fetch
> SuffFindDeps (real-fetch)
>         No known suffix on real-fetch. Using .NULL suffix
> not adding suffix rules
> real-fetch:@ = real-fetch
> real-fetch:* = real-fetch
> Searching for real-fetch...failed.
> Searching for check-depends...failed.
> check-depends:@ = check-depends
> SuffFindDeps (check-depends)
>         No known suffix on check-depends. Using .NULL suffix
> not adding suffix rules
> check-depends:@ = check-depends
> check-depends:* = check-depends
> Searching for check-depends...failed.
> Examining check-depends...Searching for check-depends...failed.
> non-existent...non-existent and no sources...out-of-date.
> check-depends:? = 
> check-depends:> = 
> Applying :Q to "true"
> Result is "true"
> *** Error code 1
> 
> ...
> 
> Searching for /usr/pkgsrc/devel/smpeg/work/.extract_done...Looking for
> "/usr/pkg
> src/devel/smpeg/work/.extract_done"...failed. Returning NULL
> Searching for fetch...failed.
> fetch:@ = fetch
> SuffFindDeps (fetch)
>         No known suffix on fetch. Using .NULL suffix
> not adding suffix rules
> fetch:@ = fetch
> fetch:* = fetch
> Searching for fetch...failed.
> Searching for uptodate-digest...failed.
> uptodate-digest:@ = uptodate-digest
> SuffFindDeps (uptodate-digest)
>         No known suffix on uptodate-digest. Using .NULL suffix
> not adding suffix rules
> uptodate-digest:@ = uptodate-digest
> uptodate-digest:* = uptodate-digest
> Searching for uptodate-digest...failed.
> Examining fetch...Searching for fetch...failed.
> non-existent...non-existent and no sources...out-of-date.
> fetch:? = 
> fetch:> = 
> *** Error code 1
> 
> 
> Any suggestions on how I can better troubleshoot this problem?
> 
> Thanks,
> 
>    Jeremy C. Reed
>    http://www.reedmedia.net/
> 
>