Discussion:
libtool -D_FILE_OFFSET_BITS= (empty) breaks build
Add Reply
Simon McVittie
2024-10-29 14:40:01 UTC
Reply
Permalink
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
Jakub Wilk
2024-10-29 15:10:01 UTC
Reply
Permalink
Post by Simon McVittie
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
Simon McVittie
2024-10-29 15:40:01 UTC
Reply
Permalink
Post by Jakub Wilk
$ 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

Loading...