Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548962 - >dev-build/autoconf-2.13 incorrectly handles detection of 32 bit off_t
Summary: >dev-build/autoconf-2.13 incorrectly handles detection of 32 bit off_t
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Blocks: lfs-tracker
  Show dependency tree
Reported: 2015-05-09 06:34 UTC by Adam Feldman
Modified: 2024-01-15 16:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

autoconf-all-32bit_off_t_fix.patch (file_548962.txt,1.11 KB, text/plain)
2015-05-09 06:34 UTC, Adam Feldman

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Feldman gentoo-dev 2015-05-09 06:34:14 UTC
Created attachment 402876 [details]

This is an upstream issue.  I'm unaware if upstream is aware of the issue.  All versions in tree including 9999 but excluding 2.13 are affected.

To detect the size of off_t, autoconf does a bitshift of 62 when dealing with both 64bit and 32 bit code.  This is handled appropriately by shifting by 31 twice.  The attached patch is from Debian.
Comment 1 SpanKY gentoo-dev 2015-05-10 16:40:26 UTC
it does not look like Debian notified upstream.  this really should be sent there first.

also worth noting: any package using 32bit off_t in Gentoo is broken and needs to be fixed in which case this report is mostly moot :).  see bug 471102 for details.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2015-05-21 08:00:44 UTC
Just to do it formally have you sent this / notified upstream? Otehr potential viewers will also know.