Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 1996 13:44:27 +0100
From:      "Julian H. Stacey" <jhs@FreeBSD.org>
To:        undisclosed-recipients:;
Subject:   Re: hylafax port fails to build on -current, can't find a working Ansi C , Compiler 
Message-ID:  <199609291244.NAA05490@vector.jhs.no_domain>

next in thread | raw e-mail | index | archive | help
------- Blind-Carbon-Copy

To: Andreas Klemm <andreas@klemm.gtn.com>
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" <jhs@freebsd.org>
Reply-To: "Julian H. Stacey" <jhs@freebsd.org>
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."
             <Pine.BSF.3.95.960928204017.6692A-100000@klemm.gtn.com> 
Date: Sun, 29 Sep 1996 13:44:27 +0100
Sender: jhs@vector.jhs.no_domain

Hi, Reference:
> From: Andreas Klemm <andreas@klemm.gtn.com> 
>
> 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<<EOF 
> #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 <andreas@klemm.gtn.com>
	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609291244.NAA05490>