HEAD not compiling

Max Okumoto okumoto at ucsd.edu
Sun Apr 10 03:49:01 PDT 2005

Kyle Butt wrote:
On Thu, Apr 07, 2005 at 01:59:02PM -0700, Max Okumoto wrote:

Can you look in make.h and see if you can see the following:

/* Needed for cross compile on FreeBSD 4.X */
#ifndef INT64_MIN
#include <stdlib.h>
#define INT64_MIN       (-0x7fffffffffffffffLL-1)
typedef __int64_t       intmax_t;
typedef __uint64_t      uintmax_t;
static inline uintmax_t
strtoumax(const char *nptr, char **endptr, int base)
       return strtoull(nptr, endptr, base);
If not could you run cvsup again?


Yep, It's there. You might find this interesting:

(So I must be missing the function in my libc.)
Hmm, I wonder how that happened.

( cd /usr/include && grep INT64_MIN -r * )
machine/stdint.h:#define        INT64_MIN       (-0x7fffffffffffffffLL-1)
machine/stdint.h:#define        INTMAX_MIN      INT64_MIN
machine/stdint.h:#define        INT_LEAST64_MIN         INT64_MIN
machine/stdint.h:#define        INT_FAST64_MIN          INT64_MIN

(cd /usr/lib && nm *.a | grep strtoumax )

Kyle, I think the easyest way to get around this problem
is to manually edit arch.c and replace strtoumax() with
strtoull().  This should allow you to get around the problem
where strtoumax() is not in libc.  I have made that change
in the current.  If you still have any problems please send
me more mail.

More information about the Bugs mailing list