Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 548962

Summary: >dev-build/autoconf-2.13 incorrectly handles detection of 32 bit off_t
Product: Gentoo Linux Reporter: Adam Feldman <np-hardass>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742780
See Also: http://bugs.debian.org/742780
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 471102    
Attachments: autoconf-all-32bit_off_t_fix.patch

Description Adam Feldman gentoo-dev 2015-05-09 06:34:14 UTC
Created attachment 402876 [details]
autoconf-all-32bit_off_t_fix.patch

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.