Subject: Re: Malformed conditional (${OPSYS} == "IRIX")
To: Georg Schwarz <georg.schwarz@freenet.de>
From: ryan olejnik <r.olejnik@gmail.com>
List: tech-pkg
Date: 08/01/2005 16:23:39
I was able to reduce the errors down to the following:

make: "/usr/share/mk/bsd.own.mk" line 730: if-less endif
make: "/usr/share/mk/bsd.own.mk" line 730: Need an operator
make: Fatal errors encountered -- cannot continue

I have looked all over for an extra .endif and can't find one. I am
stumped at this point, so if anyone knows where to go from here,
please let me know. Also, I just wanted to mention that a day prior to
this error, I had just upgraded pkgsrc and src.
Here are code comparisons:

Old mk.conf:
.if ${OPSYS} =3D=3D "IRIX"
.elif ${OPSYS} =3D=3D "SunOS
.if empty(MACHINE_PLATFORM:MNetBSD-1*-*)
SUSE_PREFER?=3D   9.1
.else
SUSE_PREFER?=3D   7.3
.endif

New mk.conf:
#.if ${OPSYS} =3D=3D "IRIX"
#.elif ${OPSYS} =3D=3D "SunOS
#.if empty(MACHINE_PLATFORM:MNetBSD-1*-*)
#SUSE_PREFER?=3D  9.1
#.else
#SUSE_PREFER?=3D  7.3 =20
#.endif

Old bsd.own.mk:
.if !defined(_SRC_TOP_OBJ_)
_SRC_TOP_OBJ_!=3D         cd ${_SRC_TOP_} && ${PRINTOBJDIR}
.MAKEOVERRIDES+=3D        _SRC_TOP_OBJ_
.endif

New bsd.own.mk:
.if !defined(_SRC_TOP_OBJ_)
_SRC_TOP_OBJ_+=3D         cd ${_SRC_TOP_} && ${PRINTOBJDIR}
.MAKEOVERRIDES+=3D        _SRC_TOP_OBJ_
.endif

Thanks,
Ryan

On 7/31/05, ryan olejnik <r.olejnik@gmail.com> wrote:
> I have no idea but I tried a friend's mk.conf and a mk.conf from a
> client. Both still produced these errors. I have also compiled this
> same kernel without any issues prior. The only thing I added I
> commented and again it produced the errors anyway.
> I think I agree with you, think it would be safe to just comment these ou=
t?
>=20
> On 7/31/05, Georg Schwarz <georg.schwarz@freenet.de> wrote:
> > Why are these lines in your /etc/mk.conf?
> > It seems to me that the respective variables are not yet set when
> > mk.conf is evaluated.
> >
> > > Hello,
> > >
> > > My machine is an i586 running 2.0.2.
> > >
> > > When attempting to compile a kernel I receive these following errors:
> > >
> > > make: "/etc/mk.conf" line 450: Malformed conditional (${OPSYS} =3D=3D=
 "IRIX")
> > > make: "/etc/mk.conf" line 450: Need an operator
> > > make: "/etc/mk.conf" line 463: Malformed conditional (${OPSYS} =3D=3D=
 "SunOS")
> > > make: "/etc/mk.conf" line 463: Need an operator
> > > make: "/etc/mk.conf" line 1753: Malformed conditional (empty(MACHINE_=
PLATFORM:MN
> > > etBSD-1*-*))
> > > make: "/etc/mk.conf" line 1753: Missing dependency operator
> > > make: "/etc/mk.conf" line 1755: if-less else
> > > make: "/etc/mk.conf" line 1755: Need an operator
> > > make: "/etc/mk.conf" line 1757: if-less endif
> > > make: "/etc/mk.conf" line 1757: Need an operator
> > > make: "/etc/mk.conf" line 450: Malformed conditional (${OPSYS} =3D=3D=
 "IRIX")
> > > make: "/etc/mk.conf" line 450: Need an operator
> > > make: "/etc/mk.conf" line 463: Malformed conditional (${OPSYS} =3D=3D=
 "SunOS")
> > > make: "/etc/mk.conf" line 463: Need an operator
> > > make: "/etc/mk.conf" line 1753: Malformed conditional (empty(MACHINE_=
PLATFORM:MN
> > > etBSD-1*-*))
> > > make: "/etc/mk.conf" line 1753: Missing dependency operator
> > > make: "/etc/mk.conf" line 1755: if-less else
> > > make: "/etc/mk.conf" line 1755: Need an operator
> > > make: "/etc/mk.conf" line 1757: if-less endif
> > > make: "/etc/mk.conf" line 1757: Need an operator
> > > make: "/usr/src/share/mk/bsd.own.mk" line 730: if-less endif
> > > make: "/usr/src/share/mk/bsd.own.mk" line 730: Need an operator
> > > make: Fatal errors encountered -- cannot continue
> > > make: "/usr/share/mk/bsd.own.mk" line 85: warning: "cd /usr/src && ma=
ke -V .OBJD
> > > IR" returned non-zero status
> > > make: "/usr/share/mk/bsd.own.mk" line 730: if-less endif
> > > make: "/usr/share/mk/bsd.own.mk" line 730: Need an operator
> > > make: Fatal errors encountered -- cannot continue
> > >
> > > I found very little documentation on the archives for this issue. It
> > > should be noted that I just compiled kde and whatever else
> > > dependencies that were required, not installed, or had to be updated
> > > for /usr/pkgsrc/graphics/showimg. It should also be noted that showim=
g
> > > isn't working correctly. I can't access a lot of the features. I have
> > > reason to believe that the above errors are connected to kde, due to
> > > the following: http://mail-index.netbsd.org/tech-pkg/2004/08/27/0001.=
html
> > >
> > > Notice the similiar errors:
> > >  > =3D=3D=3D> Overriding tools for kdepim-3.3.0
> > > > make: "../../mk/buildlink3/../../mk/buildlink3/bsd.buildlink3.mk" l=
ine
> > > > 1624: Malformed conditional (empty(_BLNK_RPATH_FLAGS:M-Wl,-R))
> > > > make: "../../mk/buildlink3/../../mk/buildlink3/bsd.buildlink3.mk" l=
ine
> > > > 1624: Missing dependency operator
> > > > make: "../../mk/../../mk/bsd.pkg.mk" line 1230: if-less endif
> > > > make: "../../mk/../../mk/bsd.pkg.mk" line 1230: Need an operator
> > > > make: Fatal errors encountered -- cannot continue
> > > >
> > > > make: stopped in /usr/NetBSD/cvs/pkgsrc/misc/kdepim3
> > > > *** Error code 1
> > >
> > > List of my current packages:
> > >
> > > MesaLib-6.2.1nb2
> > > Xfixes-2.0.1nb1
> > > Xft2-2.1.6nb1
> > > Xrandr-1.0.2nb2
> > > Xrender-0.8.4nb1
> > > adjustkernel-1.7
> > > arts-1.4.2
> > > aspell-0.60.2
> > > aterm-0.4.2nb7
> > > atk-1.10.1
> > > audit-packages-1.33
> > > autoconf-2.59nb2
> > > autoconf213-2.13nb1
> > > automake-1.9.6
> > > bison-2.0
> > > bsetroot-0.1nb5
> > > cyrus-sasl-2.1.20nb1
> > > db4-4.3.28
> > > digest-20050323
> > > esound-0.2.35nb1
> > > expat-1.95.8nb2
> > > firefox-1.0.3
> > > fixesext-2.0.1
> > > fltk-1.1.6nb3
> > > fluxbox-0.9.12
> > > fontconfig-2.3.1nb1
> > > freetype2-2.1.9nb1
> > > gaim-1.3.0
> > > gawk-3.1.4nb2
> > > ghostscript-fonts-6.0
> > > glib-1.2.10nb8
> > > glib2-2.6.4
> > > glu-6.2.1nb1
> > > gmake-3.80nb4
> > > gtar-base-1.15.1
> > > gtk+-1.2.10nb8
> > > gtk2+-2.6.7
> > > gtkspell-2.0.10
> > > irssi-0.8.9nb3
> > > jasper-1.701.0nb1
> > > jpeg-6bnb3
> > > kdebase-3.4.2
> > > kdelibs-3.4.2
> > > lcms-1.14
> > > libIDL-0.8.5
> > > libao-0.8.6
> > > libart2-2.3.17
> > > libaudiofile-0.2.6nb1
> > > libexif-0.6.12nb2
> > > libgcrypt-1.2.1
> > > libgpg-error-1.0
> > > libidn-0.5.18
> > > libkexif-0.2.1
> > > libkipi-0.1.1
> > > libmad-0.15.1bnb1
> > > libmikmod-3.1.11.1nb1
> > > libogg-1.1.2nb1
> > > libtool-base-1.5.18nb4
> > > libusb-0.1.10a
> > > libvorbis-1.1.0nb1
> > > libxml2-2.6.20
> > > libxslt-1.1.14
> > > m4-1.4.3
> > > mDNSResponder-107.1nb1
> > > mng-1.0.9
> > > nspr-4.4.1nb1
> > > nss-3.9.2nb2
> > > openexr-1.2.2
> > > openldap-2.2.20nb2
> > > openmotif-2.1.30nb4
> > > pango-1.8.1
> > > pcre-5.0nb1
> > > perl-5.8.6nb4
> > > pkg_install-20050318
> > > pkgconfig-0.17.2nb2
> > > pkgdb.byfile.db
> > > png-1.2.8
> > > qt3-libs-3.3.4nb4
> > > qt3-tools-3.3.4nb1
> > > randrext-1.0nb1
> > > render-0.8
> > > showimg-0.9.4.1
> > > silc-toolkit-0.9.13
> > > startup-notification-0.8
> > > t1lib-5.0.2nb3
> > > tiff-3.7.2nb1
> > > tnftpd-20040810
> > > unzip-5.52nb1
> > > x11-links-0.26
> > > xchat-2.4.1nb1
> > > xcursor-1.1.2
> > > xdg-dirs-1.2
> > > xextensions-1.0.1nb1
> > > xmlcatmgr-2.2
> > > xmms-1.2.10nb5
> > > xpdf-3.00pl3
> > > xpkgwedge-1.14
> > > zip-2.3nb3
> > >
> > > It should also be known that I noticed an older version (I think
> > > 3.4.1, otherwise a different nb) of kdebase was installed before the
> > > 3.4.2 version.
> > >
> > > If anyone can assist me on correcting this error, it would be greatly
> > > appreciated.
> > >
> > > Thanks,
> > > Ryan Olejnik
> > >
> > >
> > >
> > >
> >
> > --
> > Georg Schwarz    http://home.pages.de/~schwarz/
> >  georg.schwarz@freenet.de  +49 178 8545053
> >
> >
>