Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251121 - games-arcade/kobodeluxe fails to build with glibc-2.9_p20081201-r1
Summary: games-arcade/kobodeluxe fails to build with glibc-2.9_p20081201-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 254710 (view as bug list)
Depends on:
Blocks: glibc-2.9
  Show dependency tree
 
Reported: 2008-12-16 10:52 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-01-13 01:40 UTC (History)
3 users (show)

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


Attachments
Build log (kobodeluxe-0.5.1:20081214-220121.log,36.08 KB, text/plain)
2008-12-16 10:54 UTC, Diego Elio Pettenò (RETIRED)
Details
Patch for gcc-4.3 to fix name collision (kobodeluxe-gcc-4.3.patch,2.34 KB, patch)
2008-12-28 15:45 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-16 10:52:30 UTC
Check attached build log.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-16 10:54:20 UTC
Created attachment 175422 [details]
Build log
Comment 2 Martin Väth 2008-12-28 15:45:24 UTC
Created attachment 176621 [details, diff]
Patch for gcc-4.3 to fix name collision

This is an unfortunate name collision of the variable "pipe2" from the game with the (apparently newly introduced) function pipe2() from unistd.h

It would be sufficient to rename all occurences of "pipe2" into e.g. "pipetwo", but to keep the sourcecode somewhat consistent, the attached patch also renames "pipe1" into "pipeone".
Comment 3 Martin Väth 2008-12-28 16:14:18 UTC
I change the summary and blocker of this bug: I checked my emerge.log and found that I had compiled kobodeluxe successfully with gcc-4.3.1, glibc-2.8_p20080602, and linux-headers-2.6.25-r4.

So I guess that pipe2() was introduced (or implemented in a rather different way) with either glibc-2.9 or with some new kernel headers.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-28 16:20:48 UTC
Ah yes Martin, that seems to be it, most likely glibc 2.9. I should have tried to not do both updates in the tinderbox at once.
Comment 5 SpanKY gentoo-dev 2009-01-10 07:54:17 UTC
patch looks fine if someone wants to cleanup and commit.  glibc-2.9 adds support for the new pipe2() function.

http://dev.gentoo.org/~vapier/clean-patches
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-01-12 22:34:41 UTC
*** Bug 254710 has been marked as a duplicate of this bug. ***
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2009-01-13 01:01:26 UTC
in portage.  thanks for the bug report and patch.
Comment 8 Jimmy.Jazz 2009-01-13 01:40:37 UTC
(In reply to comment #6)
> *** Bug 254710 has been marked as a duplicate of this bug. ***
> 
I didn't remember where it came from. Sorry for the duplicate.