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

Re: Kernel Build Failure (long post!)



Jon D. Irish wrote:

I am trying to build a kernel off of 2.6.12.3 I want to do this to get sound working. Thus, I downloaded everything from www.kernel.org <http://www.kernel.org/> and uncompressed it to /usr/src. Upon running "make xconfig" I load the default debian config from /boot.Next, I go to the processor type and features section and select Pentium-4 instead of the default 386 (as I have a Pentium 4 processor). Next, I go down to Device drivers\Sound. Here I select Sound card support (I am guessing that a checkmark means that it will be built into the kernel while a dot indicates it will be built as a module), Advanced Linux Sound Architecture (with Sequencer support, OSS Mixer API, OSS PCM API, and OSS Sequencer API), and under PCI devices I select Emu10k1X (as the sound is embedded in a Dell box). Next, I save and exit. Now I run "make-kpkg clean" from /usr/src/linux followed by "make-kpkg--revision=786:MyKernel2.6.12.3 kernel_image" (I got this command from a how-to). It runs for about 20-30 minutes at which time it barfs with these errors: drivers/char/drm/gamma_drv.c:33:19: gamma.h: No such file or directory
In file included from drivers/char/drm/gamma_drv.c:37:
drivers/char/drm/gamma_drv.h:66: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:66: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:68: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:68: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:70: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:70: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:74: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:74: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:76: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:76: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:77: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:77: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:78: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:78: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:83: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:83: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:84: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:84: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:85: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:85: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:86: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:86: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:87: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:87: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:88: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:88: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:90: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:90: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:91: error: `DRM' declared as function returning a function drivers/char/drm/gamma_drv.h:91: warning: parameter names (without types) in function declaration drivers/char/drm/gamma_drv.h:94: warning: parameter names (without types) in function declaration
drivers/char/drm/gamma_drv.h:94: error: conflicting types for `DRM'
drivers/char/drm/gamma_drv.h:91: error: previous declaration of `DRM'
drivers/char/drm/gamma_drv.c:39:22: drm_auth.h: No such file or directory
drivers/char/drm/gamma_drv.c:40:28: drm_agpsupport.h: No such file or directory
drivers/char/drm/gamma_drv.c:41:22: drm_bufs.h: No such file or directory
In file included from drivers/char/drm/gamma_drv.c:42:
drivers/char/drm/gamma_context.h: In function `gamma_fops_read':
drivers/char/drm/gamma_context.h:48: error: structure has no member named `dev'
drivers/char/drm/gamma_context.h: At top level:
drivers/char/drm/gamma_context.h:96: error: `DRM' declared as function returning a function drivers/char/drm/gamma_context.h:96: warning: function declaration isn't a prototype
drivers/char/drm/gamma_context.h:96: error: conflicting types for `DRM'
drivers/char/drm/gamma_drv.h:94: error: previous declaration of `DRM'
drivers/char/drm/gamma_context.h: In function `DRM':
drivers/char/drm/gamma_context.h:97: error: `dev' undeclared (first use in this function) drivers/char/drm/gamma_context.h:97: error: (Each undeclared identifier is reported only once drivers/char/drm/gamma_context.h:97: error: for each function it appears in.) drivers/char/drm/gamma_context.h:98: error: `s' undeclared (first use in this function)
drivers/char/drm/gamma_context.h: In function `gamma_fops_poll':
drivers/char/drm/gamma_context.h:134: error: structure has no member named `dev'
drivers/char/drm/gamma_context.h: At top level:
drivers/char/drm/gamma_context.h:142: error: `DRM' declared as function returning a function drivers/char/drm/gamma_context.h:142: warning: function declaration isn't a prototype
drivers/char/drm/gamma_context.h:142: error: redefinition of `DRM'
drivers/char/drm/gamma_context.h:96: error: `DRM' previously defined here
drivers/char/drm/gamma_context.h: In function `DRM':
drivers/char/drm/gamma_context.h:146: error: `dev' undeclared (first use in this function) drivers/char/drm/gamma_context.h:151: error: `old' undeclared (first use in this function) drivers/char/drm/gamma_context.h:151: error: `new' undeclared (first use in this function) drivers/char/drm/gamma_context.h:175: error: `write_string' undeclared (first use in this function) drivers/char/drm/gamma_context.h:175: error: called object is not a function
drivers/char/drm/gamma_context.h: At top level:
drivers/char/drm/gamma_context.h:183: error: `DRM' declared as function returning a function drivers/char/drm/gamma_context.h:183: warning: function declaration isn't a prototype
drivers/char/drm/gamma_context.h:183: error: redefinition of `DRM'
drivers/char/drm/gamma_context.h:142: error: `DRM' previously defined here
drivers/char/drm/gamma_context.h: In function `DRM':
drivers/char/drm/gamma_context.h:184: error: `dev' undeclared (first use in this function) drivers/char/drm/gamma_context.h:186: error: `new' undeclared (first use in this function) drivers/char/drm/gamma_context.h:193: error: structure has no member named `next_buffer' drivers/char/drm/gamma_context.h:193: error: structure has no member named `next_buffer' drivers/char/drm/gamma_context.h:194: error: `lock_free' undeclared (first use in this function) drivers/char/drm/gamma_context.h:195: error: called object is not a function
drivers/char/drm/gamma_context.h: At top level:
drivers/char/drm/gamma_context.h:207: error: `DRM' declared as function returning a function drivers/char/drm/gamma_context.h:207: warning: function declaration isn't a prototype
drivers/char/drm/gamma_context.h:207: error: redefinition of `DRM'
drivers/char/drm/gamma_context.h:183: error: `DRM' previously defined here drivers/char/drm/gamma_context.h:207: warning: `DRM' was declared `extern' and later `static'
drivers/char/drm/gamma_context.h: In function `DRM':
drivers/char/drm/gamma_context.h:210: error: `q' undeclared (first use in this function) drivers/char/drm/gamma_context.h:231: error: `ctx' undeclared (first use in this function) drivers/char/drm/gamma_context.h:233: error: `waitlist_create' undeclared (first use in this function) drivers/char/drm/gamma_context.h:233: error: `dev' undeclared (first use in this function) drivers/char/drm/gamma_context.h:233: error: called object is not a function
drivers/char/drm/gamma_context.h: At top level:
drivers/char/drm/gamma_context.h:249: error: `DRM' declared as function returning a function drivers/char/drm/gamma_context.h:249: warning: function declaration isn't a prototype
drivers/char/drm/gamma_context.h:249: error: redefinition of `DRM'
drivers/char/drm/gamma_context.h:207: error: `DRM' previously defined here drivers/char/drm/gamma_context.h:249: warning: `DRM' was declared `extern' and later `static'
drivers/char/drm/gamma_context.h: In function `DRM':
drivers/char/drm/gamma_context.h:255: error: `dev' undeclared (first use in this function) drivers/char/drm/gamma_context.h:267: error: `alloc' undeclared (first use in this function) drivers/char/drm/gamma_context.h:267: error: called object is not a function drivers/char/drm/gamma_context.h:278: error: `realloc' undeclared (first use in this function) drivers/char/drm/gamma_context.h:281: error: called object is not a function
drivers/char/drm/gamma_context.h: At top level:
drivers/char/drm/gamma_context.h:297: error: `DRM' declared as function returning a function drivers/char/drm/gamma_context.h:297: warning: function declaration isn't a prototype
drivers/char/drm/gamma_context.h:297: error: redefinition of `DRM'
drivers/char/drm/gamma_context.h:249: error: `DRM' previously defined here
drivers/char/drm/gamma_context.h: In function `DRM':
drivers/char/drm/gamma_context.h:298: error: `arg' undeclared (first use in this function)
drivers/char/drm/gamma_context.h: At top level:
drivers/char/drm/gamma_context.h:324: error: `DRM' declared as function returning a function drivers/char/drm/gamma_context.h:324: warning: function declaration isn't a prototype
drivers/char/drm/gamma_context.h:324: error: redefinition of `DRM'
drivers/char/drm/gamma_context.h:297: error: `DRM' previously defined here
drivers/char/drm/gamma_context.h: In function `DRM':
drivers/char/drm/gamma_context.h:325: error: `filp' undeclared (first use in this function) drivers/char/drm/gamma_context.h:326: error: structure has no member named `dev' drivers/char/drm/gamma_context.h:328: error: `arg' undeclared (first use in this function) drivers/char/drm/gamma_context.h:332: error: `alloc_queue' undeclared (first use in this function) drivers/char/drm/gamma_context.h:332: error: called object is not a function drivers/char/drm/gamma_context.h:334: error: `init_queue' undeclared (first use in this function) drivers/char/drm/gamma_context.h:334: error: called object is not a function drivers/char/drm/gamma_context.h:335: error: called object is not a function drivers/char/drm/gamma_context.h:337: error: called object is not a function
drivers/char/drm/gamma_context.h: At top level:
drivers/char/drm/gamma_context.h:346: error: `DRM' declared as function returning a function drivers/char/drm/gamma_context.h:346: warning: function declaration isn't a prototype
drivers/char/drm/gamma_context.h:346: error: redefinition of `DRM'
drivers/char/drm/gamma_context.h:324: error: `DRM' previously defined here
drivers/char/drm/gamma_context.h: In function `DRM':
drivers/char/drm/gamma_context.h:347: error: `filp' undeclared (first use in this function) drivers/char/drm/gamma_context.h:348: error: structure has no member named `dev' drivers/char/drm/gamma_context.h:352: error: `arg' undeclared (first use in this function)
drivers/char/drm/gamma_context.h: At top level:
drivers/char/drm/gamma_context.h:380: error: `DRM' declared as function returning a function drivers/char/drm/gamma_context.h:380: warning: function declaration isn't a prototype
drivers/char/drm/gamma_context.h:380: error: redefinition of `DRM'
drivers/char/drm/gamma_context.h:346: error: `DRM' previously defined here
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: structure 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:380: error: `DRM' previously defined 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: structure 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 is not a 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:413: error: `DRM' previously defined 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: structure 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 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:426: error: `DRM' previously defined 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: structure 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 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 is not a function
drivers/char/drm/gamma_drv.c:43:21: 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:441: error: `DRM' previously defined 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: structure has no member named `next_buffer' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:42: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:44: error: structure has no member named `next_queue'
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_old_dma.h:37: error: `DRM' previously defined 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_old_dma.h:48: error: `DRM' previously defined 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: structure 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 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 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 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 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: `DRM' previously defined here drivers/char/drm/gamma_old_dma.h:240: warning: `DRM' was declared `extern' and later `static'
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: structure 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 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: `DRM' previously defined 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 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 is not a function drivers/char/drm/gamma_old_dma.h:295: error: called object is not a function drivers/char/drm/gamma_old_dma.h:308: error: called object is not a function drivers/char/drm/gamma_drv.c:45:26: drm_drawable.h: No such file or directory
drivers/char/drm/gamma_drv.c:46:21: drm_drv.h: No such file or directory
drivers/char/drm/gamma_drv.c:48:22: drm_fops.h: No such file or directory
drivers/char/drm/gamma_drv.c:49:22: drm_init.h: No such file or directory
drivers/char/drm/gamma_drv.c:50:23: drm_ioctl.h: No such file or directory
drivers/char/drm/gamma_drv.c:51:21: 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_old_dma.h:276: error: `DRM' previously defined 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 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_lists.h:36: error: `DRM' previously defined 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 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_lists.h:54: error: `DRM' previously defined 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_lists.h:68: error: `DRM' previously defined 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_lists.h:89: error: `DRM' previously defined 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_lists.h:106: error: `DRM' previously defined 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_lists.h:119: error: `DRM' previously defined 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: `DRM' previously defined here
drivers/char/drm/gamma_lists.h:161: warning: `DRM' was declared `extern' and later `static'
drivers/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: `DRM' previously defined here
drivers/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 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 is not a function
drivers/char/drm/gamma_drv.c:53:22: drm_lock.h: No such file or directory
In 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: `DRM' previously defined here
drivers/char/drm/gamma_lock.h:36: warning: `DRM' was declared `extern' and later `static'
drivers/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: `DRM' previously defined here
drivers/char/drm/gamma_lock.h:69: warning: `DRM' was declared `extern' and later `static'
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: `DRM' previously defined 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 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 is not a function
drivers/char/drm/gamma_lock.h:99: error: called object 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_lock.h:87: error: `DRM' previously defined 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 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 is not a function
drivers/char/drm/gamma_lock.h:118: error: called object 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_lock.h:106: error: `DRM' previously defined 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: structure 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 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 is not a function
In file included from drivers/char/drm/gamma_drv.c:55:
drivers/char/drm/drm_memory.h: At top level:
drivers/char/drm/drm_memory.h:65: error: redefinition of `drm_lookup_map'
drivers/char/drm/drm_memory.h:65: error: `drm_lookup_map' previously defined here
drivers/char/drm/drm_memory.h:83: error: redefinition of `agp_remap'
drivers/char/drm/drm_memory.h:83: error: `agp_remap' previously defined here drivers/char/drm/drm_memory.h:123: error: redefinition of `drm_follow_page' drivers/char/drm/drm_memory.h:123: error: `drm_follow_page' previously defined here
drivers/char/drm/drm_memory.h:151: error: redefinition of `drm_ioremap'
drivers/char/drm/drm_memory.h:151: error: `drm_ioremap' previously defined here drivers/char/drm/drm_memory.h:163: error: redefinition of `drm_ioremap_nocache' drivers/char/drm/drm_memory.h:163: error: `drm_ioremap_nocache' previously defined here drivers/char/drm/drm_memory.h:174: error: redefinition of `drm_ioremapfree' drivers/char/drm/drm_memory.h:174: error: `drm_ioremapfree' previously defined here
drivers/char/drm/gamma_drv.c:56:22: drm_proc.h: No such file or directory
drivers/char/drm/gamma_drv.c:57:20: drm_vm.h: No such file or directory
drivers/char/drm/gamma_drv.c:58:22: drm_stub.h: No such file or directory
drivers/char/drm/gamma_drv.c:59:25: drm_scatter.h: No such file or directory
drivers/char/drm/gamma_lists.h:161: warning: `DRM' defined but not used
drivers/char/drm/gamma_lock.h:36: warning: `DRM' defined but not used
drivers/char/drm/gamma_lock.h:69: warning: `DRM' defined but not used
make[4]: *** [drivers/char/drm/gamma_drv.o] Error 1
make[3]: *** [drivers/char/drm] Error 2
make[2]: *** [drivers/char] Error 2
make[1]: *** [drivers] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.12.3'
make: *** [stamp-build] Error 2
I would really appreciate it if someone could tell me what I am doing wrong, and what I need to do to correct this. TIA,
Jon

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Hi Josh

Unless you have a 3dfx card, remove all 3dfx and 3dlabs options in make menuconfig under character devices. This will be under "device drivers" -> "character devices". I had to take an hour to hunt this little problem down.

-Nick


Nicholas Miller
Web Developer / System Admin
PressEnter! Internet
715-377-0746
nick@pressenter.com



--
Nicholas Miller
Web Developer / System Admin
PressEnter! Internet
715-377-0746
nick@pressenter.com





Reply to: