[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

DB 3.3.11 configure fails to detect gcc

From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2001-08-31 11:49:30 CEST

FYI

(Read the bits you care about, this contains bits that might interest both
subversion users and sleepycat's configure script hackers.)

I put my db-3.3.11 directory in the subversion directory (and named it db)
and then, when running the top-level configure I get problems with the
configure in db/dist.

The reason for this is that I run this on a Solaris machine with a 'cc' that
doesn't work (it is an executable that is runnable, but it is not a working
compiler), but with a 'gcc' that does.

The configure script in db/dist doesn't detect gcc but finds cc and goes with
that:

[output from db/dist/configure]
checking for cc... cc
checking for gcc... (cached) cc
checking for gcc... (cached) cc
checking for C compiler default output... configure: error: C compiler cannot
create executables
configure failed for db/dist

(This is because it uses AC_CHECK_TOOL() to figure out which cc to use
without any means of picking the second choice if the first one turns out not
to work, as in my case.)

The annoying part is that I can't just 'cd' into db and run './configure
CC=gcc' first and then go back to subversion and build it from scratch, as
subversion's configure script will later re-run db's configure script
(without the CC set) and then it'll fail...

*but* setting 'CC=gcc' in the top-level will cause neon's configure output a
warning: "configure: warning: CC=gcc: invalid host type" (in several places)
Isn't this a bug?

Anyway, it seems to pass OK anyway. (until it died on my "too new libtool"...
more about that in a separate mail)

My machine:

host:~>uname -a SunOS host 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-250
host:~>gcc -v
gcc version 3.0
host:~>cc ; echo $?
/usr/ucb/cc: language optional software package not installed
1

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:37 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.