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

Bug 277774

Summary: dev-util/kdbg: fails to build with glibc-2.10
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 270353    
Attachments: Build log
fixes compile with glibc-2.10.1

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-14 09:11:29 UTC
There are a few changes in glibc-2.10 that might make your software fail to build with it, please refer to my blog post [1] if you're not sure what the problem is. Also make sure to fix it rather than sidestepping the issue [2] and [3].

And no I don't usually provide emerge --info with these bugs because they are caused by glibc-2.10!

Thanks, Diego

[1] http://blog.flameeyes.eu/2009/05/24/c-libraries-galore
[2] http://blog.flameeyes.eu/2009/07/02/how-_not_-to-fix-gcc-4-4-bugs
[3] http://blog.flameeyes.eu/2009/07/08/how-_not_-to-fix-glibc-2-10-function-collisions
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-14 09:12:22 UTC
Created attachment 197887 [details]
Build log
Comment 2 Evan Teran 2009-08-02 02:17:37 UTC
Created attachment 199875 [details, diff]
fixes compile with glibc-2.10.1

this is a quick and easy patch for kdbg. Basically it addresses the issue of things like this:

const char *p = ...;
char *s = strchr(p, x); /* drops the const! */
Comment 3 Evan Teran 2009-08-02 02:19:05 UTC
I forgot to mention, this patch is for kdb-2.1.1. appears to apply cleanly against 2.1.0 as well.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-08-08 22:09:44 UTC
  08 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> kdbg-2.1.1.ebuild,
+  +files/kdbg-2.1.1-glibc-2.10.patch:
+  Fix building with GLIBC 2.10+ wrt #277774, thanks to Evan Teran for patch.