Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42728 - ERROR: media-libs/svgalib-1.9.18 failed.
Summary: ERROR: media-libs/svgalib-1.9.18 failed.
Status: RESOLVED DUPLICATE of bug 42522
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-24 02:42 UTC by Roberto Griso
Modified: 2005-07-17 13:06 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Griso 2004-02-24 02:42:03 UTC
make[1]: Leaving directory `/var/tmp/portage/svgalib-1.9.18/work/svgalib-1.9.18/threeDKit'


Now run 'make demoprogs' to make the test and demo programs in
demos/ and threedkit/.
(cd kernel/svgalib_helper ; make modules_install )
make[1]: Entering directory `/var/tmp/portage/svgalib-1.9.18/work/svgalib-1.9.18/kernel/svgalib_helper'
gcc -Wall -Wstrict-prototypes -fPIC -I/var/tmp/portage/svgalib-1.9.18/work/svgalib-1.9.18/include -I. -march=pentium3 -O2 -pipe     -c -o main.o main.c
In file included from /usr/include/linux/sched.h:18,
                 from /usr/include/linux/module.h:10,
                 from main.c:8:
/usr/include/asm/semaphore.h:45: error: syntax error before "wait_queue_head_t"
/usr/include/asm/semaphore.h: In function `sema_init':
/usr/include/asm/semaphore.h:79: error: dereferencing pointer to incomplete type
/usr/include/asm/semaphore.h:80: error: dereferencing pointer to incomplete type
/usr/include/asm/semaphore.h:81: error: dereferencing pointer to incomplete type
/usr/include/asm/semaphore.h: In function `down':
/usr/include/asm/semaphore.h:127: error: dereferencing pointer to incomplete type
/usr/include/asm/semaphore.h: In function `down_interruptible':
/usr/include/asm/semaphore.h:154: error: dereferencing pointer to incomplete type
/usr/include/asm/semaphore.h: In function `down_trylock':
/usr/include/asm/semaphore.h:182: error: dereferencing pointer to incomplete type
/usr/include/asm/semaphore.h: In function `up':
/usr/include/asm/semaphore.h:209: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/sched.h:21,
                 from /usr/include/linux/module.h:10,
                 from main.c:8:
/usr/include/asm/mmu.h: At top level:
/usr/include/asm/mmu.h:13: error: field `sem' has incomplete type
In file included from /usr/include/asm/siginfo.h:4,
                 from /usr/include/linux/signal.h:7,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/module.h:10,
                 from main.c:8:
/usr/include/asm-generic/siginfo.h:55: error: size of array `_pad' is too large
In file included from /usr/include/linux/sched.h:29,
                 from /usr/include/linux/module.h:10,
                 from main.c:8:
/usr/include/linux/completion.h:15: error: syntax error before "wait_queue_head_t"
/usr/include/linux/completion.h: In function `init_completion':
/usr/include/linux/completion.h:26: error: dereferencing pointer to incomplete type
/usr/include/linux/completion.h:27: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/sched.h:30,
                 from /usr/include/linux/module.h:10,
                 from main.c:8:
/usr/include/linux/pid.h: At top level:
/usr/include/linux/pid.h:18: error: field `task_list' has incomplete type
/usr/include/linux/pid.h:19: error: field `hash_chain' has incomplete type
/usr/include/linux/pid.h:24: error: field `pid_chain' has incomplete type
In file included from /usr/include/linux/sched.h:102,
                 from /usr/include/linux/module.h:10,
                 from main.c:8:
/usr/include/linux/timer.h:11: error: field `entry' has incomplete type
In file included from main.c:8:
/usr/include/linux/module.h:196: error: field `list' has incomplete type
In file included from main.c:15:
/usr/include/linux/proc_fs.h:97: error: syntax error before "filldir_t"
/usr/include/linux/proc_fs.h:116: error: syntax error before "filldir_t"
/usr/include/linux/proc_fs.h:254: error: field `vfs_inode' has incomplete type
/usr/include/linux/proc_fs.h: In function `PROC_I':
/usr/include/linux/proc_fs.h:259: error: syntax error before "struct"
In file included from main.c:17:
/usr/include/linux/ioport.h: At top level:
/usr/include/linux/ioport.h:120: error: syntax error before "check_region"
In file included from /usr/include/linux/irq.h:20,
                 from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:11,
                 from main.c:18:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:11,
from main.c:18:
/usr/include/linux/irq.h:48: error: syntax error before "cpumask_t"
/usr/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:72,
                 from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:11,
                 from main.c:18:
/usr/include/asm/hw_irq.h:28: error: syntax error before "irq_vector"
/usr/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:61: error: syntax error before "mask"
/usr/include/asm/hw_irq.h: In function `x86_do_profile':
/usr/include/asm/hw_irq.h:86: error: `prof_buffer' undeclared (first use in this function)
/usr/include/asm/hw_irq.h:86: error: (Each undeclared identifier is reported only once
/usr/include/asm/hw_irq.h:86: error: for each function it appears in.)
/usr/include/asm/hw_irq.h:99: error: `prof_shift' undeclared (first use in this function)
/usr/include/asm/hw_irq.h:105: error: `prof_len' undeclared (first use in this function)
In file included from /usr/include/asm/hardirq.h:80,
                 from /usr/include/linux/interrupt.h:11,
                 from main.c:18:
/usr/include/linux/smp_lock.h: In function `release_kernel_lock':
/usr/include/linux/smp_lock.h:22: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h: In function `reacquire_kernel_lock':
/usr/include/linux/smp_lock.h:31: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h: In function `lock_kernel':
/usr/include/linux/smp_lock.h:44: error: `current' undeclared (first use in this function)
/usr/include/linux/smp_lock.h: In function `unlock_kernel':
/usr/include/linux/smp_lock.h:52: error: `current' undeclared (first use in this function)
In file included from main.c:25:
kernel26compat.h: In function `devfs_register_chrdev':
kernel26compat.h:40: warning: implicit declaration of function `register_chrdev'
kernel26compat.h: In function `devfs_unregister_chrdev':
kernel26compat.h:44: warning: implicit declaration of function `unregister_chrdev'
In file included from main.c:27:
/usr/include/asm/uaccess.h: In function `verify_area':
/usr/include/asm/uaccess.h:104: error: invalid type argument of `->'
/usr/include/asm/uaccess.h: In function `__copy_to_user':
/usr/include/asm/uaccess.h:406: error: `u8' undeclared (first use in this function)
/usr/include/asm/uaccess.h:406: error: syntax error before ')' token
/usr/include/asm/uaccess.h:406: error: syntax error before ')' token
/usr/include/asm/uaccess.h:406: error: syntax error before ')' token
/usr/include/asm/uaccess.h:406: error: syntax error before ')' token
/usr/include/asm/uaccess.h:409: error: `u16' undeclared (first use in this function)
/usr/include/asm/uaccess.h:409: error: syntax error before ')' token
/usr/include/asm/uaccess.h:409: error: syntax error before ')' token
/usr/include/asm/uaccess.h:409: error: syntax error before ')' token
/usr/include/asm/uaccess.h:409: error: syntax error before ')' token
/usr/include/asm/uaccess.h:412: error: `u32' undeclared (first use in this function)
/usr/include/asm/uaccess.h:412: error: syntax error before ')' token
/usr/include/asm/uaccess.h:412: error: syntax error before ')' token
/usr/include/asm/uaccess.h:412: error: syntax error before ')' token
/usr/include/asm/uaccess.h:412: error: syntax error before ')' token
/usr/include/asm/uaccess.h: In function `__copy_from_user':
/usr/include/asm/uaccess.h:444: error: `u8' undeclared (first use in this function)
/usr/include/asm/uaccess.h:444: error: syntax error before ')' token
/usr/include/asm/uaccess.h:444: error: syntax error before ')' token
/usr/include/asm/uaccess.h:444: error: syntax error before ')' token
/usr/include/asm/uaccess.h:444: error: syntax error before ')' token
/usr/include/asm/uaccess.h:447: error: `u16' undeclared (first use in this function)
/usr/include/asm/uaccess.h:447: error: syntax error before ')' token
/usr/include/asm/uaccess.h:447: error: syntax error before ')' token
/usr/include/asm/uaccess.h:447: error: syntax error before ')' token
/usr/include/asm/uaccess.h:447: error: syntax error before ')' token
/usr/include/asm/uaccess.h:450: error: `u32' undeclared (first use in this function)
/usr/include/asm/uaccess.h:450: error: syntax error before ')' token
/usr/include/asm/uaccess.h:450: error: syntax error before ')' token
/usr/include/asm/uaccess.h:450: error: syntax error before ')' token
/usr/include/asm/uaccess.h:450: error: syntax error before ')' token
/usr/include/asm/uaccess.h: In function `copy_to_user':
/usr/include/asm/uaccess.h:474: error: invalid type argument of `->'
/usr/include/asm/uaccess.h: In function `copy_from_user':
/usr/include/asm/uaccess.h:499: error: invalid type argument of `->'
In file included from /usr/include/asm/pgtable.h:17,
                 from main.c:31:
/usr/include/asm/fixmap.h: At top level:
/usr/include/asm/fixmap.h:72: error: `FIX_ACPI_PAGES' undeclared here (not in a function)
/usr/include/asm/fixmap.h:72: error: enumerator value for `FIX_ACPI_END' not integer constant
/usr/include/asm/fixmap.h:84: error: syntax error before "pgprot_t"
In file included from main.c:31:
/usr/include/asm/pgtable.h:34: error: syntax error before "swapper_pg_dir"
/usr/include/asm/pgtable.h:35: error: syntax error before '*' token
/usr/include/asm/pgtable.h:36: error: syntax error before '*' token
/usr/include/asm/pgtable.h:40: error: syntax error before "kmem_cache_t"
/usr/include/asm/pgtable.h:41: error: syntax error before "kmem_cache_t"
/usr/include/asm/pgtable.h:42: error: syntax error before "kmem_cache_t"
In file included from /usr/include/asm/pgtable.h:57,
                 from main.c:31:
/usr/include/asm/pgtable-2level.h:32: error: syntax error before "pgd"
/usr/include/asm/pgtable-2level.h:33: error: syntax error before "pgd"
/usr/include/asm/pgtable-2level.h:34: error: syntax error before "pgd"
/usr/include/asm/pgtable-2level.h:54: error: syntax error before '*' token
/usr/include/asm/pgtable-2level.h:54: error: syntax error before '*' token
/usr/include/asm/pgtable-2level.h: In function `pmd_offset':
/usr/include/asm/pgtable-2level.h:56: error: `pmd_t' undeclared (first use in this function)
/usr/include/asm/pgtable-2level.h:56: error: syntax error before ')' token
In file included from main.c:31:
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:194: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_user':
/usr/include/asm/pgtable.h:194: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:195: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_read':
/usr/include/asm/pgtable.h:195: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:196: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_exec':
/usr/include/asm/pgtable.h:196: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:197: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_dirty':
/usr/include/asm/pgtable.h:197: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:198: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_young':
/usr/include/asm/pgtable.h:198: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:199: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_write':
/usr/include/asm/pgtable.h:199: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:204: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_file':
/usr/include/asm/pgtable.h:204: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:206: error: syntax error before "pte_rdprotect"
/usr/include/asm/pgtable.h:206: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_rdprotect':
/usr/include/asm/pgtable.h:206: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:207: error: syntax error before "pte_exprotect"
/usr/include/asm/pgtable.h:207: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_exprotect':
/usr/include/asm/pgtable.h:207: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:208: error: syntax error before "pte_mkclean"
/usr/include/asm/pgtable.h:208: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkclean':
/usr/include/asm/pgtable.h:208: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:209: error: syntax error before "pte_mkold"
/usr/include/asm/pgtable.h:209: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkold':
/usr/include/asm/pgtable.h:209: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:210: error: syntax error before "pte_wrprotect"
/usr/include/asm/pgtable.h:210: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_wrprotect':
/usr/include/asm/pgtable.h:210: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:211: error: syntax error before "pte_mkread"
/usr/include/asm/pgtable.h:211: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkread':
/usr/include/asm/pgtable.h:211: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:212: error: syntax error before "pte_mkexec"
/usr/include/asm/pgtable.h:212: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkexec':
/usr/include/asm/pgtable.h:212: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:213: error: syntax error before "pte_mkdirty"
/usr/include/asm/pgtable.h:213: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkdirty':
/usr/include/asm/pgtable.h:213: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:214: error: syntax error before "pte_mkyoung"
/usr/include/asm/pgtable.h:214: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkyoung':
/usr/include/asm/pgtable.h:214: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:215: error: syntax error before "pte_mkwrite"
/usr/include/asm/pgtable.h:215: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkwrite':
/usr/include/asm/pgtable.h:215: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:217: error: syntax error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_test_and_clear_dirty':
/usr/include/asm/pgtable.h:217: error: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:218: error: syntax error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_test_and_clear_young':
/usr/include/asm/pgtable.h:218: error: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:219: error: syntax error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_set_wrprotect':
/usr/include/asm/pgtable.h:219: error: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:220: error: syntax error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_mkdirty':
/usr/include/asm/pgtable.h:220: error: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:237: error: syntax error before "pte_modify"
/usr/include/asm/pgtable.h:237: error: syntax error before "pte"
/usr/include/asm/pgtable.h: In function `pte_modify':
/usr/include/asm/pgtable.h:239: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h:239: error: `PTE_MASK' undeclared (first use in this function)
/usr/include/asm/pgtable.h:240: error: `newprot' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:320: error: syntax error before '*' token
In file included from main.c:39:
interrupt.h:1: warning: `struct sh_pci_device' declared inside parameter list
interrupt.h:2: warning: `struct sh_pci_device' declared inside parameter list
interrupt.h:3: warning: `struct sh_pci_device' declared inside parameter list
interrupt.h:4: warning: `struct sh_pci_device' declared inside parameter list
main.c:48: error: `MAX_NR_DEVICES' undeclared here (not in a function)
main.c:50: error: `MAX_NR_DEVICES' undeclared here (not in a function)
main.c:89: error: syntax error before "vsync_wait"
main.c:89: warning: type defaults to `int' in declaration of `vsync_wait'
main.c:89: warning: data definition has no type or storage class
main.c: In function `vsync_interrupt':
main.c:96: warning: passing arg 1 of `vga_test_vsync' from incompatible pointer type
main.c:99: warning: passing arg 1 of `vga_ack_vsync' from incompatible pointer type
main.c:101: error: dereferencing pointer to incomplete type
main.c:104: error: dereferencing pointer to incomplete type
main.c:108: warning: implicit declaration of function `wake_up_interruptible'
main.c: At top level:
main.c:114: warning: `struct file' declared inside parameter list
main.c: In function `svgalib_helper_ioctl':
main.c:118: error: dereferencing pointer to incomplete type
main.c:122: error: `u8' undeclared (first use in this function)
main.c:122: error: syntax error before "pb"
main.c:123: error: `u16' undeclared (first use in this function)
main.c:124: error: `u32' undeclared (first use in this function)
main.c:139: warning: implicit declaration of function `kmalloc'
main.c:139: error: `GFP_KERNEL' undeclared (first use in this function)
main.c:139: warning: assignment makes pointer from integer without a cast
main.c:144: warning: implicit declaration of function `kfree'
main.c:194: warning: implicit declaration of function `writeb'
main.c:199: warning: implicit declaration of function `writew'
main.c:204: warning: implicit declaration of function `writel'
main.c:209: warning: implicit declaration of function `readb'
main.c:215: warning: implicit declaration of function `readw'
main.c:221: warning: implicit declaration of function `readl'
main.c:229: warning: implicit declaration of function `pci_read_config_byte'
main.c:229: error: `pb' undeclared (first use in this function)
main.c:238: warning: implicit declaration of function `pci_read_config_word'
main.c:238: error: `pw' undeclared (first use in this function)
main.c:247: warning: implicit declaration of function `pci_read_config_dword'
main.c:247: error: `pl' undeclared (first use in this function)
main.c:265: warning: implicit declaration of function `pci_write_config_byte'
main.c:273: warning: implicit declaration of function `pci_write_config_word'
main.c:281: warning: implicit declaration of function `pci_write_config_dword'
main.c:310: error: `SA_SHIRQ' undeclared (first use in this function)
main.c:323: warning: implicit declaration of function `interruptible_sleep_on'
main.c:335: error: `ERESTARTSYS' undeclared (first use in this function)
main.c: At top level:
main.c:359: warning: `struct file' declared inside parameter list
main.c: In function `svgalib_helper_open':
main.c:361: error: dereferencing pointer to incomplete type
main.c: At top level:
main.c:374: warning: `struct file' declared inside parameter list
main.c: In function `remap_cache':
main.c:386: error: dereferencing pointer to incomplete type
main.c:388: error: dereferencing pointer to incomplete type
main.c:388: error: `VM_IO' undeclared (first use in this function)
main.c:413: error: dereferencing pointer to incomplete type
main.c:413: error: invalid lvalue in assignment
main.c:427: warning: implicit declaration of function `remap_page_range'
main.c:427: error: dereferencing pointer to incomplete type
main.c:427: error: dereferencing pointer to incomplete type
main.c:427: error: dereferencing pointer to incomplete type
main.c:427: error: dereferencing pointer to incomplete type
main.c: At top level:
main.c:474: warning: `struct file' declared inside parameter list
main.c: In function `svgalib_helper_mmap':
main.c:475: error: dereferencing pointer to incomplete type
main.c:476: error: dereferencing pointer to incomplete type
main.c:477: error: dereferencing pointer to incomplete type
main.c:479: error: dereferencing pointer to incomplete type
main.c: At top level:
main.c:489: error: variable `svgalib_helper_fops' has initializer but incomplete type
main.c:491: error: unknown field `owner' specified in initializer
main.c:491: warning: excess elements in struct initializer
main.c:491: warning: (near initialization for `svgalib_helper_fops')
main.c:493: error: unknown field `ioctl' specified in initializer
main.c:493: warning: excess elements in struct initializer
main.c:493: warning: (near initialization for `svgalib_helper_fops')
main.c:494: error: unknown field `mmap' specified in initializer
main.c:494: warning: excess elements in struct initializer
main.c:494: warning: (near initialization for `svgalib_helper_fops')
main.c:495: error: unknown field `open' specified in initializer
main.c:495: warning: excess elements in struct initializer
main.c:495: warning: (near initialization for `svgalib_helper_fops')
main.c:496: error: unknown field `release' specified in initializer
main.c:496: warning: excess elements in struct initializer
main.c:496: warning: (near initialization for `svgalib_helper_fops')
main.c: In function `init_module':
main.c:519: error: `KERN_INFO' undeclared (first use in this function)
main.c:519: error: syntax error before string constant
main.c:521: error: `SVGALIB_HELPER_MAJOR' undeclared (first use in this function)
main.c:524: error: `KERN_WARNING' undeclared (first use in this function)
main.c:524: error: syntax error before string constant
main.c:528: error: invalid application of `sizeof' to an incomplete type
main.c:528: error: `GFP_KERNEL' undeclared (first use in this function)
main.c:532: error: invalid application of `sizeof' to an incomplete type
main.c:534: error: `MAX_NR_DEVICES' undeclared (first use in this function)
main.c:554: warning: implicit declaration of function `class_simple_create'
main.c:554: warning: assignment makes pointer from integer without a cast
main.c:555: warning: implicit declaration of function `class_simple_device_add'
main.c:559: warning: implicit declaration of function `pci_find_device'
main.c:559: error: `PCI_ANY_ID' undeclared (first use in this function)
main.c:560: warning: implicit declaration of function `pci_find_class'
main.c:560: warning: assignment makes pointer from integer without a cast
main.c:562: error: invalid application of `sizeof' to an incomplete type
main.c:565: error: invalid application of `sizeof' to an incomplete type
main.c:570: error: `KERN_DEBUG' undeclared (first use in this function)
main.c:570: error: syntax error before string constant
main.c:586: error: syntax error before string constant
main.c:593: warning: implicit declaration of function `sprintf'
main.c:623: warning: implicit declaration of function `class_simple_device_remove'
main.c:629: warning: implicit declaration of function `class_simple_destroy'
main.c: In function `cleanup_module':
main.c:639: error: `MAX_NR_DEVICES' undeclared (first use in this function)
main.c:641: error: `SVGALIB_HELPER_MAJOR' undeclared (first use in this function)
main.c: At top level:
/usr/include/asm/hw_irq.h:28: error: storage size of `irq_vector' isn't known
main.c:48: error: storage size of `sh_pci_devs' isn't known
main.c:50: error: storage size of `irqs' isn't known
main.c:489: error: storage size of `svgalib_helper_fops' isn't known
../../src/vgaversion.h:2: warning: `versionstr' defined but not used
main.c:48: warning: `sh_pci_devs' defined but not used
main.c:50: warning: `irqs' defined but not used
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/svgalib-1.9.18/work/svgalib-1.9.18/kernel/svgalib_helper'
make: *** [installmodule] Error 2

!!! ERROR: media-libs/svgalib-1.9.18 failed.
!!! Function src_install, Line 86, Exitcode 2
!!! Failed to install svgalib!


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3)
=================================================================
System uname: 2.6.3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.57a-r1,sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib accessibility acl alsa antlr apache2 apm arts artswrappersuid
avi bcel berkdb bidi bonobo bsg cdr chroot crypt cscope cups curl dga directfb
doc dv dvb dvd encode esd faad fbcon firebird flac flash foomaticdb freetds gb
gd gdbm ggi gif gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile
imagemagick imap imlib informix innodb ipv6 jack jack-caps java javamail
javascript jbig jdepend jpeg jsch junit jython kde kerberos krb4 lcms ldap
libg++ libgda libwww log4j mad maildir matroska mbox mcal mdb menu mikmod motif
mozilla mozinterfaceinfo moznocompose moznoirc moznomail mozsvg mozxmlterm mpeg
mpi mysql nas ncurses net nhc98 nls nptl objc oci8 odbc oggvorbis opengl
optional-tasks oro oss pam parse-clocks pda pdflib perl pg-hier pg-intdatetime
pg-vacuumdelay pic png postgres ppds python qt quicktime readline regexp rhino
rplay ruby ruby18 samba sasl sdk sdl skey slang slp snmp sox speex spell sqlite
sse ssl stroke svga tcltk tcpd tetex tiff truetype ucs2 unicode usb wmf x86
xalan xerces xface xinerama xml xml2 xmms xv zlib"
Comment 1 Lawrence Lee 2004-02-24 06:09:49 UTC
I received this error as well on my box running the gentoo-sources-2.4.22 kernel with the 2.4.22 headers.  I also ran into nearly the same error when I tried to emerge svgalib on my parents box running the gentoo-dev-sources-2.6.2 kernel with the 2.6.1 headers.
Comment 2 Guibod 2004-02-24 06:25:21 UTC
Same too me.
It appear that the Kernel is involved. 
I am using a 2.4.23 kernel, manually patched with Con Kolivas patches (http://members.optusnet.com.au/ckolivas/kernel/)


root@MupoClient guibod # emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.23)
=================================================================
System uname: 2.4.23 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi acpi4linux alsa amd apache2 apm avi berkdb bonobo cdr crypt directfb doc dvd encode esd fbcon ffmpeg foomaticdb freetype gdbm ggi gif gnome gnomedb gpm gtk gtk2 gtkhtml guile imlib java javascript jpeg ldap libg++ libwww mad mikmod motif mozilla moznocompose moznoirc mpeg nas ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime radeon readline samba sdl slang spell sse ssl svga tcltk tcpd tetex truetype unicode v4l video_cards_radeon x86 xine xinerama xml2 xmms xv zlib"
Comment 3 David Lago 2004-02-24 06:41:37 UTC
Same problem running gentoo-dev-sources-2.6.3-r2
Comment 4 SpanKY gentoo-dev 2004-02-24 09:53:06 UTC
what version of linux-headers are you using
Comment 5 Sami Nieminen 2004-02-24 10:34:40 UTC
I just updated to linux-headers-2.6.3-r1 and get this error.
Comment 6 Mike 2004-02-24 11:39:48 UTC
Same error on a stock 2.6.2 vanilla kernel
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-02-24 13:40:10 UTC
OK, I can't reproduce this here but can you see if editing /usr/include/linux/wait.h and removing the "#ifdef __KERNEL__" as well as removing the last "#endif" of the file solves this?
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2004-02-24 13:47:11 UTC
Hmm, scratch that last comment. It's a bug in svgalib, not the headers since the real headers are being pulled in instead of the kernel ones for some reason.
Comment 9 SpanKY gentoo-dev 2004-02-24 14:24:31 UTC
right, this is just a symptom of another fix that's been attempted

*** This bug has been marked as a duplicate of 42522 ***