Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema in compilazione svgalib-1.9.17-r3 [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
quantumwire
Guru
Guru


Joined: 15 Oct 2003
Posts: 403
Location: Lausanne

PostPosted: Wed Jan 28, 2004 12:55 am    Post subject: Problema in compilazione svgalib-1.9.17-r3 [RISOLTO] Reply with quote

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" 8O 8O 8O
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
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Jan 28, 2004 8:40 am    Post subject: Re: Problema in compilazione svgalib-1.9.17-r3 Reply with quote

quantumwire wrote:

[code]
main.c:90: parse error before "vsync_interrupt" 8O 8O 8O
[/cpde]


Riesci a postare una decina di righe del file, tipo dalla 81 alla 91?
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Wed Jan 28, 2004 8:58 am    Post subject: Reply with quote

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
View user's profile Send private message
quantumwire
Guru
Guru


Joined: 15 Oct 2003
Posts: 403
Location: Lausanne

PostPosted: Wed Jan 28, 2004 10:08 am    Post subject: Re: Problema in compilazione svgalib-1.9.17-r3 Reply with quote

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>>8)&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) (:evil: LINEA 90 :evil: )
{
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
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Jan 28, 2004 10:17 am    Post subject: Re: Problema in compilazione svgalib-1.9.17-r3 Reply with quote

quantumwire wrote:

static irqreturn_t vsync_interrupt(int irq, void *dev_id, struct pt_regs *regs) (:evil: LINEA 90 :evil: )


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
View user's profile Send private message
quantumwire
Guru
Guru


Joined: 15 Oct 2003
Posts: 403
Location: Lausanne

PostPosted: Wed Jan 28, 2004 10:50 am    Post subject: Reply with quote

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
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Jan 28, 2004 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
quantumwire
Guru
Guru


Joined: 15 Oct 2003
Posts: 403
Location: Lausanne

PostPosted: Wed Jan 28, 2004 11:39 am    Post subject: Reply with quote

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!!! :evil:

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
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Thu Jan 29, 2004 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message
quantumwire
Guru
Guru


Joined: 15 Oct 2003
Posts: 403
Location: Lausanne

PostPosted: Thu Jan 29, 2004 10:57 am    Post subject: Reply with quote

Non ho capito questo tuo post Cerii.... :roll:

Ahhh. ora l'ho capito... le hai installate e non ti hanno dato problemi... forse perche' hai il 2.6.x :D .
_________________
HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs!
Back to top
View user's profile Send private message
quantumwire
Guru
Guru


Joined: 15 Oct 2003
Posts: 403
Location: Lausanne

PostPosted: Fri Jan 30, 2004 10:22 am    Post subject: Reply with quote

Eccoci alla soluzione finalmente!!!

https://forums.gentoo.org/viewtopic.php?t=102209#top

Con me ha funzionato proprio perche' monto solo il kernel 2.4.x.
_________________
HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum