View previous topic :: View next topic |
Author |
Message |
quantumwire Guru
Joined: 15 Oct 2003 Posts: 403 Location: Lausanne
|
Posted: Wed Jan 28, 2004 12:55 am Post subject: Problema in compilazione svgalib-1.9.17-r3 [RISOLTO] |
|
|
Ok ho spulciato sul forum e ho trovato problemi di compilazione di queste lib con il kernel 2.6... ma io ho il vanilla2.4 ed il punto dove si inchioda e' diverso da quello riportato negli altri post.
Volevo emergiare mplayer... ma qui tutto si e' fermato...insomma... questo chi me lo spiega???
Quote: |
gcc -O2 -DLINUX -Dlinux -D__KERNEL__ -DMODULE -nostdinc -iwithprefix include -I/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/kernel/svgalib_helper/include -I. -I/usr/src/linux/include -I/usr/src/linux/include/asm/mach-default -DSVGALIB_HELPER_MAJOR=209 -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c -o main.o main.c
main.c:90: parse error before "vsync_interrupt"
main.c: In function `svgalib_helper_ioctl':
main.c:317: warning: passing arg 2 of `request_irq_R0c60f2e0' from incompatible pointer type
main.c:321: warning: passing arg 2 of `request_irq_R0c60f2e0' from incompatible pointer type
make: *** [main.o] Error 1
make: Leaving directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/kernel/svgalib_helper'
!!! ERROR: media-libs/svgalib-1.9.17-r3 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! Failed to build kernel module!
|
_________________ HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs!
Last edited by quantumwire on Fri Jan 30, 2004 10:23 am; edited 1 time in total |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Wed Jan 28, 2004 8:40 am Post subject: Re: Problema in compilazione svgalib-1.9.17-r3 |
|
|
quantumwire wrote: |
[code]
main.c:90: parse error before "vsync_interrupt"
[/cpde] |
Riesci a postare una decina di righe del file, tipo dalla 81 alla 91? |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Wed Jan 28, 2004 8:58 am Post subject: |
|
|
https://bugs.gentoo.org/show_bug.cgi?id=37812 _________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
|
quantumwire Guru
Joined: 15 Oct 2003 Posts: 403 Location: Lausanne
|
Posted: Wed Jan 28, 2004 10:08 am Post subject: Re: Problema in compilazione svgalib-1.9.17-r3 |
|
|
randomaze wrote: |
Riesci a postare una decina di righe del file, tipo dalla 81 alla 91? |
Ecco qua:
Quote: |
static int get_dev(int pcipos, int _minor) {
if(_minor>=num_devices) return 0;
if(_minor>0) {
return _minor;
} else {
int i;
int b, d;
d=pcipos&0xff;
b=(pcipos>>&0xff;
for(i=1;i<num_devices;i++) {
if((b==sh_pci_devs[i]->dev->bus->number) && (d==sh_pci_devs[i]->dev->devfn))
return i;
}
return 0;
}
}
static volatile int vsync=0;
static wait_queue_head_t vsync_wait;
static irqreturn_t vsync_interrupt(int irq, void *dev_id, struct pt_regs *regs) ( LINEA 90 )
{
struct sh_pci_device *dev = (struct sh_pci_device *)dev_id;
if((char *)dev==sdev_id) {
if(!vga_test_vsync(dev))
#ifndef KERNEL_2_6
return;
#else
return IRQ_NONE;
#endif
vga_ack_vsync(dev);
} else {
if(!dev->test_vsync(dev))
#ifndef KERNEL_2_6
return;
#else
return IRQ_NONE;
#endif
dev->ack_vsync(dev);
}
vsync=0;
|
_________________ HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs! |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Wed Jan 28, 2004 10:17 am Post subject: Re: Problema in compilazione svgalib-1.9.17-r3 |
|
|
quantumwire wrote: |
static irqreturn_t vsync_interrupt(int irq, void *dev_id, struct pt_regs *regs) ( LINEA 90 )
|
Il parse error é dovuto a una errata definizione di "irqreturn_t".
Se dai un occhiata al link che ha postato cerri c'é un workaround (ovvero cancellare la ridefinizione del tipo....) e un paio di patch |
|
Back to top |
|
|
quantumwire Guru
Joined: 15 Oct 2003 Posts: 403 Location: Lausanne
|
Posted: Wed Jan 28, 2004 10:50 am Post subject: |
|
|
Niente da fare... la patch del 16-01-2004 non riesco ad installarla (... se qualcuno sa come si fa visto che prima di tutto fa riferimento ad un direttorio sorgente come questo "svgalib-1.9.17" e non come quello di gentoo " svgalib-1.9.17-r3"... any idea??) e non riesco neppure con quella "barbara" del giorno dopo (... io cancello le due righe che ridefiniscono la "typedef void irqreturn_t;" nei file "kernel26compat.h riga 17" e "interrupt.h riga 16" ma niente da fare!)
PS: io non ho il kernel 2.6! Ho il 2.4.24! _________________ HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs! |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Wed Jan 28, 2004 11:11 am Post subject: |
|
|
quantumwire wrote: | (... io cancello le due righe che ridefiniscono la "typedef void irqreturn_t;" nei file "kernel26compat.h riga 17" e "interrupt.h riga 16" ma niente da fare!)
|
Devi cancellarla solo nel file kernel26compat.h |
|
Back to top |
|
|
quantumwire Guru
Joined: 15 Oct 2003 Posts: 403 Location: Lausanne
|
Posted: Wed Jan 28, 2004 11:39 am Post subject: |
|
|
randomaze wrote: |
Devi cancellarla solo nel file kernel26compat.h
|
Non cambia nulla... stesso errore nello stesso punto. Ho ripristinato il file include originale del kernel vanilla-2.4.24 ma non c'e' verso!!!
Domanda... avete avuto lo stesso mio problema con le svgalib o non ne avete bisogno proprio delle vgalib? _________________ HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs! |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Thu Jan 29, 2004 7:31 am Post subject: |
|
|
Code: | cerri@cerrito on GSM cerri $ etcat -v svgalib
[ Results for search key : svgalib ]
[ Candidate applications found : 2 ]
Only printing found installed programs.
* media-libs/svgalib-1.4.3-r4 :
[ ] 1.4.3-r4 (0)
* media-libs/svgalib-1.9.17-r3 :
[ I] 1.9.17-r3 (0)
cerri@cerrito on GSM cerri $ uname -a
Linux cerrito.clients.centromultimediale.it 2.6.1-gentoo-r1 #3 Tue Jan 27 09:47:56 CET 2004 i686 Intel(R) Pentium(R) III Mobile CPU 1200MHz GenuineIntel GNU/Linux
cerri@cerrito on GSM cerri $
|
_________________ Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito |
|
Back to top |
|
|
quantumwire Guru
Joined: 15 Oct 2003 Posts: 403 Location: Lausanne
|
|
Back to top |
|
|
quantumwire Guru
Joined: 15 Oct 2003 Posts: 403 Location: Lausanne
|
|
Back to top |
|
|
|