Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 1996 20:58:47 +0200 (MET DST)
From:      Andreas Klemm <andreas@klemm.gtn.com>
To:        jhs@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   hylafax port fails to build on -current, can't find a working Ansi C , Compiler
Message-ID:  <Pine.BSF.3.95.960928204017.6692A-100000@klemm.gtn.com>

next in thread | raw e-mail | index | archive | help
Hi !

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 GmbH
   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 <<<




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.960928204017.6692A-100000>