Archief - Fout bij compiling Berlios drivers

Het archief is een bevroren moment uit een vorige versie van dit forum, met andere regels en andere bazen. Deze posts weerspiegelen op geen enkele manier onze huidige ideeën, waarden of wereldbeelden en zijn op sommige plaatsen gecensureerd wegens ontoelaatbaar. Veel zijn in een andere tijdsgeest gemaakt, al dan niet ironisch - zoals in het ironische subforum Off-Topic - en zouden op dit moment niet meer gepost (mogen) worden. Toch bieden we dit archief nog graag aan als informatiedatabank en naslagwerk. Lees er hier meer over of start een gesprek met anderen.

Killertux

Legacy Member
Als ik mijn berlios drivers wil compilen (als root) krijg ik het volgende:
linux:/home/jonas/progs # tar -xzvf at76c503-0.11.tar.gz

at76c503-0.11/
at76c503-0.11/at76c503.c
at76c503-0.11/usbdfu.c
at76c503-0.11/at76c503-rfmd.c
at76c503-0.11/at76c505-rfmd.c
at76c503-0.11/at76c503-rfmd-acc.c
at76c503-0.11/at76c503-i3861.c
at76c503-0.11/at76c503-i3863.c
at76c503-0.11/at76c505-rfmd2958.c
at76c503-0.11/at76c503.h
at76c503-0.11/ieee802_11.h
at76c503-0.11/usbdfu.h
at76c503-0.11/fw-rfmd-0.90.2-140.h
at76c503-0.11/fw-rfmd-1.101.0-84.h
at76c503-0.11/fw-rfmd-acc-1.101.0-84.h
at76c503-0.11/fw-r505.h
at76c503-0.11/fw-505rfmd2958-1.101.0-86.h
at76c503-0.11/fw-i3861.h
at76c503-0.11/fw-i3863.h
at76c503-0.11/Makefile
at76c503-0.11/README
at76c503-0.11/COPYING
at76c503-0.11/CHANGELOG
at76c503-0.11/scripts/
at76c503-0.11/scripts/fwconvert
at76c503-0.11/scripts/fwversion
at76c503-0.11/scripts/CVS/
at76c503-0.11/scripts/CVS/Root
at76c503-0.11/scripts/CVS/Repository
at76c503-0.11/scripts/CVS/Entries
at76c503-0.11/scripts/fwbin2h
linux:/home/jonas/progs # ls
. .. at76c503-0.11 at76c503-0.11.tar.gz
linux:/home/jonas/progs # cd at76c503-0.11/
linux:/home/jonas/progs/at76c503-0.11 # ls
. at76c505-rfmd.c fw-rfmd-acc-1.101.0-84.h
.. CHANGELOG ieee802_11.h
at76c503.c COPYING Makefile
at76c503.h fw-505rfmd2958-1.101.0-86.h README
at76c503-i3861.c fw-i3861.h scripts
at76c503-i3863.c fw-i3863.h usbdfu.c
at76c503-rfmd-acc.c fw-r505.h usbdfu.h
at76c503-rfmd.c fw-rfmd-0.90.2-140.h
at76c505-rfmd2958.c fw-rfmd-1.101.0-84.h
linux:/home/jonas/progs/at76c503-0.11 # make
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common -Wn o-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DDRIVER_VERSIO N=\"v0.11\" -I/lib/modules/2.6.4-52-default/build/include -DMODVERSIONS -include /lib/modules/2.6.4-52-default/build/include/linux/modversions.h -c at76c503.c
<command line>:138984685:48432: /lib/modules/2.6.4-52-default/build/include/linu x/modversions.h: Onbekend bestand of map
In file included from /lib/modules/2.6.4-52-default/build/include/linux/irq.h:20,
from /lib/modules/2.6.4-52-default/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.4-52-default/build/include/linux/interrupt.h:11,
from /lib/modules/2.6.4-52-default/build/include/linux/usb.h:15,
from at76c503.c:91:
/lib/modules/2.6.4-52-default/build/include/asm/irq.h:16:25: irq_vectors.h: Onbekend bestand of map
In file included from /lib/modules/2.6.4-52-default/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.4-52-default/build/include/linux/interrupt.h:11,
from /lib/modules/2.6.4-52-default/build/include/linux/usb.h:15,
from at76c503.c:91:
/lib/modules/2.6.4-52-default/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.6.4-52-default/build/include/linux/irq.h:72,
from /lib/modules/2.6.4-52-default/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.4-52-default/build/include/linux/interrupt.h:11,
from /lib/modules/2.6.4-52-default/build/include/linux/usb.h:15,
from at76c503.c:91:
/lib/modules/2.6.4-52-default/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/lib/modules/2.6.4-52-default/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
In file included from at76c503.c:100:
at76c503.h:459: error: field `tqueue' has incomplete type
at76c503.h:465: error: field `kevent' has incomplete type
at76c503.c: In function `send_mgmt_bulk':
at76c503.c:1427: error: `USB_ST_URB_PENDING' undeclared (first use in this function)
at76c503.c:1427: error: (Each undeclared identifier is reported only once
at76c503.c:1427: error: for each function it appears in.)
at76c503.c:1466: warning: implicit declaration of function `FILL_BULK_URB'
at76c503.c:1474: error: too few arguments to function `usb_submit_urb'
at76c503.c: In function `defer_kevent':
at76c503.c:1757: warning: passing arg 2 of `set_bit' from incompatible pointer type
at76c503.c:1758: warning: implicit declaration of function `schedule_task'
at76c503.c: In function `kevent':
at76c503.c:1782: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1782: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1790: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1794: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1794: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1821: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1825: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1825: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1829: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1832: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1832: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1833: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1838: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1838: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1840: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1877: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1877: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1878: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1948: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1948: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1949: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1999: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1999: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:2000: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:2005: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:2005: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:2006: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:2014: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:2014: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:2015: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c: In function `submit_rx_urb':
at76c503.c:3089: warning: passing arg 6 of `usb_fill_bulk_urb' from incompatible pointer type
at76c503.c:3090: error: too few arguments to function `usb_submit_urb'
at76c503.c: In function `at76c503_write_bulk_callback':
at76c503.c:3235: error: too few arguments to function `usb_submit_urb'
at76c503.c: In function `at76c503_tx':
at76c503.c:3321: error: too few arguments to function `usb_submit_urb'
at76c503.c: In function `at76c503_tx_timeout':
at76c503.c:3346: error: `USB_ASYNC_UNLINK' undeclared (first use in this function)
at76c503.c: In function `ethtool_ioctl':
at76c503.c:3689: error: structure has no member named `owner'
at76c503.c:3695:41: missing binary operator before token "("
at76c503.c: In function `at76c503_delete_device':
at76c503.c:4353: warning: implicit declaration of function `flush_scheduled_tasks'
at76c503.c: In function `at76c503_alloc_urbs':
at76c503.c:4384: warning: initialization from incompatible pointer type
at76c503.c:4390: error: structure has no member named `endpoint'
at76c503.c:4396: error: too few arguments to function `usb_alloc_urb'
at76c503.c:4407: error: too few arguments to function `usb_alloc_urb'
at76c503.c:4429: error: too few arguments to function `usb_alloc_urb'
at76c503.c: In function `at76c503_new_device':
at76c503.c:4463: warning: implicit declaration of function `INIT_TQUEUE'
at76c503.c:4507: warning: assignment from incompatible pointer type
at76c503.c: In function `at76c503_do_probe':
at76c503.c:4595: warning: implicit declaration of function `usb_inc_dev_use'
at76c503.c:4597: warning: implicit declaration of function `usb_get_configuration'
at76c503.c:4610: error: `USB_ST_STALL' undeclared (first use in this function)
at76c503.c:4625: error: structure has no member named `owner'
at76c503.c:4640: warning: implicit declaration of function `usb_dec_dev_use'
make: *** [at76c503.o] Fout 1

Iemand die zit wat de n00b verkeerd doet? :unsure:

dJeez

Legacy Member
Ik vermoed dat je de kernel sources niet geïnstalleerd hebt staan, die installeren is noodzakelijk om de driver te kunnen compileren. Let erop dat de kernel sources moeten overeenkomen met de geïnstalleerde kernel.

Meestal noemt die package gewoon kernel-sources, deze installeren (via apt-get vermoed 'k op Ubuntu, tenzij er ook een GUI installatieprog voorzien is) zou voldoende moeten zijn om de driver te kunnen compileren.

Killertux

Legacy Member
dJeez zei:
Ik vermoed dat je de kernel sources niet geïnstalleerd hebt staan, die installeren is noodzakelijk om de driver te kunnen compileren. Let erop dat de kernel sources moeten overeenkomen met de geïnstalleerde kernel.

Meestal noemt die package gewoon kernel-sources, deze installeren (via apt-get vermoed 'k op Ubuntu, tenzij er ook een GUI installatieprog voorzien is) zou voldoende moeten zijn om de driver te kunnen compileren.

Da ga dus nie, eb alle fedora cds compleet geinstalleerd en da ga nog steeds niet. :sad:

dJeez

Legacy Member
Hmmm, ik heb de driver source die je hebt gedownload nu ook eens gedownd en in de README staat dat die bedoeld is voor kernel 2.4. Fedora Core 3 gebruikt kernel 2.6, vandaar dat het compileren dus niet lukt (en niet zal lukken ook).

Je moet dus de cvs versie downloaden : http://cvs.berlios.de/cvstarballs/at76c503a-cvsroot.tar.gz
En dan de volgende stappen uitvoeren in een console :
tar xzvf at76c503a-cvsroot.tar.gz
mv at76c503a CVS
cvs -d `pwd`/CVS co at76c503a

En vervolgens :
cd at76c503a
make
make install
Veel succes!

BTW Hoe ik erbij kwam dat je Ubuntu zou gebruiken weet 'k nu ineens niet meer, maar je bent blijkbaar wel overgestapt van SuSE naar Fedora?

Killertux

Legacy Member
Ja, omdat ik iemand ken die Fedora Core 3 gebruikt en het bij hem wel lukte.
Maar hoe kan ik dit dan in suse 9.1 Pro doen werken? Ook met die CVS?

dJeez

Legacy Member
Killertux zei:
Ja, omdat ik iemand ken die Fedora Core 3 gebruikt en het bij hem wel lukte.
Maar hoe kan ik dit dan in suse 9.1 Pro doen werken? Ook met die CVS?
Aangezien de recente SuSE versies ook kernel 2.6 gebruiken zal je daar inderdaad ook de cvs versie moeten gebruiken.

waveshaper

Legacy Member
klopt je moet de cvs versie nemen, die heb ik ook gepakt !! Ik ben dus degene waar het wel bij gelukt is :) ... indien je die niet kan bemachtigen wil ik ze ook wel doormailen hoor, heb hier een snapshot liggen van de cvs versie die wel compiled .

Killertux

Legacy Member
Keb van Waveshaper nen snapshot van die CVS drivers gekregen.
kwacht nu enkel nog op waveshaper op een scriptje om die iwconfig dingen te doen... :applause:

waveshaper

Legacy Member
da scriptje heb ik al gemaild ... werkt het ondertussen nu al of zit je nog ergens vast ?? laat effe iets weten ..
Het archief is een bevroren moment uit een vorige versie van dit forum, met andere regels en andere bazen. Deze posts weerspiegelen op geen enkele manier onze huidige ideeën, waarden of wereldbeelden en zijn op sommige plaatsen gecensureerd wegens ontoelaatbaar. Veel zijn in een andere tijdsgeest gemaakt, al dan niet ironisch - zoals in het ironische subforum Off-Topic - en zouden op dit moment niet meer gepost (mogen) worden. Toch bieden we dit archief nog graag aan als informatiedatabank en naslagwerk. Lees er hier meer over of start een gesprek met anderen.
Terug
Bovenaan