From owner-freebsd-ports Mon Sep 30 18:06:04 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA07662 for ports-outgoing; Mon, 30 Sep 1996 18:06:04 -0700 (PDT) Received: from vector.jhs.no_domain (slip139-92-42-44.ut.nl.ibm.net [139.92.42.44]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA06986 for ; Mon, 30 Sep 1996 18:05:09 -0700 (PDT) Received: from vector.jhs.no_domain (localhost [127.0.0.1]) by vector.jhs.no_domain (8.7.5/8.6.9) with ESMTP id BAA14985 for ; Tue, 1 Oct 1996 01:53:58 +0100 (MET) Message-Id: <199610010053.BAA14985@vector.jhs.no_domain> Date: Tue, 01 Oct 1996 01:53:54 +0100 From: "Julian H. Stacey" Subject: Re: hylafax port fails to build on -current, can't find a working Ansi C , Compiler To: undisclosed-recipients:; Sender: owner-ports@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk ------- Blind-Carbon-Copy To: Andreas Klemm cc: hylafax@freebsd.org Subject: Re: hylafax port fails to build on -current, can't find a working Ansi C , Compiler From: "Julian H. Stacey" Reply-To: "Julian H. Stacey" Organization: Vector Systems Ltd. Mailer: EXMH 1.6.7, PGP available X-Address: Holz Strasse 27d, 80469 Munich, Germany X-Phone: +49.89.268616 X-Fax: +49.89.2608126 X-Web: http://www.freebsd.org/~jhs/ In-reply-to: Your message of "Sat, 28 Sep 1996 20:58:47 +0200." Date: Tue, 01 Oct 1996 01:53:54 +0100 Sender: jhs@vector.jhs.no_domain Hi, Reference: > From: Andreas Klemm > Subject: Re: hylafax port fails to build on -current, can't find a working Ansi C , Compiler > > Seems to be an error because the migration to gcc 2.7.2.1 ?! This was sent To: Andreas Klemm bcc: ports@FreeBSD.org cc: hylafax@freebsd.org As Andreas posted to ports, but we actually have a special list just for hylafax, so best use that for follow up :-) Andreas, Yes, thanks for your diagnostics, here's the patch, Would some committer please commit this ? (I'm Maintainer ) ( As FreeBSD Policy is to maintain ports against current rather than release, this patch is essential ) Thanks. - ---------- ports/comms/hylafax/patch-ae By Julian Stacey 1996.10.01 This patch is _only_ to be applied if you are running a current FreeBSD from late September 1996 onward, which has the new 2.7.2.1 compiler, rather than the old 2.6.3 as in FreeBSD release 2.1.5 To check which you have, use cc --version Thanks to Andreas Klemm for initial diagnostics. This avoids configure breaking as below, when checking for versions. Configuring HylaFAX (tm) (aka FlexFAX) v3.0pl1113. Reading site-wide parameters from ./config.site. Wow, you've got a i386-unknown-freebsd2.2 system! ncc: not found dcc: not found xlc: not found c89: not found gcc2: not found Cannot locate a working ANSI C compiler. *** configure Tue Oct 1 01:00:30 1996 - --- configure Tue Oct 1 00:54:30 1996 *************** *** 445,452 **** checkGCCVersion() { app=$1; shift eval `$app -v 2>&1 | \ ! sed -n -e '/version/s/.* \([0-9]*\)\.\([0-9]*\).\([0-9]*\)/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'` GCCversion="${GCCdist}.${GCCmajor}.${GCCminor}"; export GCCversion required="$1$2$3" actual="${GCCdist}${GCCmajor}${GCCminor}" - --- 445,454 ---- checkGCCVersion() { app=$1; shift + # eval `$app -v 2>&1 | \ + # sed -n -e '/version/s/.* \([0-9]*\)\.\([0-9]*\).\([0-9]*\)/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'` eval `$app -v 2>&1 | \ ! sed -n -e '/version/s/.* \([0-9]*\)\.\([0-9]*\).\([0-9]*\).\([0-9]*\)/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'` GCCversion="${GCCdist}.${GCCmajor}.${GCCminor}"; export GCCversion required="$1$2$3" actual="${GCCdist}${GCCmajor}${GCCminor}" *************** *** 464,470 **** CCOMPILER= for i in $CC gcc cc ncc dcc xlc c89 gcc2; do if isGNU $i; then ! checkGCCVersion $i 2 6 1 || continue; ISGCC=yes else ISGCC=no - --- 466,473 ---- CCOMPILER= for i in $CC gcc cc ncc dcc xlc c89 gcc2; do if isGNU $i; then ! checkGCCVersion $i 2 7 2 || continue; ! #checkGCCVersion $i 2 6 1 || continue; ISGCC=yes else ISGCC=no *************** *** 605,611 **** $RM dummy dummy.o ($i -o dummy dummy.C) >/dev/null 2>&5 && { if isGNU $i; then ! checkGCCVersion $i 2 6 1 || continue; ISGXX=yes fi CXX=$i; - --- 608,615 ---- $RM dummy dummy.o ($i -o dummy dummy.C) >/dev/null 2>&5 && { if isGNU $i; then ! # checkGCCVersion $i 2 6 1 || continue; ! checkGCCVersion $i 2 7 2 || continue; ISGXX=yes fi CXX=$i; - ------------- - -- Julian H. Stacey jhs@freebsd.org http://www.freebsd.org/~jhs/ ------- End of Blind-Carbon-Copy