From owner-freebsd-questions@FreeBSD.ORG Thu Feb 22 18:25:06 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17A1916A403 for ; Thu, 22 Feb 2007 18:25:06 +0000 (UTC) (envelope-from gao@schrodinger.com) Received: from schrodinger.com (thermidore.schrodinger.com [192.156.98.99]) by mx1.freebsd.org (Postfix) with ESMTP id ED19213C441 for ; Thu, 22 Feb 2007 18:25:05 +0000 (UTC) (envelope-from gao@schrodinger.com) Received: from [192.156.98.12] (ithi.schrodinger.com [192.156.98.12]) by schrodinger.com (8.13.4/8.13.4) with ESMTP id l1MIP5pD015230 for ; Thu, 22 Feb 2007 10:25:05 -0800 (PST) (envelope-from gao@schrodinger.com) Message-ID: <45DDDFD4.10900@schrodinger.com> Date: Thu, 22 Feb 2007 10:24:20 -0800 From: Simon Gao User-Agent: Thunderbird 1.5.0.9 (X11/20061226) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (schrodinger.com [192.156.98.99]); Thu, 22 Feb 2007 10:25:05 -0800 (PST) Subject: Port installation failed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2007 18:25:06 -0000 Hi, I had following errors when trying to install a package through port on one FreeBSD 4.7 machine: # make install "/usr/ports/Mk/bsd.port.mk", line 2292: warning: String comparison operator should be either == or != "/usr/ports/Mk/bsd.port.mk", line 2292: warning: String comparison operator should be either == or != "/usr/ports/Mk/bsd.port.mk", line 2292: Malformed conditional (((${OSVERSION} < 504105 || (${OSVERSION} >= 600000 && ${OSVERSION} < 600103) || (${OSVERSION} >= 700000 && ${OSVERSION} < 700012)) && ${PKGORIGIN} != "ports-mgmt/pkg_install") || exists(${LOCALBASE}/sbin/pkg_info)) "/usr/ports/Mk/bsd.port.mk", line 2293: warning: String comparison operator should be either == or != "/usr/ports/Mk/bsd.port.mk", line 2293: warning: String comparison operator should be either == or != "/usr/ports/Mk/bsd.port.mk", line 2293: Malformed conditional ((${OSVERSION} < 504105 || (${OSVERSION} >= 600000 && ${OSVERSION} < 600103) || (${OSVERSION} >= 700000 && ${OSVERSION} < 700012)) && ${PKGORIGIN} != "ports-mgmt/pkg_install") "/usr/ports/Mk/bsd.port.mk", line 2308: if-less else "/usr/ports/Mk/bsd.port.mk", line 2308: Need an operator "/usr/ports/Mk/bsd.port.mk", line 2322: if-less endif "/usr/ports/Mk/bsd.port.mk", line 2322: Need an operator "/usr/ports/Mk/bsd.port.mk", line 5987: if-less endif "/usr/ports/Mk/bsd.port.mk", line 5987: Need an operator make: fatal errors encountered -- cannot continue Anyone has seen similar problem? It seems that bsd.port.mk is causing problem. Can I just replace bsd.port.mk file with one from other machines? Simon