Subject: lib/32246: mk.conf v 1.104 contains improper conditional phrases
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <hylander@mindspring.com>
List: netbsd-bugs
Date: 12/05/2005 00:35:00
>Number: 32246
>Category: lib
>Synopsis: mk.conf v 1.104 contains improper conditional phrases
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 05 00:35:00 +0000 2005
>Originator: perry meronyk
>Release: 2.1
>Organization:
home
>Environment:
generic i386
>Description:
I am trying to install "libpng-1.2.8" and ran "make test" and got errors on the follwing lines from the "mk.conf v 1.104" file for "Malformed Conditional, Needs an operator"
#IMAKEOPTS=
# Options passed to imake(1). The defaults ensure that imake finds the
# correct commands.
# Possible: any valid flags
# Default:
# for Solaris with gcc:
# -DHasGcc2=YES -DHasGcc2ForCplusplus=YES
# for IRIX:
# -DMakeCmd=${PREFIX}/bin/bmake -DProjectRoot=${X11BASE} \
# -DManUsr=${PREFIX}
.if ${OPSYS} == "IRIX"
#IMAKEOPTS?= -DMakeCmd=${PREFIX}/bin/bmake -DProjectRoot=${X11BASE} \
# -DManUsr=${PREFIX}
# ABI specific flags may be added during bootstrapping process or by hand:
. if defined(ABI)
. if ${ABI} == "32"
#IMAKEOPTS+= -DBuildN32
. else
#IMAKEOPTS+= -DBuild64bit
. endif
. endif
# you may also wish to add ISA specific flags, such as "-DSgiISA32=4" if
# you are compiling for mips4.
.elif ${OPSYS} == "SunOS"
# The flags required by imake with gcc on Solaris are automatically
# added if gcc is being used. Though it should not be needed, you can
# override this using:
#IMAKEOPTS+= -DHasGcc2=YES -DHasGcc2ForCplusplus=YES
.endif
Also, got the "Malformed Conditional, Missing Dependency Operator" error here;
.if empty(MACHINE_PLATFORM:MNetBSD-1*-*)
SUSE_PREFER?= 9.1
.else
SUSE_PREFER?= 7.3
.endif
# Which version of the suse packages to prefer.
# Decides if you want to use 9.1 (default) or 7.3 (pre NetBSD-2) by default.
# Possible: 7.3, 9.1
# Default: 9.1 in 2.0 and later, 7.3 otherwise
>How-To-Repeat:
Run "make test" on "libpng-1.2.8" using the NetBSD makefile.
>Fix:
commented out the above conditional statements and "make test" runs without errors.