[OpenAFS-devel] Cannot configure openafs-1.2.11 with gcc on sun4x_56

Martin MOKREJŠ mmokrejs@natur.cuni.cz
Fri, 13 Feb 2004 11:34:14 +0100 (CET)


Hi,
  I want to compile my own binaries (as there are no Soalris 5.6 binaries
available), but the following problem:

# CFLAGS='-O3 -pipe -mcpu=ultrasparc -mtune=ultrasparc' CC=gcc ./configure --enable-bos-new-config --enable-namei-fileserver --enable-fast-restart --enable-bitmap-later --enable-full-vos-listvol-switch --enable-transarc-paths --prefix=/usr/afsws
creating cache ./config.cache
checking for a BSD compatible install... /usr/local/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc -O3 -pipe -mcpu=ultrasparc -mtune=ultrasparc ) works... yes
checking whether the C compiler (gcc -O3 -pipe -mcpu=ultrasparc -mtune=ultrasparc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking host system type... sparc-sun-solaris2.6
checking for AIX... no
checking for POSIXized ISC... no
checking for minix/config.h... no
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for a BSD compatible install... /usr/local/bin/install -c
checking whether ln -s works... yes
<cut>

The problem is that generated uses solaris cc for which we have no
licence and it is actually missing!

$ make
make build
make[1]: Entering directory `/scratch/src/openafs-1.2.11'
make finale DEST=/scratch/src/openafs-1.2.11/sun4x_56/dest COMPILE_PART2B=all DESTDIR=
make[2]: Entering directory `/scratch/src/openafs-1.2.11'
cd src; cd config ; make all
make[3]: Entering directory `/scratch/src/openafs-1.2.11/src/config'
rm -f Makefile.version
if      [ -r SRC/../CML/state ] ; \
then    /bin/cp Makefile.version-CML Makefile.version ; \
else    /bin/cp Makefile.version-NOCML Makefile.version ; \
fi
make -f Makefile.version AFS_component_version_number.c
make[4]: Entering directory `/scratch/src/openafs-1.2.11/src/config'
make[4]: `AFS_component_version_number.c' is up to date.
make[4]: Leaving directory `/scratch/src/openafs-1.2.11/src/config'
/opt/SUNWspro/bin/cc -g -I/scratch/src/openafs-1.2.11/include -dy -Bdynamic   -c -o config.o config.c
make[3]: /opt/SUNWspro/bin/cc: Command not found
make[3]: *** [config.o] Error 127
make[3]: Leaving directory `/scratch/src/openafs-1.2.11/src/config'
<cut>


-- 
Martin Mokrejs <mmokrejs@natur.cuni.cz>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs