Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288064 - x11-libs/libdrm-2.4.14 fails to build on x86-solaris
Summary: x11-libs/libdrm-2.4.14 fails to build on x86-solaris
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-07 15:01 UTC by Daniel Vergien
Modified: 2009-10-10 09:55 UTC (History)
0 users

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


Attachments
fixes includes (libdrm-2.4.14-nouveau_bo.patch,318 bytes, patch)
2009-10-07 15:02 UTC, Daniel Vergien
Details | Diff
fixes includes (libdrm-2.4.14-radeon_bo_gem.patch,371 bytes, patch)
2009-10-07 15:02 UTC, Daniel Vergien
Details | Diff
ebuild which includes both patches (libdrm-2.4.14.ebuild.patch,521 bytes, patch)
2009-10-07 15:05 UTC, Daniel Vergien
Details | Diff
libdrm-2.4.14-nouveau_bo.patch (libdrm-2.4.14-nouveau_bo.patch,375 bytes, patch)
2009-10-10 09:30 UTC, Daniel Vergien
Details | Diff
libdrm-2.4.14-radeon_bo_gem.patch (libdrm-2.4.14-radeon_bo_gem.patch,427 bytes, patch)
2009-10-10 09:30 UTC, Daniel Vergien
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Vergien 2009-10-07 15:01:58 UTC
libdrm fails to build on x86-solaris because of missing deceleration of ioctl in the files libdrm/nouveau/nouveau_bo.c and libdrm/radeon/radeon_bo_gem.c

According to the solaris man page of ioctl there has to be the following includes:
#include <unistd.h>
#include <stropts.h>

Pleas check if the includes break something on other platforms.

Reproducible: Always

Steps to Reproduce:
1. emerge libdrm (on solaris)
2.
3.

Actual Results:  
the build stops with errors

Expected Results:  
the package should build
Comment 1 Daniel Vergien 2009-10-07 15:02:28 UTC
Created attachment 206328 [details, diff]
fixes includes
Comment 2 Daniel Vergien 2009-10-07 15:02:46 UTC
Created attachment 206330 [details, diff]
fixes includes
Comment 3 Daniel Vergien 2009-10-07 15:05:40 UTC
Created attachment 206332 [details, diff]
ebuild which includes both patches
Comment 4 Fabian Groffen gentoo-dev 2009-10-09 15:16:20 UTC
unistd.h should never break, stropts.h needs a guard.
Comment 5 Daniel Vergien 2009-10-10 09:30:08 UTC
Created attachment 206629 [details, diff]
libdrm-2.4.14-nouveau_bo.patch

With __sun guard around includes
Comment 6 Daniel Vergien 2009-10-10 09:30:50 UTC
Created attachment 206631 [details, diff]
libdrm-2.4.14-radeon_bo_gem.patch

With __sun guard around includes
Comment 7 Fabian Groffen gentoo-dev 2009-10-10 09:55:08 UTC
ok, applied, thanks!