• Re: libtool -D_FILE_OFFSET_BITS= (empty) breaks build

    From Simon McVittie@21:1/5 to Dennis van Dok on Tue Oct 29 15:40:01 2024
    On Tue, 29 Oct 2024 at 14:52:17 +0100, Dennis van Dok wrote:
    https://buildd.debian.org/status/fetch.php?pkg=lcmaps&arch=amd64&ver=1.6.6-3.1%2Bb2&stamp=1730151515&file=log

    libtool sets [_FILE_OFFSET_BITS] 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.

    libtool is not choosing to set this to an empty string: some higher-level component (perhaps Autoconf or Automake or the package-specific build
    system) is asking libtool to set _FILE_OFFSET_BITS empty (by giving it the command-line option "-D_FILE_OFFSET_BITS="), and libtool is obediently
    passing on that option to gcc.

    I recently uploaded dbus_1.14.10-6 which is another
    autoconf/automake/libtool package, and that built successfully on all
    release and -ports architectures (except for alpha and hppa where it has
    not been tried yet), so it seems like this is not a completely general
    problem with autoconf/automake/libtool or with dpkg-buildflags.

    I would suggest looking for the root cause in some higher-level component
    or in the lcmaps package itself.

    smcv

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jakub Wilk@21:1/5 to All on Tue Oct 29 16:10:01 2024
    * Simon McVittie <smcv@debian.org>, 2024-10-29 14:38:
    I would suggest looking for the root cause in some higher-level
    component or in the lcmaps package itself.

    $ grep -rP 'D_FILE_OFFSET_BITS=(?!64)' /usr /usr/lib/x86_64-linux-gnu/pkgconfig/globus-common.pc:Cflags: -D_FILE_OFFSET_BITS= -I${includedir}

    --
    Jakub Wilk

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon McVittie@21:1/5 to Jakub Wilk on Tue Oct 29 16:40:01 2024
    On Tue, 29 Oct 2024 at 16:03:17 +0100, Jakub Wilk wrote:
    $ grep -rP 'D_FILE_OFFSET_BITS=(?!64)' /usr /usr/lib/x86_64-linux-gnu/pkgconfig/globus-common.pc:Cflags: -D_FILE_OFFSET_BITS= -I${includedir}

    Thanks, I've reported <https://bugs.debian.org/1086241> (plus a wishlist
    bug report suggesting the addition of a superficial autopkgtest to globus-common, which would probably have detected this).

    smcv

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)