Re: Namespaces I guess....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good morning,

At first guess, I'd say that somehow NOUVEAU_PRIVATE not getting defined
properly or is defined in some fashion that the compiler doesn't like.

You can run that file through te pre-processor (gcc -E, as opposed to gcc
-c) and look at the output and see what NOUVEAU_PRIVATE is defined as.

-brian


On 1/29/09 7:36 AM, "Yan Seiner" <yan@xxxxxxxxxx> wrote:

> OK, I'm a total newb when it comes to namespaces... I think that's what
> I'm running into...
> 
> I'm trying to build nouveau form xorg. The compile fails with:
> 
> gcc -DHAVE_CONFIG_H -I. -I.. -D_XOPEN_SOURCE=500 -I
> -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -g -O2
> -Wall -minline-all-stringops -D_XOPEN_SOURCE=500 -I
> -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -MT
> nouveau_device.lo -MD -MP -MF .deps/nouveau_device.Tpo -c
> nouveau_device.c -fPIC -DPIC -o .libs/nouveau_device.o
> In file included from nouveau_device.c:27:
> nouveau_drmif.h:47: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:51: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:54: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?void¹
> nouveau_drmif.h:57: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:60: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:96: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:100: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?void¹
> nouveau_drmif.h:108: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:110: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:112: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?void¹
> nouveau_drmif.h:123: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:127: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?void¹
> nouveau_drmif.h:130: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?void¹
> nouveau_drmif.h:133: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?uint32_t¹
> nouveau_drmif.h:136: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?uint32_t¹
> nouveau_drmif.h:139: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:161: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:165: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:168: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?int¹
> nouveau_drmif.h:171: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?void¹
> nouveau_drmif.h:174: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?void¹
> nouveau_drmif.h:179: error: expected ?=¹, ?,¹, ?;¹, ?asm¹ or
> ?__attribute__¹ before ?void¹
> nouveau_device.c: In function ?nouveau_device_open_existing¹:
> nouveau_device.c:53: warning: implicit declaration of function
> ?nouveau_device_get_param¹
> make[2]: *** [nouveau_device.lo] Error 1
> make[2]: Leaving directory `/usr/src/nouveau/xf86-video-nouveau/src'
> 
> 
> The first offending line is here:
> 
> NOUVEAU_PRIVATE int
> nouveau_device_open_existing(struct nouveau_device **, int close,
> int fd, drm_context_t ctx);
> 
> The rest of the errors are for similar syntax.
> 
> What am I looking for? Is there a compiler setting I'm missing?
> 
> selene:/usr/src/nouveau/xf86-video-nouveau# gcc --version
> gcc (Debian 4.3.1-9) 4.3.1
> 
> 
> Thanks,
> 
> --Yan

-- 




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux