Thread Perl WLAN Modul ? (8 answers)
Opened by YAPD at 2015-10-01 16:19

YAPD
 2015-10-04 21:11
#182496 #182496
User since
2015-09-20
146 Artikel
BenutzerIn

user image
Hallo Raubtier,

Danke für deine Antwort und den Tipp. Ich habe nun etwas Trouble bei der Installation & hätte hier noch eine Frage. Ich habe also das Paket "wireless-tools" installiert und möchte nun das Modul "Net-WLAN-IWLib-0.01.tar.gz" installieren, dass ich ausgepackt habe.

Beim Ausführen des Befehls "perl Makefile.PL" bekomme ich :

Code: (dl )
1
2
3
4
5
ExtUtils::MakeMaker::VERSION = 6.66
Checking if your kit is complete...
Looks good
Writing Makefile for Net::WLAN::IWLib
Writing MYMETA.yml and MYMETA.json


Nun führe ich "make test" aus :

Code: (dl )
1
2
3
4
5
6
DSWIG IWLib_wrap.c
IWLib_wrap.c:1046:22: fatal error: wireless.h: No such file or directory
#include "wireless.h"
^
compilation terminated.
make: *** [IWLib_wrap.o] Error 1


Ich fand die Datei "wireless.h" in "/usr/include/linux" und kopierte sie
in das Verzeichnis des Moduls.

Nun nochmals "make test" :

Code: (dl )
1
2
3
DSWIG IWLib_wrap.c
IWLib_wrap.c:1047:19: fatal error: iwlib.h: No such file or directory
#include "iwlib.h"


Diese Datei "iwlib.h" gibt es nicht auf meinem System, nur in dem Zip File auf der Seite, die du mir genannt hast. Füge ich diese dort ein, bekomme
ich folgende Fehlermeldung :

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
cc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/perl/5.18/CORE"  -DSWIG IWLib_wrap.c
In file included from wireless.h:74:0,
from IWLib_wrap.c:1046:
/usr/include/net/if.h:44:5: error: expected identifier before numeric constant
IFF_UP = 0x1, /* Interface is up. */
^
In file included from iwlib.h:58:0,
from IWLib_wrap.c:1047:
/usr/include/net/if.h:111:8: error: redefinition of 'struct ifmap'
struct ifmap
^
In file included from wireless.h:74:0,
from IWLib_wrap.c:1046:
/usr/include/linux/if.h:143:8: note: originally defined here
struct ifmap {
^
In file included from iwlib.h:58:0,
from IWLib_wrap.c:1047:
/usr/include/net/if.h:126:8: error: redefinition of 'struct ifreq'
struct ifreq
^
In file included from wireless.h:74:0,
from IWLib_wrap.c:1046:
/usr/include/linux/if.h:177:8: note: originally defined here
struct ifreq {
^
In file included from iwlib.h:58:0,
from IWLib_wrap.c:1047:
/usr/include/net/if.h:176:8: error: redefinition of 'struct ifconf'
struct ifconf
^
In file included from wireless.h:74:0,
from IWLib_wrap.c:1046:
/usr/include/linux/if.h:226:8: note: originally defined here
struct ifconf {
^
IWLib_wrap.c: In function 'iw_address_ntoa':
IWLib_wrap.c:1107:5: warning: return makes pointer from integer without a cast [enabled by default]
return iw_ether_ntoa( (struct ether_addr*)(addr->sa_data) );
^
IWLib_wrap.c: In function '_wrap_iw_print_pm_value':
IWLib_wrap.c:11593:9: error: too few arguments to function 'iw_print_pm_value'
iw_print_pm_value(arg1,arg2,arg3,arg4);
^
In file included from IWLib_wrap.c:1047:0:
iwlib.h:390:2: note: declared here
iw_print_pm_value(char * buffer,
^
IWLib_wrap.c: In function '_wrap_iw_print_retry_value':
IWLib_wrap.c:11647:9: error: too few arguments to function 'iw_print_retry_value'
iw_print_retry_value(arg1,arg2,arg3,arg4);
^
In file included from IWLib_wrap.c:1047:0:
iwlib.h:401:2: note: declared here
iw_print_retry_value(char * buffer,
^
IWLib_wrap.c: In function '_wrap_iw_print_timeval':
IWLib_wrap.c:11677:44: error: too few arguments to function 'iw_print_timeval'
iw_print_timeval(arg1,arg2,(struct timeval const *)arg3);
^
In file included from IWLib_wrap.c:1047:0:
iwlib.h:408:2: note: declared here
iw_print_timeval(char * buffer,
^
IWLib_wrap.c: In function '_wrap_iw_ether_ntoa':
IWLib_wrap.c:11821:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
result = (char *)iw_ether_ntoa((struct ether_addr const *)arg1);
^
IWLib_wrap.c: In function '_wrap_iw_pr_ether':
IWLib_wrap.c:12195:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
result = (char *)iw_pr_ether(arg1,(unsigned char const *)arg2);


Hast du eine Idee, wo ich die Datei auftreiben könnte bzw. was ich gegen diese Fehlermeldungen tun kann ?

Vielen Dank / Viele Grüße
YAPD
Last edited: 2015-10-04 21:16:10 +0200 (CEST)
Yet Another Perl Developer

View full thread Perl WLAN Modul ?