bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #18961] configure enables both HANDLE_LLONG_MAX and HANDLE_LONG_LON


From: Nikolaus Waxweiler
Subject: [bug #18961] configure enables both HANDLE_LLONG_MAX and HANDLE_LONG_LONG_MAX, resulting in a build error in GSFormat.m on FBSD 6.2
Date: Mon, 05 Feb 2007 14:08:19 +0000
User-agent: Opera/9.10 (X11; FreeBSD 6 i386; U; en)

Follow-up Comment #5, bug #18961 (project gnustep):

I found the error. GCC 4.3.0 brings its own limits.h which defines
LONG_LONG_MAX. Says cpp43 on my system when I paste the test code from
configure and add "LONG_LONG_MAX" and "LLONG_MAX":


#ifndef _GNU_SOURCE
        #define _GNU_SOURCE
        #endif
        #ifdef HAVE_STDINT_H
        #include <stdint.h>
        #endif
        #include <limits.h>
        #if defined(LONG_LONG_MAX)
        #if LONG_MAX == LONG_LONG_MAX
        #error long max equals long long max
        #endif
        #else
        #error long long max not defined
        #endif

LONG_LONG_MAX

LLONG_MAX
^D
[snip]

# 1 "/usr/include/sys/syslimits.h" 1 3 4
# 132 "/usr/include/limits.h" 2 3 4
# 123
"/usr/local/lib/gcc-4.3.0/gcc/i386-portbld-freebsd6.1/4.3.0/include/limits.h"
2 3 4
# 8
"/usr/local/lib/gcc-4.3.0/gcc/i386-portbld-freebsd6.1/4.3.0/include/syslimits.h"
2 3 4
# 12
"/usr/local/lib/gcc-4.3.0/gcc/i386-portbld-freebsd6.1/4.3.0/include/limits.h"
2 3 4
# 8 "<stdin>" 2
# 16 "<stdin>"
9223372036854775807LL

0x7fffffffffffffffLL


So they are both defined and both aliases for one and the same number. Now,
"./configure CC=gcc43 CPP=cpp43" tests things under gcc43 conditions but
doesn't actually set the compiler to gcc43 when gmaking, I have to explicitly
say "gmake CC=gcc43". Duh! I should have noticed this earlier.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?18961>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]