Date: Sun, 06 Jan 2002 05:15:35 +0700 From: Eugene Grosbein <eugen@grosbein.pp.ru> To: maintainer <ryan@sasknow.com> Cc: freebsd-ports@freebsd.org Subject: ports/net/trafshow Message-ID: <3C377B07.6A49FA75@grosbein.pp.ru>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C377B07.6A49FA75>