Computerhilfen.de Logo
Forum
Tipps
News
Frage stellen

Devolo dLAN usb unter linux (ubuntu)

ich versuche verzweifelt mein devolo dLAN usb unter linux zum laufen zu bringen, habe den linux treiber bei devolo runtergeladen, ./configure ging noch problemlos, aber make beschwert sich das es ein verzeichnis /driver modules nicht finden kann. dieses verzeichnis war aber nicht im archiv vom devolo, ich nehme an das es sich um einen fehler bei devolo selbst handelt. bin aber nicht sicher.

hat jemand hier das ding zum laufen bekommen? gibt es evtl. einen anderen (generischen) treiber den ich stattdessen installieren könnte?


Antworten zu Devolo dLAN usb unter linux (ubuntu):

Hallo,

vermute mal Du hast die Kernelquellen nicht installiert. Das Treiberpaket erzeugt ein Kernelmodul und zum erfolgreichen kompilieren brauchst Du halt das Kernelsourcepaket.
Die Tools zum Kompilieren, wie make, gcc u.s.w. müssen natürlich auch installiert sein.

tools zum kompilieren sind installiert. kernelquellen installieren...wie mach ich das? bin total newbee :-[

okay, das kernelquellen problem hab ich selbst gelöst. dafür bekomme ich jetzt hunderte rote error meldungen wenn ich versuche make laufen zu lassen...ich werd hier noch wahnsinnig.

Hallo,

Warnmeldungen während des Kompilierens mit make sind normal. Entscheident ist, dass nach Beendigung des Vorgangs kein Fehler entsteht.
Oft werden noch ein Sack voll Entwicklerpakete benötigt (devel), welche bei der Standardinstallation nicht installiert werden. Dazu später mehr...

Mal ein Beispiel anhand von xarchive ( ein Packer ähnlich winzip )

1. Schritt

archiv entpacken mit tar xvzf archivname in ein leeres Verzeichnis z.b. Compile

2. Schritt

configure starten

Sieht dann so aus:

asus:/compile/xarchive-0.2.6-3 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-SuSE-linux-gnu
checking for gcc... gcc
checking whether we are cross compiling... no
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for mbstate_t... yes
checking for working POSIX fnmatch... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for strtoul... yes
checking for canonicalize_file_name... yes
checking for getline... yes
checking for mkdtemp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating wrappers/Makefile
config.status: creating icons/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Wenn das Ergebnis so aussieht wie dieses, gut dann kann make in Aktion treten. Taucht in den Statusmeldungen irgendwo ein no auf ( Ausnahme: checking whether we are cross compiling... no, das ist okay ) fehlen notwendige Entwicklerpakete. Aus den Angaben kannst Du meist entnehmen welche noch installiert werden müssen, ebenso aus der im Paket meist vorhandenen Datei Install. ERST DANN FÜHRT MAKE ZUM GEWÜNSCHTEN ERGEBNIS.

Wenn dann, wie in diesem Beispiel, configure die zum Kompilerlauf notwendigen Dateien OHNE FEHLER erzeugt ( config.status: creating Makefile u.s.w ) dann kannst Du ein make riskieren ( als Root ).

asus:/compile/xarchive-0.2.6-3 # make

..............
..............

make[2]: Leaving directory `/compile/xarchive-0.2.6-3/src'
Making all in wrappers
make[2]: Entering directory `/compile/xarchive-0.2.6-3/wrappers'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/compile/xarchive-0.2.6-3/wrappers'
Making all in doc
make[2]: Entering directory `/compile/xarchive-0.2.6-3/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/compile/xarchive-0.2.6-3/doc'
Making all in icons
make[2]: Entering directory `/compile/xarchive-0.2.6-3/icons'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/compile/xarchive-0.2.6-3/icons'
make[2]: Entering directory `/compile/xarchive-0.2.6-3'
make[2]: Leaving directory `/compile/xarchive-0.2.6-3'
make[1]: Leaving directory `/compile/xarchive-0.2.6-3'

Wenn hier keine Errormeldung auftaucht, so wie hier, hat es geklappt.
Das fertige Binary ist dann in in diesem Beispiel in asus:/compile/xarchive-0.2.6-3/src zu finden und muss nur noch nach /usr/local/bin verschoben werden, entweder "Zu Fuss" per Copy oder mit make install
Findest Du stattdessen hinweise wie (Error recursive 1.. blah blah ) war der Kompilerlauf nicht von Erfolg gekrönt, da fehlt noch was ( meist irgendein Softwarepaket worüber configure nicht gestolpert ist).
Versuche zu ergründen was es ist und installiere das Fehlende nach. Dann beginne
von vorne bis es klappt.

Tippe:

make clean

um den Fehlversuch zu eliminieren. Dann beginne wieder mit
./configure
./make
und wenn alles geklappt hat
./make install

Je öfter Du solche Dinge machst um so schlauer wird Dein System weil immer mehr Pakete schon installiert sind. Irgendwann klappen die meisten Dinge dann auf Anhieb.

Hoffe, der kleine Crashkurs hilft Dir weiter.

Viel Erfolg und Guten Rutsch   
 

so, nach mehreren erfolglosen versuchen melde ich mich nochmal hier. wenn ich eine der meldungen von ./configure richtig verstehe findet er die kernel quellen nicht und möchte das ich die von hand in das makefile eintrage. was ich da jetzt genau reinschreiben soll hab ich aber keine ahnung. wenn ich make laufen lasse kommen allerdings noch ein ganz ein haufen andere fehlermeldungen, als ob in der programierung von dem treiber an sich was nicht stimmen würde. kopiere mal die meldungen von ./configure und make hier rein, vieleicht kann jemand damit mehr anfangen als ich.

freddy@linux:~/stuff/dlantool> sudo ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking gcc version... 4
checking maximum warning verbosity option...  -Wall for C
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for modprobe... /sbin/modprobe
checking for module_prefix...
checking for depmod... /sbin/depmod

configure: WARNING: cannot find kernel sources.
  please edit driver/Makefile and set variable KERNELDIR
checking for modversions.h... no
USB determination method: /sbin/lspci
USB driver to be loaded: usb-uhci
checking what kind of binaries we shall create... dynamically linked
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing putmsg... none required
checking for local pcap library... not found
checking for main in -lpcap... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for memory.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for system... yes
checking for dup2... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for vfork... yes
checking for fork... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tool/Makefile
config.status: creating driver/Makefile
config.status: creating tool/config.h
config.status: tool/config.h is unchanged

freddy@linux:~/stuff/dlantool> make
making all in tool
make[1]: Entering directory `/home/freddy/stuff/dlantool/tool'
gcc -O2 -Wall    -DHAVE_CONFIG_H  -DSON_PROCESS_NAME=\"/usr/local/sbin/dlanconfi g_son\" -DDLANCONFIG_VERSION=\"1.1\"   -M md5.c dlanconfig.c dlanconfig_son.c > .depend
gcc -O2 -Wall    -DHAVE_CONFIG_H  -DSON_PROCESS_NAME=\"/usr/local/sbin/dlanconfi g_son\" -DDLANCONFIG_VERSION=\"1.1\"     -c -o dlanconfig_son.o dlanconfig_son.c
dlanconfig_son.c: In function ‘main’:
dlanconfig_son.c:75: warning: pointer targets in passing argument 4 of ‘pcap_loo p’ differ in signedness
gcc dlanconfig_son.o -lpcap   -o dlanconfig_son
gcc -O2 -Wall    -DHAVE_CONFIG_H  -DSON_PROCESS_NAME=\"/usr/local/sbin/dlanconfi g_son\" -DDLANCONFIG_VERSION=\"1.1\"     -c -o dlanconfig.o dlanconfig.c
dlanconfig.c: In function ‘GetUpdateDevTable’:
dlanconfig.c:97: warning: pointer targets in passing argument 1 of ‘IsSameMAC’ d iffer in signedness
dlanconfig.c:101: warning: pointer targets in passing argument 2 of ‘IsSameMAC’ differ in signedness
dlanconfig.c: In function ‘PacketReceive_callback’:
dlanconfig.c:380: warning: pointer targets in passing argument 1 of ‘GetUpdateDe vTable’ differ in signedness
dlanconfig.c: In function ‘SendSetLocalNek’:
dlanconfig.c:528: warning: pointer targets in passing argument 1 of ‘MD5HomePlug Key’ differ in signedness
dlanconfig.c: In function ‘SendSetRemoteNek’:
dlanconfig.c:564: warning: pointer targets in passing argument 1 of ‘MD5HomePlug Key’ differ in signedness
dlanconfig.c: In function ‘DoMain’:
dlanconfig.c:909: warning: pointer targets in passing argument 2 of ‘ListenForPa ckets’ differ in signedness
dlanconfig.c:936: warning: pointer targets in passing argument 2 of ‘SendSetLoca lNek’ differ in signedness
dlanconfig.c:940: warning: pointer targets in passing argument 3 of ‘SendSetRemo teNek’ differ in signedness
dlanconfig.c:954: warning: pointer targets in passing argument 2 of ‘ListenForPa ckets’ differ in signedness
dlanconfig.c: In function ‘GetNextPacket’:
dlanconfig.c:1040: warning: pointer targets in passing argument 1 of ‘atoi’ diff er in signedness
gcc -O2 -Wall    -DHAVE_CONFIG_H  -DSON_PROCESS_NAME=\"/usr/local/sbin/dlanconfi g_son\" -DDLANCONFIG_VERSION=\"1.1\"     -c -o md5.o md5.c
md5.c: In function ‘MD5Digest’:
md5.c:273: warning: pointer targets in passing argument 2 of ‘MD5Update’ differ in signedness
md5.c: In function ‘MD5HomePlugKey’:
md5.c:294: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness

md5.c:295: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness
md5.c:297: warning: pointer targets in passing argument 1 of ‘MD5Digest’ differ in signedness
md5.c:300: warning: pointer targets in passing argument 1 of ‘MD5Digest’ differ in signedness
gcc   dlanconfig.o md5.o   -o dlanconfig
make[1]: Leaving directory `/home/freddy/stuff/dlantool/tool'
making all in driver
make[1]: Entering directory `/home/freddy/stuff/dlantool/driver'
gcc -Wall -Werror -Wstrict-prototypes -Wno-trigraphs -O2 -Wall -I/include -D__KE RNEL__ -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-s tack-boundary=2 -march=i686 -DMODULE  -DKBUILD_BASENAME=devolo_usb  -DUSBMGR=\"u sb-uhci\"   -c -o devolo_usb.o devolo_usb.c
In file included from /usr/include/linux/sched.h:12,
                 from devolo_usb.c:12:
/usr/include/linux/jiffies.h:42:3: error: #error You lose.
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:213:31: error: division by zero in #if
/usr/include/linux/jiffies.h:257:30: error: division by zero in #if
In file included from /usr/include/linux/sched.h:12,
                 from devolo_usb.c:12:
/usr/include/linux/jiffies.h: In function ‘jiffies_to_msecs’:
/usr/include/linux/jiffies.h:262: error: ‘CONFIG_HZ’ undeclared (first use in th is function)
/usr/include/linux/jiffies.h:262: error: (Each undeclared identifier is reported  only once
/usr/include/linux/jiffies.h:262: error: for each function it appears in.)
/usr/include/linux/jiffies.h:268:36: error: division by zero in #if
/usr/include/linux/jiffies.h: In function ‘jiffies_to_usecs’:
/usr/include/linux/jiffies.h:273: error: ‘CONFIG_HZ’ undeclared (first use in th is function)
/usr/include/linux/jiffies.h:281:30: error: division by zero in #if
/usr/include/linux/jiffies.h: In function ‘msecs_to_jiffies’:
/usr/include/linux/jiffies.h:286: error: ‘CONFIG_HZ’ undeclared (first use in th is function)
/usr/include/linux/jiffies.h:294:36: error: division by zero in #if
/usr/include/linux/jiffies.h: In function ‘usecs_to_jiffies’:
/usr/include/linux/jiffies.h:299: error: ‘CONFIG_HZ’ undeclared (first use in th is function)
/usr/include/linux/jiffies.h: In function ‘timespec_to_jiffies’:
/usr/include/linux/jiffies.h:318: error: ‘CONFIG_HZ’ undeclared (first use in th is function)
/usr/include/linux/jiffies.h:324: error: ‘SHIFT_HZ’ undeclared (first use in thi s function)
/usr/include/linux/jiffies.h: In function ‘jiffies_to_timespec’:
/usr/include/linux/jiffies.h:337: error: ‘CONFIG_HZ’ undeclared (first use in th is function)
/usr/include/linux/jiffies.h: In function ‘timeval_to_jiffies’:
/usr/include/linux/jiffies.h:359: error: ‘CONFIG_HZ’ undeclared (first use in th is function)
/usr/include/linux/jiffies.h:363: error: ‘SHIFT_HZ’ undeclared (first use in thi s function)
/usr/include/linux/jiffies.h: In function ‘jiffies_to_timeval’:
/usr/include/linux/jiffies.h:375: error: ‘CONFIG_HZ’ undeclared (first use in th is function)
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/include/linux/jiffies.h: In function ‘jiffies_to_clock_t’:
/usr/include/linux/jiffies.h:386: error: ‘CONFIG_HZ’ undeclared (first use in th is function)
/usr/include/linux/jiffies.h: In function ‘clock_t_to_jiffies’:
/usr/include/linux/jiffies.h:397: error: ‘CONFIG_HZ’ undeclared (first use in th is function)
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/include/linux/jiffies.h: In function ‘jiffies_64_to_clock_t’:
/usr/include/linux/jiffies.h:417: error: ‘CONFIG_HZ’ undeclared (first use in th is function)

In file included from /usr/include/linux/list.h:7,
                 from /usr/include/linux/wait.h:23,
                 from /usr/include/asm/semaphore.h:41,
                 from /usr/include/linux/sched.h:20,
                 from devolo_usb.c:12:
/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)
In file included from /usr/include/asm/fixmap.h:27,
                 from /usr/include/asm/pgtable.h:17,
                 from /usr/include/linux/mm.h:36,
                 from /usr/include/linux/skbuff.h:26,
                 from /usr/include/linux/if_ether.h:107,
                 from /usr/include/linux/netdevice.h:29,
                 from devolo_usb.c:16:
/usr/include/asm/acpi.h:31:28: error: acpi/pdc_intel.h: Datei oder Verzeichnis n icht gefunden
In file included from /usr/include/linux/module.h:22,
                 from /usr/include/linux/textsearch.h:9,
                 from /usr/include/linux/skbuff.h:30,
                 from /usr/include/linux/if_ether.h:107,
                 from /usr/include/linux/netdevice.h:29,
                 from devolo_usb.c:16:
/usr/include/asm/module.h:60:2: error: #error unknown processor family
In file included from /usr/include/linux/if_ether.h:107,
                 from /usr/include/linux/netdevice.h:29,
                 from devolo_usb.c:16:
/usr/include/linux/skbuff.h:31:26: error: net/checksum.h: Datei oder Verzeichnis  nicht gefunden
In file included from /usr/include/linux/irq.h:21,
                 from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/hardirq.h:7,
                 from /usr/include/linux/interrupt.h:11,
                 from /usr/include/linux/netdevice.h:508,
                 from devolo_usb.c:16:
/usr/include/asm/irq.h:16:25: error: irq_vectors.h: Datei oder Verzeichnis nicht  gefunden
In file included from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/hardirq.h:7,
                 from /usr/include/linux/interrupt.h:11,
                 from /usr/include/linux/netdevice.h:508,
                 from devolo_usb.c:16:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:74: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
/usr/include/linux/irq.h:74: error: requested alignment is not a constant
/usr/include/linux/irq.h:76: error: ‘NR_IRQS’ undeclared here (not in a function )
In file included from /usr/include/linux/irq.h:78,
                 from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/hardirq.h:7,
                 from /usr/include/linux/interrupt.h:11,
                 from /usr/include/linux/netdevice.h:508,
                 from devolo_usb.c:16:
/usr/include/asm/hw_irq.h:28: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function)
In file included from /usr/include/linux/hardirq.h:7,
                 from /usr/include/linux/interrupt.h:11,
                 from /usr/include/linux/netdevice.h:508,
                 from devolo_usb.c:16:
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from devolo_usb.c:28:
devolo_usb.h:11:1: error: "ALIGN" redefined
In file included from /usr/include/asm/system.h:4,
                 from /usr/include/asm/processor.h:20,
                 from /usr/include/asm/thread_info.h:17,
                 from /usr/include/linux/thread_info.h:21,
                 from /usr/include/linux/spinlock.h:14,
                 from /usr/include/linux/capability.h:45,
                 from /usr/include/linux/sched.h:7,
                 from devolo_usb.c:12:
/usr/include/linux/kernel.h:31:1: error: this is the location of the previous de finition
In file included from devolo_usb.c:28:
devolo_usb.h:72: error: requested alignment is not a constant
devolo_usb.h:73: error: requested alignment is not a constant
devolo_usb.h:74: error: requested alignment is not a constant
devolo_usb.c: In function ‘ctrl_callback’:
devolo_usb.c:62: error: ‘USB_ST_NOERROR’ undeclared (first use in this function)
devolo_usb.c:64: error: ‘USB_ST_URB_PENDING’ undeclared (first use in this funct ion)
devolo_usb.c:66: error: ‘USB_ST_URB_KILLED’ undeclared (first use in this functi on)
devolo_usb.c: In function ‘devolo_read_bulk_callback’:
devolo_usb.c:103: error: ‘USB_ST_NOERROR’ undeclared (first use in this function )
devolo_usb.c:105: error: ‘USB_ST_NORESPONSE’ undeclared (first use in this funct ion)
cc1: warnings being treated as errors
devolo_usb.c:137: warning: implicit declaration of function ‘FILL_BULK_URB’
devolo_usb.c:140: error: too few arguments to function ‘usb_submit_urb’
devolo_usb.c: In function ‘devolo_tx_timeout’:
devolo_usb.c:182: error: ‘USB_ASYNC_UNLINK’ undeclared (first use in this functi on)
devolo_usb.c: In function ‘devolo_start_xmit’:
devolo_usb.c:230: error: too few arguments to function ‘usb_submit_urb’
devolo_usb.c: In function ‘set_ethernet_addr’:
devolo_usb.c:283: warning: pointer targets in passing argument 3 of ‘usb_string’  differ in signedness
devolo_usb.c: In function ‘devolo_open’:
devolo_usb.c:322: error: too few arguments to function ‘usb_submit_urb’
devolo_usb.c: In function ‘devolo_probe’:
devolo_usb.c:463: warning: implicit declaration of function ‘usb_set_configurati on’
devolo_usb.c:463: error: ‘struct usb_host_config’ has no member named ‘bConfigur ationValue’
devolo_usb.c:475: warning: implicit declaration of function ‘usb_inc_dev_use’
devolo_usb.c:500: warning: implicit declaration of function ‘init_etherdev’
devolo_usb.c:526: error: ‘CONFIG_HZ’ undeclared (first use in this function)
devolo_usb.c: In function ‘devolo_disconnect’:
devolo_usb.c:557: warning: implicit declaration of function ‘usb_dec_dev_use’
devolo_usb.c: At top level:
devolo_usb.c:570: warning: initialization from incompatible pointer type
devolo_usb.c:571: warning: initialization from incompatible pointer type
make[1]: *** [devolo_usb.o] Fehler 1
make[1]: Leaving directory `/home/freddy/stuff/dlantool/driver'
make: *** [all] Fehler 2

Hallo,

ohne Kernelquellen funktioniert es nicht! Wenn Du dir !GANZ SICHER! bist diese installiert zu haben, öffne eine Konsole werde Root durch su -   Enter Rootpasswort ENTER

dann

cd /usr/src/linux  ENTER

Dort befinden sich in der Regel die Kernelquellen ( wenn sie denn tatsächlich installiert sind )

make cloneconfig    ENTER

make prepare     ENTER


Nun versuche Dein Glück von vorne

kernelquellen sind definitiv installiert, habs über yast2 gemacht (hab inzwischen zu suse 10 gewechselt).

hab das gemacht was du geschrieben hast, hat leider wieder nicht geklappt. die kernelquellen sind aber definitiv da, in dem verzeichnis das du genannt hast.

make beschwert sich unteranderm das es in nem unterverzeichnis von den kernelquellen: /include/asm/ die datei irq_vectors.h nicht finden kann. hab selber nachgesehn, es gibt zwar irq.h aber irq_vectors.h ist nirgends. Wie kann da in den kernelsources einfach ne datei fehlen?

Hallo,

wenn Du nun zu Suse gewechselt bist, okay, dann sprechen wir nun die gleiche Sprache. Hab' mir gerade mal den Treiber bei devolo heruntergeladen und durch den Compiler geschoben, null Problem. Dauer ca. 5 Minuten inkl. Bau des RPM-Pakets (damit man es per yast installieren kann). Das Tippen hier dauert wesentlich länger...

Okay, versuche mal dir eine Step by Step Anleitung zu tippen.

1. Installiere per yast die Pakete

- gcc komplett ( ohne colorgcc ) , d.h. alles was gcc im Namen hat
 zusätzlich
-m4
-nasm
-checkinstall
-make
.automake
-libtool
-autoconf

kernelquellen hattest Du ja schon.

Öffne eine Konsole ( Klick auf den Bildschirm in der Taskleiste )

Werde Root ( der Admin von Linux )

Tippe dazu

su -   ENTER
Rootpasswort eingeben ENTER 

Nun machen wir es uns ein wenig einfacher indem wir den Midnight Commander verwenden ( Total Commander von Win lässt grüßen )

Tippe
mc ENTER

Klicke in der Linken Bildschirmhälfte auf die beiden Punkte, so dass Du in der Verzeichnisbaumstruktur ganz nach oben kommst. Du siehst dann die Verzeichnisse

bin
boot
dev
etc
u.s.w.

Nun drücke F7

in die Dialogbox tippst Du compile  und klickst auf okay
Im Verzeichnisbaum taucht nun unser neues Arbeitsverzeichnis compile auf.
klicke drauf, so dass es sich öffnet. Nun siehst Du ein leeres Verzeichnis.

Klicke ins rechte Fenster und suche dir die Datei von devolo ( dlan-Linux-package-2.0.tar.gz) Stelle den Balken drauf und drücke einmal Enter
Das Archiv öffnet sich nun. Drücke einmal die Cursor Runter taste, so dass der Balken auf dem im Archiv befindlichen Verzeichnisnamen steht. Drücke F5
Das Archiv wird in unser compile-Verzeichnis entpackt.
Klicke nun im linken Fenster im Verzeichnis compile auf das Verzeichnis dlan-Linux-package.... Es öffnet sich.

Drücke STRG+O so dass unser Midnight Commander in den Hintergrund tritt.

tippe

./configure   ( . und / ist mit einzugeben )

Das Ergebnis sieht dann so aus:

asus:/compile/dLAN-linux-package-2.0 # ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking gcc version... 4
checking maximum warning verbosity option...  -Wall for C
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for modprobe... /sbin/modprobe
checking for module_prefix... /lib/modules
checking for depmod... /sbin/depmod
USB determination method: /sbin/lspci -v
USB driver to be loaded: ohci
checking what kind of binaries we shall create... dynamically linked
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing putmsg... none required
checking for local pcap library... not found
checking for main in -lpcap... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for memory.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for system... yes
checking for dup2... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for vfork... yes
checking for fork... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tool/Makefile
config.status: creating driver/Makefile
config.status: creating tool/config.h
config.status: tool/config.h is unchanged
asus:/compile/dLAN-linux-package-2.0 #

dann

./make


Sollte alles ohne Fehler durchlaufen, Dauer ca. 1 Minute

.........
.........
make -C ../../../linux-2.6.13-15.7 O=../linux-2.6.13-15.7-obj/x86_64/default modules
  CC [M]  /compile/dLAN-linux-package-2.0/driver/devolo_usb.o
  Building modules, stage 2.
  MODPOST
  CC      /compile/dLAN-linux-package-2.0/driver/devolo_usb.mod.o
  LD [M]  /compile/dLAN-linux-package-2.0/driver/devolo_usb.ko
make[2]: Leaving directory `/usr/src/linux-2.6.13-15.7-obj/x86_64/default'
make[1]: Leaving directory `/compile/dLAN-linux-package-2.0/driver'
asus:/compile/dLAN-linux-package-2.0 #
Wenn es bei dir am Ende von make auch so aussieht hast Du gewonnen     

Nun bauen wir ein RPM-PAKET

tippe:

checkinstall --type=rpm   Enter

Alle Fragen einfach mit Enter bestätigen

Wenn checkinstall sein Werk vollendet hat drücke wieder STRG+O um den Midgnightcommander wieder in den Vordergrund zu holen

Navigiere per Maus ins Verzeichnis /usr/src/packages/rpms/x86_64
bei einem AMD64-System oder in eins der verzeichnisse die mit i beginnen, meist i586 oder i686. Dort findest Du das paket dlan-linux-package----.rpm
Stelle den Balken vom MC drauf, drücke ENTER, Das RPM-Paket öffnet sich. klicke auf UPGRADE
Nun wird die Software installiert. ( Kannst Du durch betätigen von STRG+o kontrollieren )
Beende den Midnight Commander durch klick auf >QUIT<

Tippe

SuSEconfig     ENTER

und mache weiter unter Punkt 4.1 in der liesmichdatei von devolo

VIEL ERFOLG     

erstmal danke für deine geduldige Hilfe. :-)

Hab alles so gemacht wie du geschrieben hast, die packages sind auch alle installiert. Make bringt jetzt noch einen letzten Fehler das er irgendwas nicht finden kann:


inux:/compile/dLAN-linux-package-2.0 # make
making all in tool
make[1]: Entering directory `/compile/dLAN-linux-package-2.0/tool'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/compile/dLAN-linux-package-2.0/tool'
making all in driver
make[1]: Entering directory `/compile/dLAN-linux-package-2.0/driver'
make -C /lib/modules/2.6.13-15-default/build SUBDIRS=/compile/dLAN-linux-package-2.0/driver modules
make[2]: Entering directory `/usr/src/linux-2.6.13-15-obj/i386/default'
make -C ../../../linux-2.6.13-15 O=../linux-2.6.13-15-obj/i386/default modules
  CC [M]  /compile/dLAN-linux-package-2.0/driver/devolo_usb.o
In file included from include2/asm/fixmap.h:27,
                 from include2/asm/pgtable.h:17,
                 from /usr/src/linux-2.6.13-15/include/linux/mm.h:36,
                 from /usr/src/linux-2.6.13-15/include/linux/skbuff.h:26,
                 from /usr/src/linux-2.6.13-15/include/linux/if_ether.h:107,
                 from /usr/src/linux-2.6.13-15/include/linux/netdevice.h:29,
                 from /compile/dLAN-linux-package-2.0/driver/devolo_usb.c:16:
include2/asm/acpi.h:31:31: error: include/pdc_intel.h: No such file or directory
make[5]: *** [/compile/dLAN-linux-package-2.0/driver/devolo_usb.o] Error 1
make[4]: *** [_module_/compile/dLAN-linux-package-2.0/driver] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.13-15-obj/i386/default'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/compile/dLAN-linux-package-2.0/driver'
make: *** [all] Error 2
linux:/compile/dLAN-linux-package-2.0 #

Hallo,

irgendwas stimmt mit den Kernel-Sources nicht. Installiert sein muss:

Kernel-default und
Kernel-sources

Beide Pakete müssen den G L E I C H E N Versionsstand haben! Wenn Du zuerst nur den Kernel selbst ( das Paket Kernel-default ) installiert hattest und ein Online-Update durchgeführt hast, wurde NUR das Paket kernel default aktualisiert, jedoch das Paket kernel-source nicht, da es ja zu dem Zeitpunkt nicht installiert war. Installierst Du NACH dem Online-Update das Paket Kernel-source hast Du den Salat, die Versionen sind unterschiedlich. Das Quellpaket passt nicht zum laufenden Kernel. Somit scheitern Kompilierversuche, weil make findet nicht die passenden Quellen ( Fehlermeldung u.a.: include2/asm/acpi.h:31:31: error: include/pdc_intel.h: No such file or directory ).

Abhilfe: Online-Update durchführen und den Kernel e r n e u t updaten. Da ja jetzt
die Pakete Kernel-default UND Kernel-source installiert sind, werden sie auch beide aktualisiert. Somit ist der Versionsgleichstand hergestellt.

Anschließend Rechner neu starten, die Schritte make cloneconfig und make prepare wiederholen wie Eingangs beschrieben. Nun in das Verzeichnis /compile/dLAN-linux-package-2.0 wechseln

make clean    ENTER um den erfolglosen Versuch zu löschen

dann
./configure

u.s.w.

wie zuvor beschrieben durchführen.

Nun sollte es aber klappen.

Good Luck


« Suse: kann ordner nicht mehr öffnenSuse: Online-Update von 9.0 auf 9.1, aber wie? »
 

Schnelle Hilfe: Hier nach ähnlichen Fragen und passenden Tipps suchen!

Fremdwörter? Erklärungen im Lexikon!
Grundstrich
Der Begriff des Grundstrichs im Bereich der Typografie, bezeichnet den senkrechten Strich der Buchstaben. Bei Schriftarten mit variabler Strichstärke, wie zum Beispi...

Haarstrich
Der Begriff Haarstrich stammt aus dem Bereich der Typographie. Bei Schriften, wie zum Beispiel der Antiquaschrift mit unterschiedlichen Strichstärken, wird zwischen ...

Microsoft
Microsoft - oder "Microsoft Corporation", gegründet 1975 von Bill Gates und Paul Allen, ist einer der weltweit führenden Softwarehersteller. Urspr&uum...