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

libtool -D_FILE_OFFSET_BITS= (empty) breaks build



I just got report

https://buildd.debian.org/status/fetch.php?pkg=lcmaps&arch=amd64&ver=1.6.6-3.1%2Bb2&stamp=1730151515&file=log

which shows an error:

In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from ../../src/lcmaps_account.c:59:
/usr/include/features.h:398:52: error: operator '&&' has no right operand
  398 | #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
      |                                                    ^~
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from ../../src/lcmaps.c:94:
/usr/include/features.h:398:52: error: operator '&&' has no right operand
  398 | #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
      |                                                    ^~

Which is true because libtool sets this to an empty string. What I think was supposed
to happen is not defining this at all; leaving it empty makes the expression syntax
invalid.

Anybody else see this?

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Reply to: