Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541388 - x11-drivers/xf86-video-virtualbox-4.3.18/work/vboxvideo_drm/vboxvideo_drm.c:125:17: error: ‘drm_mmap’ undeclared here (not in a function)
Summary: x11-drivers/xf86-video-virtualbox-4.3.18/work/vboxvideo_drm/vboxvideo_drm.c:1...
Status: RESOLVED DUPLICATE of bug 541050
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal normal with 1 vote (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-26 01:39 UTC by Boris Britva
Modified: 2015-04-01 18:29 UTC (History)
0 users

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


Attachments
build.log (build.log.gz,92.71 KB, application/gzip)
2015-02-26 01:39 UTC, Boris Britva
Details
emerge --info (emerge.info.log,13.44 KB, text/x-log)
2015-02-26 01:42 UTC, Boris Britva
Details
emerge -pqv (emerge.pqv.log,96 bytes, text/x-log)
2015-02-26 01:43 UTC, Boris Britva
Details
environment (environment,146.68 KB, text/plain)
2015-02-26 01:45 UTC, Boris Britva
Details
my /usr/src/linux/.config (config,69.91 KB, text/plain)
2015-02-26 01:46 UTC, Boris Britva
Details
Patch that fixes drm_mmap relocation. (vboxvideo-drm-fix-mmap-relocation.patch,857 bytes, patch)
2015-02-27 12:39 UTC, Chris Bass
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Britva 2015-02-26 01:39:05 UTC
Created attachment 397522 [details]
build.log

After upgrading the kernel (from 3.17.8-gentoo-r1 to 3.18.7-gentoo) I ran the emerge @x11-module-rebuil and got the error.
Comment 1 Boris Britva 2015-02-26 01:42:08 UTC
Created attachment 397524 [details]
emerge --info
Comment 2 Boris Britva 2015-02-26 01:43:26 UTC
Created attachment 397526 [details]
emerge -pqv
Comment 3 Boris Britva 2015-02-26 01:45:28 UTC
Created attachment 397528 [details]
environment
Comment 4 Boris Britva 2015-02-26 01:46:43 UTC
Created attachment 397530 [details]
my /usr/src/linux/.config
Comment 5 Chris Bass 2015-02-27 12:39:41 UTC
Created attachment 397602 [details, diff]
Patch that fixes drm_mmap relocation.

I've had exactly the same issue after upgrading my kernel to 3.18.7.

The reason for this error is that in the kernel the declaration of the drm_mmap function was relocated from drmP.h to drm_legacy.h (see https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/include/drm/drmP.h?id=bfbf3c851ce53b914fe98d60ea3fe3fc1ab75b96).

The attached patch fixed this on my system by #including the drm_legacy.h header and changing the drm_mmap references in vboxvideo_drm.c to drm_legacy_mmap.

But I guess the fact that drm_mmap has been moved into a legacy header suggests that perhaps there's a better function that vboxvideo_drm.c should be using instead...?
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-03-24 09:43:15 UTC
This is probably a duplicate of bug 541050 and reportedly fixed in xf86-video-virtualbox-4.3.26
Comment 7 SpanKY gentoo-dev 2015-04-01 18:29:55 UTC

*** This bug has been marked as a duplicate of bug 541050 ***