Bug 97900 - [regression] nouveau_screen.c:230:2: error: implicit declaration of function ‘nouveau_drm_del’
Summary: [regression] nouveau_screen.c:230:2: error: implicit declaration of function ...
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Nouveau Project
QA Contact: Nouveau Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-23 01:51 UTC by David Ronis
Modified: 2016-09-23 03:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description David Ronis 2016-09-23 01:51:05 UTC
I'm building git-master versions of X and mesa on an x86_64 box running slackware.   I've been doing this for a long time.  My build fails with:

 CC     nouveau_screen.lo
nouveau_screen.c: In function ‘nouveau_init_screen2’:
nouveau_screen.c:105:8: error: implicit declaration of function ‘nouveau_drm_new’ [-Werror=implicit-function-declaration]
  ret = nouveau_drm_new(dri_screen->fd, &screen->drm);
        ^~~~~~~~~~~~~~~
nouveau_screen.c:111:8: error: implicit declaration of function ‘nouveau_device_new’ [-Werror=implicit-function-declaration]
  ret = nouveau_device_new(&screen->drm->client, NV_DEVICE,
        ^~~~~~~~~~~~~~~~~~
nouveau_screen.c:111:39: error: dereferencing pointer to incomplete type ‘struct nouveau_drm’
  ret = nouveau_device_new(&screen->drm->client, NV_DEVICE,
                                       ^~
nouveau_screen.c: In function ‘nouveau_destroy_screen’:
nouveau_screen.c:230:2: error: implicit declaration of function ‘nouveau_drm_del’ [-Werror=implicit-function-declaration]
  nouveau_drm_del(&screen->drm);
  ^~~~~~~~~~~~~~~

I;ve got the current git/master of xf86-video-nouveau installed.
Comment 1 Ilia Mirkin 2016-09-23 03:07:00 UTC
You have a local issue with your environment.

[A header moved in libdrm, if you don't have proper package management, you may be pulling in an old version of nouveau.h]


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.