From owner-freebsd-ports Sun Sep 29 10:11:13 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA19140 for ports-outgoing; Sun, 29 Sep 1996 10:11:13 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA19100 for ; Sun, 29 Sep 1996 10:11:01 -0700 (PDT) Received: from vector.jhs.no_domain (slip139-92-42-61.ut.nl.ibm.net [139.92.42.61]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id KAA17933 for ; Sun, 29 Sep 1996 10:10:26 -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 NAA05490 for ; Sun, 29 Sep 1996 13:44:30 +0100 (MET) Message-Id: <199609291244.NAA05490@vector.jhs.no_domain> Date: Sun, 29 Sep 1996 13:44:27 +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: Sun, 29 Sep 1996 13:44:27 +0100 Sender: jhs@vector.jhs.no_domain Hi, Reference: > From: Andreas Klemm > > Seems to be an error because the migration to gcc 2.7.2.1 ?! > > The configure script creates a temp file xgnu.c containing > these lines to fing out, if this is a GNU C compiler: > > cat>xgnu.c< #ifdef __GNUC__ > yes; > #endif > EOF > > isGNU() > { > $1 -E xgnu.c 2>&5 | egrep yes >/dev/null 2>&1 > } > !!!!!!!!---------------^^^^^^^^ This egrep fails, since __GNUC__ > isn't defined for some reason ... ?!?! > > checkGCCVersion() > { > app=$1; shift > eval `$app -v 2>&1 | \ > sed -n -e '/version/s/.* \([0-9]*\)\.\([0-9]*\).\([0-9]*\)/GCCdist=\1 - - ;GC > Cmajor=\2;GCCminor=\3/p'` > GCCversion="${GCCdist}.${GCCmajor}.${GCCminor}"; export GCCversion > required="$1$2$3" > actual="${GCCdist}${GCCmajor}${GCCminor}" > test "$actual" -ge "$required" >/dev/null 2>&1 > } > > 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 > fi > > This is what our gcc defines: > root{909} /usr/ports/comms/hylafax/work/hylafax-v3.0pl0 gcc -v -E - > gcc version 2.7.2.1 > /usr/libexec/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 > !!!--------------------------------------------^ > -Dunix -Di386 -D__FreeBSD__=2 -D__unix__ -D__i386__ -D__FreeBSD__=2 > -D__unix -D__i386 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) > -Amachine(i386) - > GNU CPP version 2.7.2.1 (80386, BSD syntax) > #include "..." search starts here: > #include <...> search starts here: > /usr/include > End of search list. > > So __GNUC__ should be defined ... Well, > > Here what happens: > > Good luck, I don't see the error .. :-(( > > Checksums OK. > ===> Extracting for hylafax-3.0.1 > ===> hylafax-3.0.1 depends on executable: bash - found > ===> Patching for hylafax-3.0.1 > ===> Applying distribution patches for hylafax-3.0.1 > ===> Applying FreeBSD patches for hylafax-3.0.1 > ===> Configuring for hylafax-3.0.1 > > Configuring HylaFAX (tm) (aka FlexFAX) v3.0pl1113. > > Reading site-wide parameters from ./config.site. > Oh no, not another 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. > > If the compiler is in a non-standard location, set the environment > variable CC to the absolute pathname of the compiler that is to be used > and rerun this script. > > If command line options are required for ANSI C compilation, set the > variable ENVOPTS to these options and rerun this script. > > If you are trying to use GNU gcc, but you do not have version 2.6.1 > or newer, then you must update your compiler (and probably libg++ as > well) before you can compile this software. Consult the documentation > for information about obtaining an up-to-date version of gcc. > configure: > configure: Unrecoverable error! Once you've corrected the problem rerun this - - script. > *** Error code 1 > > Stop. > *** Error code 1 > > Stop. > *** Error code 1 > > Stop. > > andreas@klemm.gtn.com /\/\___ Wiechers & Partner Datentechnik Gm - - bH > Andreas Klemm ___/\/\/ Support Unix -- andreas.klemm@wup. - - de > pgp p-key http://www-swiss.ai.mit.edu/~bal/pks-toplev.html >>> powered by < - - << > ftp://sunsite.unc.edu/pub/Linux/system/Printing/aps-491.tgz >>> FreeBSD < - - << > Andreas, We have a mail list just for hylafax on FreeBSD, so I've sent this answer: To: Andreas Klemm bcc: ports@FreeBSD.org cc: hylafax@freebsd.org I am upgrading one (week or two old) current system here from cc 2.6.3 to very current for the new cc, & will investigate. Julian - -- Julian H. Stacey jhs@freebsd.org http://www.freebsd.org/~jhs/ ------- End of Blind-Carbon-Copy