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

Bug#710432: gdc-4.8: FTBFS on non-Linux: 'memicmp' was not declared in this scope



Source: gdc-4.8
Version: 4.8.0-2
Severity: serious
Justification: fails to build from source

The hurd-i386 build of gdc-4.8 failed:

  ../../src/gcc/d/dfrontend/doc.c: In function 'int icmp(const char*, void*, size_t)':
  ../../src/gcc/d/dfrontend/doc.c:1706:44: error: 'memicmp' was not declared in this scope
       return memicmp(stringz, (char *)s, slen);
                                              ^
  ../../src/gcc/d/dfrontend/doc.c: In function 'int isDitto(unsigned char*)':
  ../../src/gcc/d/dfrontend/doc.c:1719:42: error: 'memicmp' was not declared in this scope
           if (memicmp((char *)p, "ditto", 5) == 0 && *skipwhitespace(p + 5) == 0)
                                            ^
  ../../src/gcc/d/dfrontend/doc.c: In function 'size_t skippastURL(OutBuffer*, size_t)':
  ../../src/gcc/d/dfrontend/doc.c:1817:54: error: 'memicmp' was not declared in this scope
       if (length > 7 && memicmp((char *)p, "http://";, 7) == 0)
                                                        ^
  make[5]: *** [d/doc.dmd.o] Error 1

The problem appears to be that doc.c's inclusion of gnuc.h (which
declares memicmp) is conditional, occurring on Linux but not the Hurd
(or kFreeBSD, for that matter!)

Could you please take a look, and check for other affected files?

Thanks!


Reply to: