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

Bug 362239

Summary: net-im/mcabber-0.10.1: temporary fix of #277888 prevents successful compilation of the modules
Product: Gentoo Linux Reporter: Alexander Solovets <mbait>
Component: New packagesAssignee: Wolfram Schlich (RETIRED) <wschlich>
Status: RESOLVED FIXED    
Severity: normal CC: net-im
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 277888    
Attachments: Fixes the issue

Description Alexander Solovets 2011-04-05 21:36:46 UTC
After emerging mcabber I can't build its modules because of the error complaining about _FILE_OFFSET_BITS. The error appears because of the following inclusion chain: module -> <mcabber/xmpp.h> -> ... -> <mcabber/pgp.h> -> <gpgme.h>

Reproducible: Always

Steps to Reproduce:
1. Clone http://hg.lilotux.net/index.cgi/mod-mcabber-pep/ (perhaps any other)
2. Run `cmake . && make'
3. Get error complaining about _FILE_OFFSET_BITS
Actual Results:  
"append-flags -D_FILE_OFFSET_BITS=64" in ebuild caused incorrect work of AC_SYS_LARGEFILE macro which should actually take care about _FILE_OFFSET_BITS. As the result mcabber is compiled successfully but not its modules.

Expected Results:  
AC_SYS_LARGEFILE from configure.ac declares correct definition of _FILE_OFFSET_BITS in config.h which is shipped with mcabber headers and later is included by module sources. So the solution is straightforward - remove 'append-flags -D_FILE_OFFSET_BITS' from ebuild.
Comment 1 Alexander Solovets 2011-04-05 21:40:22 UTC
Created attachment 268649 [details, diff]
Fixes the issue
Comment 2 Wolfram Schlich (RETIRED) gentoo-dev 2012-03-15 15:23:57 UTC
Thanks and sorry for the delay, fixed in 0.10.1-r1.