In the latest drm git tree, line 51 of drm/linux-core/drm_stub.c tries to
set world write permissions (0666), but the kernel's
include/linux/moduleparam.h (in linux 2.6.19-mm1) has a BUILD_BUG_ON_ZERO
check against that, so you get an "array has negative size" error.

 Changing S_IRUGO|S_IWUGO to S_IRUGO|S_IWUSR|S_IWGRP makes drm_stub.c
compile ok.  (So not really a patch; I hope my subject line didn't get your
hopes up :)

 I should admit that I don't really know much about git;  I followed the
build instructions on the wiki (successfully; good instructions BTW), and did a
git clone git://anongit.freedesktop.org/git/mesa/drm
a few days ago.  Today I did a  git pull.  AFAICT, the latest commit in my
copy of the tree is 38ed67196f4ba891568c5ff66e67ced341696eb9, 2006/12/15.

 Using gitk, I see the commit that actually changed 0600 to S_IRUGO|S_IWUGO was
fa50e2b5132b84353ae964a39c3b10ea270d15e8 (Switch linux-core over to 2.6
parameter model to enable debug use), 2004/10/18.


 Now there's another compile error:
[EMAIL PROTECTED]:/usr/local/src/g965/drm/linux-core$ make
make -C /lib/modules/2.6.19-mm1/source  SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[1]: Entering directory `/usr/local/src/linux/linux-2.6.19-mm1'
  CC [M]  /usr/local/src/g965/drm/linux-core/drm_bo.o
/usr/local/src/g965/drm/linux-core/drm_bo.c: In function 
'drm_bo_destroy_locked':
/usr/local/src/g965/drm/linux-core/drm_bo.c:198: warning: passing argument 1 of 
'schedule_delayed_work' from incompatible pointer type
/usr/local/src/g965/drm/linux-core/drm_bo.c: In function 
'drm_bo_delayed_workqueue':
/usr/local/src/g965/drm/linux-core/drm_bo.c:370: warning: passing argument 1 of 
'schedule_delayed_work' from incompatible pointer type
/usr/local/src/g965/drm/linux-core/drm_bo.c: In function 'drm_bo_driver_finish':
/usr/local/src/g965/drm/linux-core/drm_bo.c:1864: warning: passing argument 1 
of 'cancel_delayed_work' from incompatible pointer type
/usr/local/src/g965/drm/linux-core/drm_bo.c:1907:51: error: macro "INIT_WORK" 
passed 3 arguments, but takes just 2
/usr/local/src/g965/drm/linux-core/drm_bo.c: In function 'drm_bo_driver_init':
/usr/local/src/g965/drm/linux-core/drm_bo.c:1907: error: 'INIT_WORK' undeclared 
(first use in this function)
/usr/local/src/g965/drm/linux-core/drm_bo.c:1907: error: (Each undeclared 
identifier is reported only once
/usr/local/src/g965/drm/linux-core/drm_bo.c:1907: error: for each function it 
appears in.)
make[2]: *** [/usr/local/src/g965/drm/linux-core/drm_bo.o] Error 1
make[1]: *** [_module_/usr/local/src/g965/drm/linux-core] Error 2
make[1]: Leaving directory `/usr/local/src/linux/linux-2.6.19-mm1'
make: *** [modules] Error 2

-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X([EMAIL PROTECTED] , des.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BC

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to