Bonsoir !
Un pb qui va me faire passer une nuit blanche :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
72
73
74
75
 
C:\strawberry\cpan\IO-Interface-1.06>
C:\strawberry\cpan\IO-Interface-1.06>perl makefile.pl
Checking for getifaddrs()... Nope, will not use it.
Checking for sockaddr_dl... Nope, will not use it.
Note (probably harmless): No library found for -lresolv
Writing Makefile for IO::Interface
 
C:\strawberry\cpan\IO-Interface-1.06>dmake
Skip blib\lib\IO\Interface\Simple.pm (unchanged)
Skip blib\lib\IO\Interface.pm (unchanged)
gcc -c          -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPL
ICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVC
RT_READFIX -s -O2         -DVERSION=\"1.06\"    -DXS_VERSION=\"1.06\"  "-IC:\str
awberry\perl\lib\CORE"   Interface.c
In file included from Interface.xs:8:
c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686-w64-mingw
32/include/sys/ioctl.h:17: error: expected declaration specifiers or '...' befor
e '(' token
c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686-w64-mingw
32/include/sys/ioctl.h:17: error: expected ')' before '->' token
Interface.xs:11:20: error: net/if.h: No such file or directory
Interface.xs:24:24: error: sys/sockio.h: No such file or directory
Interface.xs: In function 'XS_IO__Interface_if_addr':
Interface.xs:411: error: storage size of 'ifr' isn't known
Interface.xs: In function 'XS_IO__Interface_if_broadcast':
Interface.xs:453: error: storage size of 'ifr' isn't known
Interface.xs: In function 'XS_IO__Interface_if_netmask':
Interface.xs:491: error: storage size of 'ifr' isn't known
Interface.xs: In function 'XS_IO__Interface_if_dstaddr':
Interface.xs:529: error: storage size of 'ifr' isn't known
Interface.xs: In function 'XS_IO__Interface_if_hwaddr':
Interface.xs:567: error: storage size of 'ifr' isn't known
Interface.xs: In function 'XS_IO__Interface_if_flags':
Interface.xs:644: error: storage size of 'ifr' isn't known
Interface.xs:650: warning: incompatible implicit declaration of built-in functio
n 'bzero'
Interface.xs:650: error: invalid application of 'sizeof' to incomplete type 'str
uct ifreq'
Interface.xs:651: error: 'IFNAMSIZ' undeclared (first use in this function)
Interface.xs:651: error: (Each undeclared identifier is reported only once
Interface.xs:651: error: for each function it appears in.)
Interface.xs:660: error: 'SIOCGIFFLAGS' undeclared (first use in this function)
Interface.xs: In function 'XS_IO__Interface_if_mtu':
Interface.xs:676: error: storage size of 'ifr' isn't known
Interface.xs:682: warning: incompatible implicit declaration of built-in functio
n 'bzero'
Interface.xs:682: error: invalid application of 'sizeof' to incomplete type 'str
uct ifreq'
Interface.xs:683: error: 'IFNAMSIZ' undeclared (first use in this function)
Interface.xs:692: error: 'SIOCGIFMTU' undeclared (first use in this function)
Interface.xs: In function 'XS_IO__Interface_if_metric':
Interface.xs:708: error: storage size of 'ifr' isn't known
Interface.xs:714: warning: incompatible implicit declaration of built-in functio
n 'bzero'
Interface.xs:714: error: invalid application of 'sizeof' to incomplete type 'str
uct ifreq'
Interface.xs:715: error: 'IFNAMSIZ' undeclared (first use in this function)
Interface.xs:724: error: 'SIOCGIFMETRIC' undeclared (first use in this function)
 
Interface.xs: In function 'XS_IO__Interface_if_indextoname':
Interface.xs:754: error: 'IFNAMSIZ' undeclared (first use in this function)
Interface.xs: In function 'XS_IO__Interface__if_list':
Interface.xs:775: error: storage size of 'ifc' isn't known
Interface.xs:791: error: invalid application of 'sizeof' to incomplete type 'str
uct ifreq'
Interface.xs:797: error: 'SIOCGIFCONF' undeclared (first use in this function)
Interface.xs:804: error: invalid application of 'sizeof' to incomplete type 'str
uct ifreq'
Interface.xs:808: error: invalid application of 'sizeof' to incomplete type 'str
uct ifreq'
Interface.xs:810: error: dereferencing pointer to incomplete type
dmake:  Error code 129, while making 'Interface.o'
 
C:\strawberry\cpan\IO-Interface-1.06>
Je suis allé voir le ioctl.h, bizarre à la ligne 17 :
int ioctl (int __fd, int __cmd, ...);

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the w64 mingw-runtime package.
 * No warranty is given; refer to the file DISCLAIMER within this package.
 */
#ifndef _SYS_IOCTL_H
#define _SYS_IOCTL_H
 
#include <sys/cdefs.h>
 
#define WINDOWS_POST	0	/* Set write() behavior to PostMessage() */
#define WINDOWS_SEND	1	/* Set write() behavior to SendMessage() */
#define WINDOWS_HWND	2	/* Set hWnd for read() calls */
 
__BEGIN_DECLS
 
int ioctl (int __fd, int __cmd, ...);
 
__END_DECLS
 
#endif
Merci d'avance pour votre aide !