[Box Backup] LLONG_MAX configure mistake with gcc 4.1.1 (Linux)

Martin Ebourne boxbackup@fluffy.co.uk
Sat, 10 Jun 2006 11:37:31 +0100


On Sat, 2006-06-10 at 07:50 +0100, Stuart Hickinbottom wrote:
> I have looked into the configure.log and the relevant lines seem to be
> as follows:
> 
> ------ gcc 3.4.6 configure.log fragment
> configure:12051: result: no
> configure:12058: checking for max value of long long
> configure:12112: g++ -o conftest -g -O2     conftest.cc -lcrypto -lssl
> -ldb -lz  >&5
> configure:12115: $? = 0
> configure:12117: ./conftest
> Using system header for LLONG_MIN and LLONG_MAX
> configure:12120: $? = 0
> configure:12124: result: 9223372036854775807
> configure:12131: checking for min value of long long
> configure:12133: result: -9223372036854775808
> ------ gcc 4.1.1 configure.log fragment
> configure:12051: result: no
> configure:12058: checking for max value of long long
> configure:12112: g++ -o conftest -g -O2     conftest.cc -lcrypto -lssl
> -ldb -lz  >&5
> configure:12115: $? = 0
> configure:12117: ./conftest
> Using system header for LLONG_MIN and LLONG_MAX
> configure:12120: $? = 2
> configure: program exited with status 2
> configure: failed program was:
> ------
> 
> I can look into this some more if someone could give me a couple of
> pointers - I've never delved too deeply into configure scripts before
> (and having done a little now I can see why!).

Take the failed program as reported in the log, then the compile line it
gives you above. Compile it manually and presumably you'll get the same
result. Then debug it in the time honoured fasion. :)

As an aside, I'm sure I recognise your name. You're not another
ex-Acorner are you?

Cheers,

Martin.