On Fri, Feb 24, 2006 at 01:09:39PM -0500, Baker, Darryl wrote:
> I get this error with gcc and a similar error using the supplied
> compiler:
> 
> gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare  -I.
> -I.. -I. -I./.. -I/usr/local/ssl/include -I/usr/local/include
> -I/usr/local/ssl/include -DHAVE_CONFIG_H -c strtonum.c
> strtonum.c: In function `strtonum':
> strtonum.c:55: `ldLL' undeclared (first use in this function)
> strtonum.c:55: (Each undeclared identifier is reported only once
> strtonum.c:55: for each function it appears in.)
> *** Exit 1

That's because LLONG_MAX is missing from the system headers, when
configure tries to figure it out, it runs into a problem whereby your
libc doesn't know how to print a "long long".

The quick workaround is to edit config.h and make
LLONG_MIN and LLONG_MAX equal to -9223372036854775808 and
9223372036854775807 respectively.  The gory details are over here:
http://bugzilla.mindrot.org/show_bug.cgi?id=1104

What I don't understand is that there's a workaround for the problem
in configure in 4.3x and up.  The only thing I can guess is that the
system identifier doesn't match the sanity check... what does
./config.guess output?

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Reply via email to