Discussion:
compilation of mga_vid fails on 2.6.x/Debian
Stefan Ehlen
2005-04-09 16:05:43 UTC
Permalink
Hi,

I'm trying to compile mga_vid on my debian "testing"-machine using the latest
"mga-vid-source"-package provided by Christian Marillat . Compilation fails
with these messages:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/usr/src/modules/mga-vid/mga_vid.c:370: error: Fehler beim Parsen before
"devfs_handle_t"
mga_vid.c:370: Warnung: kein Semikolon am Ende von »struct« oder »union«
mga_vid.c:406: error: Fehler beim Parsen before '}' token
mga_vid.c:406: Warnung: type defaults to `int' in declaration of `mga_card_t'
mga_vid.c:406: Warnung: data definition has no type or storage class
mga_vid.c:413: error: Fehler beim Parsen before '*' token
mga_vid.c:413: Warnung: type defaults to `int' in declaration of `mga_cards'
mga_vid.c:413: Warnung: data definition has no type or storage class
mga_vid.c:459: error: Fehler beim Parsen before '*' token
mga_vid.c:460: Warnung: function declaration isn't a prototype
mga_vid.c: In Funktion »mga_vid_frame_sel«:
mga_vid.c:461: error: `card' undeclared (first use in this function)
mga_vid.c:461: error: (Each undeclared identifier is reported only once
mga_vid.c:461: error: for each function it appears in.)
mga_vid.c:462: error: `frame' undeclared (first use in this function)
mga_vid.c: Auf höchster Ebene:
mga_vid.c:481: error: Fehler beim Parsen before '*' token
mga_vid.c:482: Warnung: function declaration isn't a prototype
mga_vid.c: In Funktion »mga_vid_write_regs«:
mga_vid.c:484: error: `card' undeclared (first use in this function)
mga_vid.c:489: error: `restore' undeclared (first use in this function)
mga_vid.c: Auf höchster Ebene:
mga_vid.c:707: error: Fehler beim Parsen before '*' token
mga_vid.c:708: Warnung: function declaration isn't a prototype
mga_vid.c: In Funktion »mga_vid_set_config«:
mga_vid.c:711: error: `card' undeclared (first use in this function)
mga_vid.c: In Funktion »mga_vid_ioctl«:
mga_vid.c:1194: error: `card' undeclared (first use in this function)
mga_vid.c:1194: error: Fehler beim Parsen before ')' token
mga_vid.c: Auf höchster Ebene:
mga_vid.c:1325: error: Fehler beim Parsen before '*' token
mga_vid.c:1325: Warnung: function declaration isn't a prototype
mga_vid.c: In Funktion »mga_vid_find_card«:
mga_vid.c:1332: error: `card' undeclared (first use in this function)
mga_vid.c: Auf höchster Ebene:
mga_vid.c:1393: error: Fehler beim Parsen before '*' token
mga_vid.c:1394: Warnung: function declaration isn't a prototype
mga_vid.c: In Funktion »mga_param_buff_fill«:
mga_vid.c:1396: error: `card' undeclared (first use in this function)
mga_vid.c: In Funktion »mga_vid_read«:
mga_vid.c:1415: error: `card' undeclared (first use in this function)
mga_vid.c:1415: error: Fehler beim Parsen before ')' token
mga_vid.c:1420: Warnung: type defaults to `int' in declaration of `_y'
mga_vid.c:1420: Warnung: in Vergleich verschiedener Zeigertypen fehlt
Typkonvertierung
mga_vid.c: In Funktion »mga_vid_write«:
mga_vid.c:1428: error: `card' undeclared (first use in this function)
mga_vid.c:1428: error: Fehler beim Parsen before ')' token
mga_vid.c: In Funktion »mga_vid_mmap«:
mga_vid.c:1460: error: `card' undeclared (first use in this function)
mga_vid.c:1460: error: Fehler beim Parsen before ')' token
mga_vid.c:1473: Warnung: implicit declaration of function `remap_page_range'
mga_vid.c: In Funktion »mga_vid_release«:
mga_vid.c:1489: error: `card' undeclared (first use in this function)
mga_vid.c:1496: error: Fehler beim Parsen before ')' token
mga_vid.c: In Funktion »mga_vid_open«:
mga_vid.c:1518: error: `card' undeclared (first use in this function)
mga_vid.c:1546: error: Fehler beim Parsen before ')' token
mga_vid.c: Auf höchster Ebene:
mga_vid.c:1585: error: Fehler beim Parsen before '*' token
mga_vid.c:1586: Warnung: function declaration isn't a prototype
mga_vid.c: In Funktion »cards_init«:
mga_vid.c:1593: error: `card' undeclared (first use in this function)
mga_vid.c:1596: error: `dev' undeclared (first use in this function)
mga_vid.c:1603: error: `card_number' undeclared (first use in this function)
mga_vid.c: In Funktion »cleanup_module«:
mga_vid.c:1786: error: `card' undeclared (first use in this function)
make[2]: *** [mga_vid.o] Fehler 1
make[1]: *** [_module_/usr/src/modules/mga-vid] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.11.4'
make: *** [build-stamp] Fehler 2
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

If you dislike this language-mix, you can find the same output all in english
at http://www.unixboard.de/vb3/showthread.php?t=12620
Please note that I'm using 2.6.11, while the report mentioned above refers to
2.6.8.

Please, can anybody give me a hint?

Cu
Stefan
Ferdinand O. Tempel
2005-04-09 16:46:03 UTC
Permalink
Post by Stefan Ehlen
Hi,
I'm trying to compile mga_vid on my debian "testing"-machine using the latest
"mga-vid-source"-package provided by Christian Marillat . Compilation fails
Somehow I very much doubt those source packages are 2.6 compatible. Grab
Attila's version of this driver from http://attila.kinali.ch/mga/ and
try again

Regards,

Ferdinand O. Tempel
Stefan Ehlen
2005-04-09 18:18:06 UTC
Permalink
Post by Ferdinand O. Tempel
Post by Stefan Ehlen
Hi,
I'm trying to compile mga_vid on my debian "testing"-machine using the
latest "mga-vid-source"-package provided by Christian Marillat .
Somehow I very much doubt those source packages are 2.6 compatible. Grab
Attila's version of this driver from http://attila.kinali.ch/mga/ and
try again
Somehow I believe you're right ;-)
I'll try Attila's version as soon as possible, but at the moment there seems
to be a problem with his website ("document contains no data").

Anyway, thanks for answering that quickly.

CU
Stefan
Attila Kinali
2005-04-09 19:46:52 UTC
Permalink
On Sat, 9 Apr 2005 20:18:06 +0200
Post by Stefan Ehlen
I'll try Attila's version as soon as possible, but at the moment there seems
to be a problem with his website ("document contains no data").
Interesting. It works fine here.
Please try again and if it doesn't work tell me the exact time
(including timezone) when you tried it, so i can check the webserver.

Attila Kinali
--
郷に入れば郷に従え
Stefan Ehlen
2005-04-09 22:22:46 UTC
Permalink
Post by Attila Kinali
On Sat, 9 Apr 2005 20:18:06 +0200
Post by Stefan Ehlen
I'll try Attila's version as soon as possible, but at the moment there
seems to be a problem with his website ("document contains no data").
Interesting. It works fine here.
Please try again and if it doesn't work tell me the exact time
(including timezone) when you tried it, so i can check the webserver.
Attila Kinali
I just tried (20050410, Sat Apr 9 22:16:00 UTC 2005 (Europe/Berlin)) and it
does not work - not even ping :-(

Stefan
Peter Magnusson
2005-04-09 23:27:24 UTC
Permalink
Post by Stefan Ehlen
Post by Attila Kinali
Interesting. It works fine here.
Please try again and if it doesn't work tell me the exact time
(including timezone) when you tried it, so i can check the webserver.
Attila Kinali
I just tried (20050410, Sat Apr 9 22:16:00 UTC 2005 (Europe/Berlin)) and it
does not work - not even ping :-(
Hmm.. interesting. It doesnt work anywhere but home for me.
home = Sweden. CET/GMT+1. Sun Apr 10 01:20:20 CEST 2005

Tested from several ISPs and it doesnt work from any. attila.kinali.ch
doesnt respond on ping for me. But appers to be working.. But im not sure
that it works anyway.. it act strange like this:

[***@flashdance downloads]$ telnet attila.kinali.ch 80
Trying 147.87.98.10...
Connected to attila.kinali.ch (147.87.98.10).
Escape character is '^]'.
sdfgsdf
Connection closed by foreign host.

(uhmm?)

[***@flashdance downloads]$ telnet attila.kinali.ch 80
Trying 147.87.98.10...
Connected to attila.kinali.ch (147.87.98.10).
Escape character is '^]'.
GET / HTTP/1.1
host: attila.kinali.ch

HTTP/1.1 200 OK
Date: Sat, 09 Apr 2005 23:18:56 GMT
<and so on the whole page>
</body></html>
x
dsf
?
sdsdfsdf

It should say something like 501 Method Not Implemented. Maybe I have hit
some kind of cache-cluster. traceroute doesnt reveal anything...

Anyway, here you have it:
http://flashdance.cx/tmp/mga-vid-2.6.11-2005-03-06.tar.gz
Stefan Ehlen
2005-04-09 23:54:49 UTC
Permalink
Post by Peter Magnusson
Post by Stefan Ehlen
Post by Attila Kinali
Interesting. It works fine here.
Please try again and if it doesn't work tell me the exact time
(including timezone) when you tried it, so i can check the webserver.
Attila Kinali
I just tried (20050410, Sat Apr 9 22:16:00 UTC 2005 (Europe/Berlin)) and
it does not work - not even ping :-(
Hmm.. interesting. It doesnt work anywhere but home for me.
home = Sweden. CET/GMT+1. Sun Apr 10 01:20:20 CEST 2005
Tested from several ISPs and it doesnt work from any. attila.kinali.ch
doesnt respond on ping for me. But appers to be working.. But im not sure
Trying 147.87.98.10...
Connected to attila.kinali.ch (147.87.98.10).
Escape character is '^]'.
sdfgsdf
Connection closed by foreign host.
(uhmm?)
Trying 147.87.98.10...
Connected to attila.kinali.ch (147.87.98.10).
Escape character is '^]'.
GET / HTTP/1.1
host: attila.kinali.ch
HTTP/1.1 200 OK
Date: Sat, 09 Apr 2005 23:18:56 GMT
<and so on the whole page>
</body></html>
x
dsf
?
sdsdfsdf
It should say something like 501 Method Not Implemented. Maybe I have hit
some kind of cache-cluster. traceroute doesnt reveal anything...
http://flashdance.cx/tmp/mga-vid-2.6.11-2005-03-06.tar.gz
thanks a lot, I'll try it right now. Could the problem with attila.kinali.ch
have anything to do with a "misbehaving" firewall?

CU
Stefan
Peter Magnusson
2005-04-10 00:13:45 UTC
Permalink
Post by Stefan Ehlen
Post by Peter Magnusson
http://flashdance.cx/tmp/mga-vid-2.6.11-2005-03-06.tar.gz
thanks a lot, I'll try it right now. Could the problem with attila.kinali.ch
have anything to do with a "misbehaving" firewall?
np.
Possible.. Or misbehaving webproxy in front of attila.kinali.ch. I dont
know.

FYI Im not firewalled in anyway that would affect things like this and I
dont use any proxys when I tried. Neither are the other ISPs firewalled
that I tested from.

[***@flashdance downloads]$ trace attila.kinali.ch
traceroute to enterprise.dogan.ch (147.87.98.10), 30 hops max, 38 byte
packets
1 gw.flashdance.cx (194.145.250.65) 0.381 ms 0.307 ms
2 gw-out.flashdance.cx (194.145.248.169) 12.347 ms 12.970 ms
3 addr248-1-26.ge1.cr0.sth0.prqinet.net (194.145.248.1) 12.578 ms
12.506 ms
4 ge1-0.cr1.glc-cop.dk.p80.net (217.75.108.119) 22.318 ms 22.141 ms
5 sl-gw10-cop-8-1.sprintlink.net (80.77.65.93) 25.592 ms 19.240 ms
6 sl-bb20-cop-8-0.sprintlink.net (80.77.64.37) 25.153 ms 22.484 ms
7 so0-1-0-155M.ar1.CPH1.gblx.net (64.212.107.17) 19.327 ms 25.548 ms
8 so4-0-0-2488M.ar2.CDG2.gblx.net (67.17.65.90) 43.847 ms 69.948 ms
9 swiCE2-switch-ch.so-0-1-0.ar2.CDG2.gblx.net (64.212.70.62) 64.140 ms
66.795 ms
10 swiCE2-10GE-1-4.switch.ch (130.59.36.209) 62.941 ms 55.993 ms
11 swiBE1-G2-1.switch.ch (130.59.36.110) 140.495 ms 61.342 ms
12 swiBE2-G2-1.switch.ch (130.59.36.198) 66.211 ms 69.570 ms
13 cerberus-ext-ge00.unibe.ch (195.176.0.140) 61.617 ms 61.276 ms
14 unigw-ext.its.bfh.ch (147.87.255.247) 50.420 ms 46.628 ms
15 147.87.254.253 (147.87.254.253) 55.865 ms 68.530 ms
16 147.87.241.254 (147.87.241.254) 62.892 ms 56.808 ms
17 bielexterior.hta-bi.bfh.ch (147.87.240.48) 78.250 ms 67.541 ms
18 * *
<and so on>

[***@flashdance dev]# tcptrace attila.kinali.ch
Selected device eth0, address 194.145.250.70, port 51859 for outgoing
packets
Tracing the path to attila.kinali.ch (147.87.98.10) on TCP port 80 (http),
30 hops max
1 gw.flashdance.cx (194.145.250.65) 0.219 ms 0.288 ms
2 gw-out.flashdance.cx (194.145.248.169) 15.493 ms 9.970 ms
3 addr248-1-26.ge1.cr0.sth0.prqinet.net (194.145.248.1) 15.769 ms
15.440 ms
4 ge1-0.cr1.glc-cop.dk.p80.net (217.75.108.119) 19.453 ms 19.477 ms
5 sl-gw10-cop-8-1.sprintlink.net (80.77.65.93) 22.273 ms 18.761 ms
6 sl-bb20-cop-8-0.sprintlink.net (80.77.64.37) 21.984 ms 22.667 ms
7 so0-1-0-155M.ar1.CPH1.gblx.net (64.212.107.17) 25.467 ms 25.310 ms
8 so4-0-0-2488M.ar2.CDG2.gblx.net (67.17.65.90) 46.747 ms 49.730 ms
9 swiCE2-switch-ch.so-0-1-0.ar2.CDG2.gblx.net (64.212.70.62) 67.154 ms
61.251 ms
10 swiCE2-10GE-1-4.switch.ch (130.59.36.209) 69.792 ms 56.640 ms
11 swiBE1-G2-1.switch.ch (130.59.36.110) 60.550 ms 61.555 ms
12 swiBE2-G2-1.switch.ch (130.59.36.198) 65.607 ms 68.954 ms
13 cerberus-ext-ge00.unibe.ch (195.176.0.140) 55.531 ms 58.861 ms
14 unigw-ext.its.bfh.ch (147.87.255.247) 50.504 ms 47.295 ms
15 147.87.98.10 [open] 51.007 ms 53.391 ms

hmmz... Thats some difference!
Stefan Ehlen
2005-04-10 00:04:55 UTC
Permalink
Post by Peter Magnusson
http://flashdance.cx/tmp/mga-vid-2.6.11-2005-03-06.tar.gz
"Module /usr/src/modules/mga-vid processed fine" - great! :-)))
Peter Magnusson
2005-04-10 00:14:29 UTC
Permalink
Post by Stefan Ehlen
Post by Peter Magnusson
http://flashdance.cx/tmp/mga-vid-2.6.11-2005-03-06.tar.gz
"Module /usr/src/modules/mga-vid processed fine" - great! :-)))
^_^

Loading...