From owner-freebsd-ports Sat Jan 5 14:16: 4 2002 Delivered-To: freebsd-ports@freebsd.org Received: from D00015.dialonly.kemerovo.su (www2.svzserv.kemerovo.su [213.184.65.86]) by hub.freebsd.org (Postfix) with ESMTP id F00B037B419 for ; Sat, 5 Jan 2002 14:15:57 -0800 (PST) Received: from grosbein.pp.ru (localhost [127.0.0.1]) by D00015.dialonly.kemerovo.su (8.11.6/8.11.6) with ESMTP id g05MFZd80053; Sun, 6 Jan 2002 05:15:38 +0700 (KRAT) (envelope-from eugen@grosbein.pp.ru) Message-ID: <3C377B07.6A49FA75@grosbein.pp.ru> Date: Sun, 06 Jan 2002 05:15:35 +0700 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.76 [ru] (X11; U; FreeBSD 4.5-PRERELEASE i386) X-Accept-Language: ru, en MIME-Version: 1.0 To: maintainer Cc: freebsd-ports@freebsd.org Subject: ports/net/trafshow Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi! Building of FreeBSD ports for trafshow is currently broken at configure stage, it fails to determine gcc version. ===> Extracting for trafshow-3.1_1 >> Checksum OK for trafshow-3.1.tgz. ===> Patching for trafshow-3.1_1 ===> Applying FreeBSD patches for trafshow-3.1_1 ===> Configuring for trafshow-3.1_1 creating cache ./config.cache checking host system type... i386--freebsd4.5 checking target system type... i386--freebsd4.5 checking build system type... i386--freebsd4.5 checking for gcc... cc checking whether the C compiler (cc -O -pipe -march=pentiumpro ) works... yes checking whether the C compiler (cc -O -pipe -march=pentiumpro ) is a cross-comp iler... no checking whether we are using GNU C... yes checking whether cc accepts -g... yes checking gcc version... sh: 1: unexpected operator ===> Script "configure" failed: here are the contents of "config.log" This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:573: checking host system type configure:594: checking target system typeconfigure:612: checking build system type configure:700: checking for gcc configure:777: checking whether the C compiler (cc -O -pipe -march=pentiumpro ) works configure:791: cc -o conftest -O -pipe -march=pentiumpro -I/usr/local/include/nc urses -I/usr/local/include conftest.c -L/usr/local/lib 1>&5 configure:811: checking whether the C compiler (cc -O -pipe -march=pentiumpro ) is a cross-compiler configure:816: checking whether we are using GNU C configure:825: cc -E conftest.c configure:840: checking whether cc accepts -g configure:873: checking gcc version (end of "config.log") *** Error code 1 Stop in /usr/local/ports/net/trafshow. *** Error code 1 Stop in /usr/local/ports/net/trafshow. *** Error code 1 Stop in /usr/local/ports/net/trafshow. *** Error code 1 Stop in /usr/local/ports/net/trafshow. The reason is near the line 873 in configure script. It uses this code to guess a version ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ sed -n -e '$s/.* //' -e '$s/\..*//p'` This currently procudes empty ac_cv_lbl_gcc_vers so comparision with 1 fails. Here is a patch: --- configure.orig Sun Jan 6 05:09:15 2002 +++ configure Sun Jan 6 05:10:36 2002 @@ -874,7 +874,7 @@ echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ - sed -n -e '$s/.* //' -e '$s/\..*//p'` + sed -n -e '$s/^.*version //' -e '$s/\..*//p'` fi echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6 Eugene Grosbein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message