nouveau xorg driver - compile error
Hello,
nouveau xorg driver from master git repository cannot be compiled on ubuntu precise. Here is build log:
Problem is somewhere in drmmode_display.c. Can somebody look at it and fix compile error problems?
Signature · 2 lines
Pali Rohár [email protected]
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Hi Pali,
maybe you are missing a package somewhere? Latest git is building fine for me on OBS/opensuse.
Greetings,
Tobias
Quoted 16 lines · Pali Rohár
Hello,
nouveau xorg driver from master git repository cannot be compiled on ubuntu precise. Here is build log:
Problem is somewhere in
drmmode_display.c. Can somebody look at it and fix compile error problems?_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 9 lines · Pali Rohár
Hello,
nouveau xorg driver from master git repository cannot be compiled on ubuntu precise. Here is build log:
Problem is somewhere in
drmmode_display.c. Can somebody look at it and fix compile error problems?
Don't know how best to fix it, but the problem is that xorg_list only exists in X server 1.12 and later, Ubuntu precise has 1.11.
Cheers,
Sven
Hi Pali,
If the future can you include the error message (plus a couple of lines of context) in the email ? Thanks.
Seems like the list* symbols got prefixed with xorg_ during the 1.12 development cycle (commit ca64912c02b), and your build uses 1.11.x.
I'm using xorg-server 1.15 so cannot really test this but the attached patch should help. Can you give it a try ?
Cheers,
Emil
Quoted 12 lines · Pali Rohár
Hello,
nouveau xorg driver from master git repository cannot be compiled on ubuntu precise. Here is build log:
Problem is somewhere in
drmmode_display.c. Can somebody look at it and fix compile error problems?
Quoted 5 lines
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
From d437ca90803ddf70190cdbaf617e815f6441f134 Mon Sep 17 00:00:00 2001
From: Emil Velikov <[email protected]>
Date: Tue, 1 Jul 2014 22:31:47 +0100
Subject: [PATCH] xorg_list: define the xorg_list* symbols
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
...when building against pre 1.12 x.
The build will fail as earlier versions of X were missing the xorg_ prefix of the symbols - struct and util functions.
--- configure.ac | 13 +++++++++++++ src/drmmode_display.c | 8 ++++++++ src/nv_driver.c | 5 +++++ 3 files changed, 26 insertions(+)
configure.ac +13 -0
@@ -127,6 +127,19 @@ AC_SUBST([DRIVER_NAME]) XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION +AC_CHECK_HEADERS([list.h], + [have_list_h="yes"], [have_list_h="no"], + [#include <X11/Xdefs.h> + #include "xorg-server.h"]) + +if test "x$have_list_h" = xyes; then + AC_CHECK_DECL(xorg_list_init, + [AC_DEFINE(HAVE_XORG_LIST, 1, [Have xorg_list API])], [], + [#include <X11/Xdefs.h> + #include "xorg-server.h" + #include "list.h"]) +fi + AC_MSG_CHECKING([whether to include GLAMOR support]) AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
src/drmmode_display.c +8 -0
@@ -126,6 +126,14 @@ drmmode_swap(ScrnInfoPtr scrn, uint32_t next, uint32_t *prev) drmmode->fb_id = next; } +#if !HAVE_XORG_LIST +#define xorg_list list +#define xorg_list_for_each_entry list_for_each_entry +#define xorg_list_for_each_entry_safe list_for_each_entry_safe +#define xorg_list_append list_append +#define xorg_list_del list_del +#endif +struct drmmode_event {struct xorg_list head;drmmode_ptr drmmode;
src/nv_driver.c +5 -0
@@ -37,6 +37,11 @@#include "nouveau_present.h" #include "nouveau_sync.h" +#if !HAVE_XORG_LIST +#define xorg_list_is_empty list_is_empty +#define xorg_list_for_each_entry list_for_each_entry +#endif +/* * Forward definitions for the functions that make up the driver. */
Signature · 1 line
2.0.0
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello,
Quoted 5 lines · On Tuesday 01 July 2014 23:39:45 Emil Velikov wrote:
Hi Pali,
If the future can you include the error message (plus a couple of lines of context) in the email ? Thanks.
Ok.
Quoted 4 lines
Seems like the list* symbols got prefixed with
xorg_during the 1.12 development cycle (commitca64912c02b), and your build uses 1.11.x.
Compilation failed with version 1.11.4.
Quoted 3 lines
I'm using xorg-server 1.15 so cannot really test this but the attached patch should help. Can you give it a try ?
I tried your patch and now nouveau driver with it compiled successfully. So thanks!
Quoted 22 lines
Cheers,
EmilQuoted 18 lines · Pali Rohár
Hello,
nouveau xorg driver from master git repository cannot be compiled on ubuntu precise. Here is build log:
https://launchpadlibrarian.net/179062836/buildlog_ubuntu-pre
cise-amd64.xserver-xorg-video-nouveau_1:1.0.10-git2014070108 17~ubuntu12.04.1_FAILEDTOBUILD.txt.gzProblem is somewhere in
drmmode_display.c. Can somebody look at it and fix compile error problems?_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Signature · 2 lines
Pali Rohár [email protected]
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau