Results 1 to 3 of 3
i decided to try to compile my own kernel. so, i went to kernel.org and downloaded 2.6.12. i configured it and i make. after a while, it stops with a ...
- 08-12-2005 #1Just Joined!
- Join Date
- Mar 2005
- Posts
- 17
compiling the kernel
i decided to try to compile my own kernel. so, i went to kernel.org and downloaded 2.6.12. i configured it and i make. after a while, it stops with a whole lot of errors about drm. im not sure if this is all of it, but this is as far up as i can scroll.
what do i do?Code:drivers/char/drm/gamma_context.h: In function 'DRM': drivers/char/drm/gamma_context.h:381: error: 'filp' undeclared (first use in this function) drivers/char/drm/gamma_context.h:382: error: 'struct drm_file' has no member named 'dev' drivers/char/drm/gamma_context.h:383: error: 'arg' undeclared (first use in this function) drivers/char/drm/gamma_context.h: At top level: drivers/char/drm/gamma_context.h:413: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_context.h:413: warning: function declaration isn't a prototype drivers/char/drm/gamma_context.h:413: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_context.h: In function 'DRM': drivers/char/drm/gamma_context.h:414: error: 'filp' undeclared (first use in this function) drivers/char/drm/gamma_context.h:415: error: 'struct drm_file' has no member named 'dev' drivers/char/drm/gamma_context.h:418: error: 'arg' undeclared (first use in this function) drivers/char/drm/gamma_context.h:421: error: 'context_switch' undeclared (first use in this function) drivers/char/drm/gamma_context.h:421: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_context.h:422: warning: control reaches end of non-void function drivers/char/drm/gamma_context.h: At top level: drivers/char/drm/gamma_context.h:426: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_context.h:426: warning: function declaration isn't a prototype drivers/char/drm/gamma_context.h:426: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_context.h: In function 'DRM': drivers/char/drm/gamma_context.h:427: error: 'filp' undeclared (first use in this function) drivers/char/drm/gamma_context.h:428: error: 'struct drm_file' has no member named 'dev' drivers/char/drm/gamma_context.h:431: error: 'arg' undeclared (first use in this function) drivers/char/drm/gamma_context.h:434: error: 'context_switch_complete' undeclared (first use in this function) drivers/char/drm/gamma_context.h:434: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_context.h: At top level: drivers/char/drm/gamma_context.h:441: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_context.h:441: warning: function declaration isn't a prototype drivers/char/drm/gamma_context.h:441: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_context.h: In function 'DRM': drivers/char/drm/gamma_context.h:442: error: 'filp' undeclared (first use in this function) drivers/char/drm/gamma_context.h:443: error: 'struct drm_file' has no member named 'dev' drivers/char/drm/gamma_context.h:448: error: 'arg' undeclared (first use in this function) drivers/char/drm/gamma_context.h:474: error: 'waitlist_get' undeclared (first use in this function) drivers/char/drm/gamma_context.h:474: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_context.h:475: error: 'free_buffer' undeclared (first use in this function) drivers/char/drm/gamma_context.h:475: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_drv.c:43:21: error: drm_dma.h: No such file or directory In file included from drivers/char/drm/gamma_drv.c:44: drivers/char/drm/gamma_old_dma.h: At top level: drivers/char/drm/gamma_old_dma.h:37: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_old_dma.h:37: warning: function declaration isn't a prototype drivers/char/drm/gamma_old_dma.h:37: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_old_dma.h: In function 'DRM': drivers/char/drm/gamma_old_dma.h:38: error: 'dev' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:40: error: 'struct drm_device_dma' has no member named 'next_buffer' drivers/char/drm/gamma_old_dma.h:41: error: 'struct drm_device_dma' has no member named 'next_queue' drivers/char/drm/gamma_old_dma.h:41: error: 'struct drm_device_dma' has no member named 'next_queue' drivers/char/drm/gamma_old_dma.h:41: error: 'struct drm_device_dma' has no member named 'next_queue' drivers/char/drm/gamma_old_dma.h:41: error: 'struct drm_device_dma' has no member named 'next_queue' drivers/char/drm/gamma_old_dma.h:41: error: 'struct drm_device_dma' has no member named 'next_queue' drivers/char/drm/gamma_old_dma.h:41: error: 'struct drm_device_dma' has no member named 'next_queue' drivers/char/drm/gamma_old_dma.h:42: error: 'struct drm_device_dma' has no member named 'next_queue' drivers/char/drm/gamma_old_dma.h:44: error: 'struct drm_device_dma' has no member named 'next_queue' drivers/char/drm/gamma_old_dma.h:45: warning: no return statement in function returning non-void drivers/char/drm/gamma_old_dma.h:45: warning: control reaches end of non-void function drivers/char/drm/gamma_old_dma.h: At top level: drivers/char/drm/gamma_old_dma.h:48: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_old_dma.h:48: warning: function declaration isn't a prototype drivers/char/drm/gamma_old_dma.h:48: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_old_dma.h: In function 'DRM': drivers/char/drm/gamma_old_dma.h:53: error: 'dev' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:97: error: 'wrapper' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h: At top level: drivers/char/drm/gamma_old_dma.h:116: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_old_dma.h:116: warning: function declaration isn't a prototype drivers/char/drm/gamma_old_dma.h:116: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_old_dma.h: In function 'DRM': drivers/char/drm/gamma_old_dma.h:117: error: 'filp' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:118: error: 'struct drm_file' has no member named 'dev' drivers/char/drm/gamma_old_dma.h:129: error: 'd' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:173: error: 'alloc' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:173: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_old_dma.h:222: error: 'free_buffer' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:222: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_old_dma.h:224: error: 'waitlist_put' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:224: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_old_dma.h:233: error: 'free' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:233: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_old_dma.h: At top level: drivers/char/drm/gamma_old_dma.h:240: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_old_dma.h:240: warning: function declaration isn't a prototype drivers/char/drm/gamma_old_dma.h:240: error: redefinition of 'DRM' drivers/char/drm/gamma_old_dma.h:116: error: previous definition of 'DRM' was here drivers/char/drm/gamma_old_dma.h: In function 'DRM': drivers/char/drm/gamma_old_dma.h:241: error: 'filp' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:242: error: 'struct drm_file' has no member named 'dev' drivers/char/drm/gamma_old_dma.h:247: error: 'd' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:248: error: 'freelist_get' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:248: error: 'order' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:249: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_old_dma.h: At top level: drivers/char/drm/gamma_old_dma.h:276: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_old_dma.h:276: warning: function declaration isn't a prototype drivers/char/drm/gamma_old_dma.h:276: error: redefinition of 'DRM' drivers/char/drm/gamma_old_dma.h:240: error: previous definition of 'DRM' was here drivers/char/drm/gamma_old_dma.h: In function 'DRM': drivers/char/drm/gamma_old_dma.h:281: error: 'dma' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:281: error: called object 'DRM(order)' is not a function drivers/char/drm/gamma_old_dma.h:284: error: 'dma_get_buffers_of_order' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:284: error: 'filp' undeclared (first use in this function) drivers/char/drm/gamma_old_dma.h:284: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_old_dma.h:295: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_old_dma.h:308: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_drv.c:45:26: error: drm_drawable.h: No such file or directory drivers/char/drm/gamma_drv.c:46:21: error: drm_drv.h: No such file or directory drivers/char/drm/gamma_drv.c:48:22: error: drm_fops.h: No such file or directorydrivers/char/drm/gamma_drv.c:49:22: error: drm_init.h: No such file or directorydrivers/char/drm/gamma_drv.c:50:23: error: drm_ioctl.h: No such file or directory drivers/char/drm/gamma_drv.c:51:21: error: drm_irq.h: No such file or directory In file included from drivers/char/drm/gamma_drv.c:52: drivers/char/drm/gamma_lists.h: At top level: drivers/char/drm/gamma_lists.h:36: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lists.h:36: warning: function declaration isn't a prototype drivers/char/drm/gamma_lists.h:36: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lists.h: In function 'DRM': drivers/char/drm/gamma_lists.h:37: error: 'bl' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:39: error: 'alloc' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:40: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lists.h:44: error: 'count' undeclared (first use in this function) drivers/char/drm/gamma_lists.h: At top level: drivers/char/drm/gamma_lists.h:54: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lists.h:54: warning: function declaration isn't a prototype drivers/char/drm/gamma_lists.h:54: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lists.h: In function 'DRM': drivers/char/drm/gamma_lists.h:55: error: 'bl' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:56: error: 'free' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:58: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lists.h: At top level: drivers/char/drm/gamma_lists.h:68: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lists.h:68: warning: function declaration isn't a prototype drivers/char/drm/gamma_lists.h:68: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lists.h: In function 'DRM': drivers/char/drm/gamma_lists.h:72: error: 'bl' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:74: error: 'buf' undeclared (first use in this function) drivers/char/drm/gamma_lists.h: At top level: drivers/char/drm/gamma_lists.h:89: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lists.h:89: warning: function declaration isn't a prototype drivers/char/drm/gamma_lists.h:89: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lists.h: In function 'DRM': drivers/char/drm/gamma_lists.h:93: error: 'bl' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:97: warning: return makes integer from pointer without a cast drivers/char/drm/gamma_lists.h:102: warning: return makes integer from pointer without a cast drivers/char/drm/gamma_lists.h: At top level: drivers/char/drm/gamma_lists.h:106: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lists.h:106: warning: function declaration isn't a prototype drivers/char/drm/gamma_lists.h:106: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lists.h: In function 'DRM': drivers/char/drm/gamma_lists.h:107: error: 'bl' undeclared (first use in this function) drivers/char/drm/gamma_lists.h: At top level: drivers/char/drm/gamma_lists.h:119: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lists.h:119: warning: function declaration isn't a prototype drivers/char/drm/gamma_lists.h:119: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lists.h: In function 'DRM': drivers/char/drm/gamma_lists.h:120: error: 'bl' undeclared (first use in this function) drivers/char/drm/gamma_lists.h: At top level: drivers/char/drm/gamma_lists.h:126: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lists.h:126: warning: function declaration isn't a prototype drivers/char/drm/gamma_lists.h:126: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lists.h: In function 'DRM': drivers/char/drm/gamma_lists.h:127: error: 'dev' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:134: error: 'buf' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:138: error: 'bl' undeclared (first use in this function) drivers/char/drm/gamma_lists.h: At top level: drivers/char/drm/gamma_lists.h:161: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lists.h:161: warning: function declaration isn't a prototype drivers/char/drm/gamma_lists.h:161: error: redefinition of 'DRM' drivers/char/drm/gamma_lists.h:126: error: previous definition of 'DRM' was heredrivers/char/drm/gamma_lists.h: In function 'DRM': drivers/char/drm/gamma_lists.h:164: error: 'bl' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:164: warning: return makes integer from pointer without a cast drivers/char/drm/gamma_lists.h:170: warning: return makes integer from pointer without a cast drivers/char/drm/gamma_lists.h:184: warning: return makes integer from pointer without a cast drivers/char/drm/gamma_lists.h: At top level: drivers/char/drm/gamma_lists.h:188: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lists.h:188: warning: function declaration isn't a prototype drivers/char/drm/gamma_lists.h:188: error: redefinition of 'DRM' drivers/char/drm/gamma_lists.h:161: error: previous definition of 'DRM' was heredrivers/char/drm/gamma_lists.h: In function 'DRM': drivers/char/drm/gamma_lists.h:192: error: 'bl' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:192: warning: return makes integer from pointer without a cast drivers/char/drm/gamma_lists.h:198: error: 'block' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:203: error: 'freelist_try' undeclared (first use in this function) drivers/char/drm/gamma_lists.h:203: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lists.h:210: warning: return makes integer from pointer without a cast drivers/char/drm/gamma_lists.h:213: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lists.h:214: warning: control reaches end of non-void function drivers/char/drm/gamma_drv.c:53:22: error: drm_lock.h: No such file or directoryIn file included from drivers/char/drm/gamma_drv.c:54: drivers/char/drm/gamma_lock.h: At top level: drivers/char/drm/gamma_lock.h:36: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lock.h:36: warning: function declaration isn't a prototype drivers/char/drm/gamma_lock.h:36: error: redefinition of 'DRM' drivers/char/drm/gamma_lists.h:188: error: previous definition of 'DRM' was heredrivers/char/drm/gamma_lock.h: In function 'DRM': drivers/char/drm/gamma_lock.h:39: error: 'dev' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:39: error: 'context' undeclared (first use in this function) drivers/char/drm/gamma_lock.h: At top level: drivers/char/drm/gamma_lock.h:69: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lock.h:69: warning: function declaration isn't a prototype drivers/char/drm/gamma_lock.h:69: error: redefinition of 'DRM' drivers/char/drm/gamma_lock.h:36: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lock.h: In function 'DRM': drivers/char/drm/gamma_lock.h:70: error: 'dev' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:70: error: 'context' undeclared (first use in this function) drivers/char/drm/gamma_lock.h: At top level: drivers/char/drm/gamma_lock.h:87: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lock.h:87: warning: function declaration isn't a prototype drivers/char/drm/gamma_lock.h:87: error: redefinition of 'DRM' drivers/char/drm/gamma_lock.h:69: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lock.h: In function 'DRM': drivers/char/drm/gamma_lock.h:93: error: 'flags' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:94: error: 'flush_queue' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:94: error: 'dev' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:94: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lock.h:95: error: 'context' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:95: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lock.h:99: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lock.h: At top level: drivers/char/drm/gamma_lock.h:106: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lock.h:106: warning: function declaration isn't a prototype drivers/char/drm/gamma_lock.h:106: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lock.h: In function 'DRM': drivers/char/drm/gamma_lock.h:112: error: 'flags' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:113: error: 'flush_unblock_queue' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:113: error: 'dev' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:113: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lock.h:114: error: 'context' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:114: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lock.h:118: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lock.h: At top level: drivers/char/drm/gamma_lock.h:127: error: 'DRM' declared as function returning a function drivers/char/drm/gamma_lock.h:127: warning: function declaration isn't a prototype drivers/char/drm/gamma_lock.h:127: error: redefinition of 'DRM' drivers/char/drm/gamma_context.h:96: error: previous definition of 'DRM' was here drivers/char/drm/gamma_lock.h: In function 'DRM': drivers/char/drm/gamma_lock.h:128: error: 'filp' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:129: error: 'struct drm_file' has no member named 'dev' drivers/char/drm/gamma_lock.h:135: error: 'arg' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:137: error: 'flush_block_and_flush' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:137: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_lock.h:138: error: 'flush_unblock' undeclared (first use in this function) drivers/char/drm/gamma_lock.h:138: error: called object 'DRM(<erroneous-expression>)' is not a function drivers/char/drm/gamma_drv.c:56:22: error: drm_proc.h: No such file or directorydrivers/char/drm/gamma_drv.c:57:20: error: drm_vm.h: No such file or directory drivers/char/drm/gamma_drv.c:58:22: error: drm_stub.h: No such file or directorydrivers/char/drm/gamma_drv.c:59:25: error: drm_scatter.h: No such file or directory
EDIT: woah, i just realized how much text that is. sorry if its too much.
- 08-12-2005 #2Linux Engineer
- Join Date
- Nov 2004
- Location
- Ft. Polk, LA
- Posts
- 796
To log the whole thing (so you can get it all) use a command like this:
make > build.log 2>&1
tail -f build.log
The weird make command directs stdout and stderr to file build.log , then the tail command will show you the build.log so you know whats going on. You'll have to Ctrl+C when it's done to get back to the shell. Then all output from make will be in the file build.log which you can get to the beginning of the error.
I really don't know the specifics of the error, but you might try messing with your drm/dri settings (turn off what you don't need, try using modules, etc).
- 08-12-2005 #3Just Joined!
- Join Date
- Mar 2005
- Posts
- 17
i tried looking for it, but i couldnt find it. any idea where they are? (im assuming you mean in the kernel)


Reply With Quote
