Anzeige:
Ergebnis 1 bis 3 von 3

Thema: beim kompilieren mit make lauter Fehler...

  1. #1
    Registrierter Benutzer
    Registriert seit
    Jan 2005
    Beiträge
    15

    beim kompilieren mit make lauter Fehler...

    kann mir jemand step by step helfen wie es weitergeht. Es ist ein Wireless treiber für ne Dlink Dwl-520+


    Kriege das mit dem konfiguriren nicht hin


    linux:~ # cd /Software/Dlink
    linux:/Software/Dlink #
    linux:/Software/Dlink #
    linux:/Software/Dlink # make
    make -C src
    make[1]: Entering directory `/Software/Dlink/src'
    gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=4 -march=i586 -DACX_DEBUG=1 -DACX_IO_WIDTH=32 -D__KERNEL__ -DMODULE -DWLAN_HOSTIF=WLAN_PCI -I/lib/modules/2.6.8-24.14-default/build/include -I../include -c -o acx100.o acx100.c
    In file included from acx100.c:71:
    /usr/include/linux/version.h:2:2: #error "================================================= ======"
    /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
    /usr/include/linux/version.h:4:2: #error "files directly for the compilation ofkernel modules."
    /usr/include/linux/version.h:5:2: #error ""
    /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
    /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
    /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
    /usr/include/linux/version.h:9:2: #error "currently running kernel. They shouldonly be"
    /usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
    /usr/include/linux/version.h:11:2: #error "programs should not directly include<linux/*.h> or"
    /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
    /usr/include/linux/version.h:13:2: #error ""
    /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
    /usr/include/linux/version.h:15:2: #error ""
    /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
    /usr/include/linux/version.h:17:2: #error ""
    /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
    /usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
    /usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
    /usr/include/linux/version.h:21:2: #error ""
    /usr/include/linux/version.h:22:2: #error " o Configure kernel sources:"
    /usr/include/linux/version.h:23:2: #error " - cd /usr/src/linux"
    /usr/include/linux/version.h:24:2: #error " - make mrproper"
    /usr/include/linux/version.h:25:2: #error " - make cloneconfig"
    /usr/include/linux/version.h:26:2: #error " - make dep"
    /usr/include/linux/version.h:27:2: #error ""
    /usr/include/linux/version.h:28:2: #error " o When compiling, make sure to use the following"
    /usr/include/linux/version.h:29:2: #error " compiler option to use the correct include files:"
    /usr/include/linux/version.h:30:2: #error ""
    /usr/include/linux/version.h:31:2: #error " -I/lib/modules/`uname -r`/build/include"
    /usr/include/linux/version.h:32:2: #error ""
    /usr/include/linux/version.h:33:2: #error " instead of"
    /usr/include/linux/version.h:34:2: #error ""
    /usr/include/linux/version.h:35:2: #error " -I/usr/include/linux"
    /usr/include/linux/version.h:36:2: #error ""
    /usr/include/linux/version.h:37:2: #error " Please adjust the Makefile accordingly."
    /usr/include/linux/version.h:38:2: #error "================================================= ======"
    In file included from /usr/include/linux/list.h:7,
    from /usr/include/linux/wait.h:14,
    from /usr/include/asm/semaphore.h:41,
    from /usr/include/linux/sched.h:18,
    from /usr/include/linux/module.h:9,
    from acx100.c:74:
    /usr/include/linux/prefetch.h: In function `prefetch_range':
    /usr/include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared(first use in this function)
    /usr/include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
    /usr/include/linux/prefetch.h:64: error: for each function it appears in.)
    In file included from /usr/include/linux/module.h:22,
    from acx100.c:74:
    /usr/include/asm/module.h:56:2: #error unknown processor family
    acx100.c:75:41: missing binary operator before token "("
    In file included from acx100.c:81:
    /usr/include/linux/skbuff.h:30:26: net/checksum.h: No such file or directory
    In file included from /usr/include/linux/irq.h:20,
    from /usr/include/asm/hardirq.h:6,
    from /usr/include/linux/interrupt.h:12,
    from /usr/include/linux/netdevice.h:512,
    from /usr/include/linux/if_arp.h:26,
    from acx100.c:83:
    /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:12,
    from /usr/include/linux/netdevice.h:512,
    from /usr/include/linux/if_arp.h:26,
    from acx100.c:83:
    /usr/include/linux/irq.h: At top level:
    /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:12,
    from /usr/include/linux/netdevice.h:512,
    from /usr/include/linux/if_arp.h:26,
    from acx100.c:83:
    /usr/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in afunction)
    /usr/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function)
    In file included from /usr/include/linux/interrupt.h:12,
    from /usr/include/linux/netdevice.h:512,
    from /usr/include/linux/if_arp.h:26,
    from acx100.c:83:
    /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
    acx100.c:87:28: net/iw_handler.h: No such file or directory
    In file included from ../include/acx.h:3,
    from acx100.c:104:
    ../include/wlan_compat.h:221:41: missing binary operator before token "("
    ../include/wlan_compat.h:223:43: missing binary operator before token "("
    ../include/wlan_compat.h:247:40: missing binary operator before token "("
    In file included from ../include/acx.h:7,
    from acx100.c:104:
    ../include/acx_struct.h:115:41: missing binary operator before token "("
    ../include/acx_struct.h:124:26: linux/tqueue.h: No such file or directory
    ../include/acx_struct.h:128:1: warning: "INIT_WORK" redefined
    In file included from /usr/include/linux/aio.h:5,
    from /usr/include/linux/sched.h:190,
    from /usr/include/linux/module.h:9,
    from acx100.c:74:
    /usr/include/linux/workqueue.h:45:1: warning: this is the location of the previous definition
    In file included from ../include/acx.h:7,
    from acx100.c:104:
    ../include/acx_struct.h:1068:40: missing binary operator before token "("
    In file included from ../include/acx.h:7,
    from acx100.c:104:
    ../include/acx_struct.h:1083: error: field `after_interrupt_task' has incomplete type
    ../include/acx_struct.h:1092: error: field `spy_data' has incomplete type
    ../include/acx_struct.h:1309:41: missing binary operator before token "("
    acx100.c:272:40: missing binary operator before token "("
    acx100.c:809:41: missing binary operator before token "("
    acx100.c:825:41: missing binary operator before token "("
    acx100.c: In function `acx_probe_pci':
    acx100.c:830: error: structure has no member named `pci_state'
    acx100.c:852: error: `UTS_RELEASE' undeclared (first use in this function)
    acx100.c:2032:41: missing binary operator before token "("
    make[1]: *** [acx100.o] Error 1
    make[1]: Leaving directory `/Software/Dlink/src'
    make: *** [driver] Error 2
    linux:/Software/Dlink #



    linux:/Software/Dlink # make install
    make -C src install
    make[1]: Entering directory `/Software/Dlink/src'
    *** Copying driver modules acx_pci.o acx_usb.o to /lib/modules/2.6.8-24.14-default/net... ***
    test -d /lib/modules/2.6.8-24.14-default/net || mkdir /lib/modules/2.6.8-24.14-default/net
    for mod in "acx_pci.o acx_usb.o"; do \
    /usr/bin/install -c $mod /lib/modules/2.6.8-24.14-default/net; \
    done
    /usr/bin/install: cannot stat `acx_pci.o': No such file or directory
    /usr/bin/install: cannot stat `acx_usb.o': No such file or directory
    make[1]: *** [install] Error 1
    make[1]: Leaving directory `/Software/Dlink/src'
    make: *** [install] Error 2
    linux:/Software/Dlink #

  2. #2
    Pinguinzüchter Avatar von hp_tux
    Registriert seit
    Sep 2003
    Beiträge
    2.669
    Hallo,

    also, ich bin mir nicht ganz sicher, aber ich schätze mal, daß Deine Kernel-Sourcen nicht (passend zum laufenden Kernel) konfiguriert sind - ein
    Code:
    make oldconfig
    in "/usr/src/linux" sollte da wohl helfen. Genaue Anleitungen findest Du hier im Forum und bei Google.

    Gruß

    hp_tux

  3. #3
    Freidenker Avatar von suck
    Registriert seit
    Nov 2004
    Ort
    Abgrund + 1 Schritt
    Beiträge
    2.433
    Man nutzt in /usr/include/{asm,linux}/ normal keine Kernelquellen mehr, da wird Linus T. böse. Dort gehören die "Linux-Libc-Headers" hin. ..hast du diese installiert? "Linux-Libc-Headers" heisst auch das Kapitel im LinuxFromScratch Buch, dort kann man ggf. nachlesen..
    int main(){while(alive()){tik();tak();}return 0;}

Ähnliche Themen

  1. fglrx kompilieren - make Fehler
    Von Celerimo im Forum X-Konfiguration
    Antworten: 8
    Letzter Beitrag: 21.04.05, 13:59
  2. Viele swap[?] Fehler bei make, install bricht ab.
    Von craano im Forum Kompilieren von Kernel und Sourcen
    Antworten: 3
    Letzter Beitrag: 08.02.05, 18:59
  3. WineX make depend && make Fehler
    Von Morimando im Forum Emulatoren für Spiele
    Antworten: 2
    Letzter Beitrag: 30.01.05, 19:57
  4. WineX kompilieren, Fehler bei make
    Von MatzeMC im Forum Emulatoren für Spiele
    Antworten: 6
    Letzter Beitrag: 13.02.04, 13:21
  5. Red Hat 8.0 Fehler bei make modules
    Von obelix im Forum Kompilieren von Kernel und Sourcen
    Antworten: 7
    Letzter Beitrag: 28.11.02, 01:55

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •