Ez az, amit nem lehet megunni AIX vs grep-2.9


checking whether  uses 'inline' correctly... no
configure: error:  cannot be used with this compiler
This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
C99 mode.
You have four options:
  - Add the flag -fgnu89-inline to CC and reconfigure, or
  - Fix your include files, using parts of
    , or
  - Use a gcc version older than 4.3, or
  - Don't use the flags -std=c99 or -std=gnu99.

Hozzászólások

Szerkesztve: 2021. 02. 17., sze – 22:32

IBM tudósai elhelyeztek egy ilyen részt a wchar.h -ba:


static long double wcstold(const wchar_t * __restrict__ __a, wchar_t ** __restrict__ __b) {
        return ((long double)wcstod (__a, __b));
}

A configure jeles fejlesztői pedig egy ilyen tesztet futtatnak:

#define wcstod renamed_wcstod
#include <wchar.h>
int main (void) {}

Az eredmény:

ld: 0711-317 ERROR: Undefined symbol: .renamed_wcstod
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
configure:7003: result: no

Végül ennyi kellett csak:

export gl_cv_header_wchar_h_correct_inline=yes

Hatása:

checking whether  uses 'inline' correctly... (cached) yes

Ezt most újrafelhasználta a texinfo-6.7
Még jó, hogy van ez a hup blog.