Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39552 - svgalib fails to build on kernel 2.6.1
Summary: svgalib fails to build on kernel 2.6.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-27 05:04 UTC by Lars Hoss
Modified: 2004-02-24 14:32 UTC (History)
0 users

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 Lars Hoss 2004-01-27 05:04:04 UTC
Tried to install media-libs/svgalib-1.9.17-r3 but it failed with the following error:

In file included from /var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:11:
/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/include/vga.h:541:1: warning: "ROP_XOR" redefined
In file included from /var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:4:
/usr/include/linux/fb.h:272:1: warning: this is the location of the previous definition
In file included from /var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:12:
/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/libvga.h:106: redefinition of `struct info'
make[1]: *** [drivers/fbdev.o] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/staticlib'
make: *** [staticlib/libvga.a] Fehler 2

Specs:
kernel 2.6.1-gentoo 
gcc-3.2.3
glibc-2.3.2-r9
Comment 1 SpanKY gentoo-dev 2004-01-27 06:21:07 UTC
do you have linux-headers 2.6 ?
Comment 2 Nick Dimiduk (RETIRED) gentoo-dev 2004-02-05 05:32:08 UTC
I am unable to emerge this package as well:

>>> emerge (1 of 15) media-libs/svgalib-1.9.17-r3 to /
>>> md5 src_uri ;-) svgalib-1.9.17.tar.gz
 * 
 * Could not determine your kernel version.
 * Make sure that you have /usr/src/linux symlink.
 * And that said kernel has been configured.
 * You can also simply run the following command
 * in the kernel referenced by /usr/src/linux:
 *  make include/linux/version.h
 * 

!!! ERROR: media-libs/svgalib-1.9.17-r3 failed.
!!! Function check_KV, Line 235, Exitcode 0
!!! (no error message)

I tried the sugested "make ..." but there is no version.h file; I have an 'include/linux/vermagic.h' file, but making it does nothing:

make: Nothing to be done for `include/linux/vermagic.h'.

kernel: linux-2.6.1-mm5
headers: linux-headers-2.6.0
gcc: 3.2.3
glibc: 2.3.2-r9

If it matters, i built the kernel with genkernel-3.0.1_beta9
Comment 3 Mario Doria 2004-02-24 14:27:24 UTC
Same here, I have 2.6.3 headers installed and it won't compile, here's the error message:

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 `/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. -O2 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer     -c -o main.o main.c
In file included from main.c:1:
/usr/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from /usr/include/linux/spinlock.h:16,
                 from /usr/include/linux/jiffies.h:6,
                 from /usr/include/linux/sched.h:12,
                 from /usr/include/linux/module.h:10,
                 from main.c:8:
/usr/include/asm/processor.h:66: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:66: error: requested alignment is not a constant
In file included from /usr/include/linux/sched.h:12,
                 from /usr/include/linux/module.h:10,
                 from main.c:8:
/usr/include/linux/jiffies.h:16: error: syntax error before "jiffies_64"
/usr/include/linux/jiffies.h:20: error: syntax error before "get_jiffies_64"
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:13: error: field `sem' has incomplete type
In file included from /usr/include/linux/signal.h:4,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/module.h:10,
                 from main.c:8:
/usr/include/linux/list.h:604:2: warning: #warning "don't include kernel headers in userspace"
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:53: 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:31,
                 from /usr/include/linux/module.h:10,
                 from main.c:8:
/usr/include/linux/percpu.h: In function `__alloc_percpu':
/usr/include/linux/percpu.h:45: error: `GFP_KERNEL' undeclared (first use in this function)
/usr/include/linux/percpu.h:45: error: (Each undeclared identifier is reported only once
/usr/include/linux/percpu.h:45: error: for each function it appears in.)
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: At top level:
/usr/include/linux/timer.h:11: error: field `entry' has incomplete type
In file included from /usr/include/linux/module.h:21,
                 from main.c:8:
/usr/include/asm/module.h:52:2: #error unknown processor family
In file included from main.c:15:
/usr/include/linux/proc_fs.h:258: error: field `vfs_inode' has incomplete type
/usr/include/linux/proc_fs.h: In function `PROC_I':
/usr/include/linux/proc_fs.h:263: 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:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:68: error: requested alignment is not a constant
/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: 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: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/linux/interrupt.h:11,
                 from main.c:18:
/usr/include/asm/hardirq.h: At top level:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from /usr/include/linux/pci.h:20,
                 from main.c:19:
/usr/include/linux/mod_devicetable.h:21: error: syntax error before "kernel_ulong_t"
/usr/include/linux/mod_devicetable.h:36: error: syntax error before "kernel_ulong_t"
/usr/include/linux/mod_devicetable.h:118: error: syntax error before "kernel_ulong_t"
/usr/include/linux/mod_devicetable.h:142: error: syntax error before "kernel_ulong_t"
/usr/include/linux/mod_devicetable.h:156: error: syntax error before "kernel_ulong_t"
/usr/include/linux/mod_devicetable.h:161: error: syntax error before "kernel_ulong_t"
/usr/include/linux/mod_devicetable.h:165: error: syntax error before '}' token
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: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: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: 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: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: error: `GFP_KERNEL' undeclared (first use in this function)
main.c:139: warning: assignment makes pointer from integer without a cast
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: warning: implicit declaration of function `printk'
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: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)
/usr/include/asm/fixmap.h: In function `virt_to_fix':
/usr/include/asm/fixmap.h:144: warning: asm operand 1 probably doesn't match constraints
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 `/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!
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-02-24 14:32:38 UTC
This issue was fixed on the 1st of February with svgalib-1.9.17-linux2.6.patch, version 1.4. If you still get this with 1.9.17; please reopen this bug.

Mario: You're getting the bug for 1.9.18; please see bug #42522.