Did anyone succeded in installing wxperl (0.76) (perl v5.8.8 built for
cygwin-thread-multi-64int) under Cygwin?
I tried to do this but I got error:
g++ -c -I. -I../..
-I/cygdrive/d/wxWidgets-2.8.4/lib/wx/include/msw-ansi-releas
e-2.8 -I/cygdrive/d/wxWidgets-2.8.4/include
-I/cygdrive/d/wxWidgets-2.8.4/contri
b/include -DUSEIMPORTLIB -O3 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\"
"-I/us
r/lib/perl5/5.8/cygwin/CORE" -DWXPL_EXT -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -
DWXUSINGDLL -D__WXMSW__ Socket.c
In file included from
/cygdrive/d/wxWidgets-2.8.4/include/wx/msw/gsockmsw.h:35,
from /cygdrive/d/wxWidgets-2.8.4/include/wx/gsocket.h:175,
from /cygdrive/d/wxWidgets-2.8.4/include/wx/sckaddr.h:20,
from /cygdrive/d/wxWidgets-2.8.4/include/wx/socket.h:24,
from Socket.c:24:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:89:
error
: redefinition of `struct timeval'
/usr/include/sys/time.h:16: error: previous definition of `struct timeval'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:100:
erro
r: redefinition of `struct hostent'
/usr/include/netdb.h:73: error: previous definition of `struct hostent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:108:
erro
r: redefinition of `struct linger'
/usr/include/cygwin/socket.h:59: error: previous definition of `struct
linger'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:135:
erro
r: redefinition of `struct netent'
/usr/include/netdb.h:87: error: previous definition of `struct netent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:141:
erro
r: redefinition of `struct servent'
/usr/include/netdb.h:94: error: previous definition of `struct servent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:147:
erro
r: redefinition of `struct protoent'
/usr/include/netdb.h:102: error: previous definition of `struct protoent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:193:
erro
r: redefinition of `struct in_addr'
/usr/include/cygwin/in.h:97: error: previous definition of `struct
in_addr'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:224:
erro
r: redefinition of `struct sockaddr_in'
/usr/include/cygwin/in.h:113: error: previous definition of `struct
sockaddr_in'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:278:
erro
r: redefinition of `struct ip_mreq'
/usr/include/cygwin/in.h:104: error: previous definition of `struct
ip_mreq'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:318:
erro
r: redefinition of `struct sockaddr'
/usr/include/cygwin/socket.h:29: error: previous definition of `struct
sockaddr'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:434:
erro
r: declaration of C function `SOCKET accept(SOCKET, sockaddr*, int*)'
conflicts
with
/usr/include/sys/socket.h:29: error: previous declaration `int
accept(int, socka
ddr*, socklen_t*)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:435:
erro
r: declaration of C function `int bind(SOCKET, const sockaddr*, int)'
conflicts
with
/usr/include/sys/socket.h:30: error: previous declaration `int bind(int,
const s
ockaddr*, socklen_t)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:437:
erro
r: declaration of C function `int connect(SOCKET, const sockaddr*, int)'
conflic
ts with
/usr/include/sys/socket.h:31: error: previous declaration `int
connect(int, cons
t sockaddr*, socklen_t)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:439:
erro
r: declaration of C function `int getpeername(SOCKET, sockaddr*, int*)'
conflict
s with
/usr/include/sys/socket.h:32: error: previous declaration `int
getpeername(int,
sockaddr*, socklen_t*)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:440:
erro
r: declaration of C function `int getsockname(SOCKET, sockaddr*, int*)'
conflict
s with
/usr/include/sys/socket.h:33: error: previous declaration `int
getsockname(int,
sockaddr*, socklen_t*)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:441:
erro
r: declaration of C function `int getsockopt(SOCKET, int, int, char*,
int*)' con
flicts with
/usr/include/sys/socket.h:46: error: previous declaration `int
getsockopt(int, i
nt, int, void*, socklen_t*)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:444:
erro
r: declaration of C function `int listen(SOCKET, int)' conflicts with
/usr/include/sys/socket.h:34: error: previous declaration `int
listen(int, int)'
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:445:
erro
r: declaration of C function `int recv(SOCKET, char*, int, int)'
conflicts with
/usr/include/sys/socket.h:35: error: previous declaration `int recv(int,
void*,
size_t, int)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:446:
erro
r: declaration of C function `int recvfrom(SOCKET, char*, int, int,
sockaddr*, i
nt*)' conflicts with
/usr/include/sys/socket.h:37: error: previous declaration `int
recvfrom(int, voi
d*, size_t, int, sockaddr*, socklen_t*)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:447:
erro
r: declaration of C function `int send(SOCKET, const char*, int, int)'
conflicts
with
/usr/include/sys/socket.h:39: error: previous declaration `int send(int,
const v
oid*, size_t, int)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:448:
erro
r: declaration of C function `int sendto(SOCKET, const char*, int, int,
const so
ckaddr*, int)' conflicts with
/usr/include/sys/socket.h:42: error: previous declaration `int
sendto(int, const
void*, size_t, int, const sockaddr*, socklen_t)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:449:
erro
r: declaration of C function `int setsockopt(SOCKET, int, int, const
char*, int)
' conflicts with
/usr/include/sys/socket.h:44: error: previous declaration `int
setsockopt(int, i
nt, int, const void*, socklen_t)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:450:
erro
r: declaration of C function `int shutdown(SOCKET, int)' conflicts with
/usr/include/sys/socket.h:47: error: previous declaration `int
shutdown(int, int
)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:451:
erro
r: declaration of C function `SOCKET socket(int, int, int)' conflicts with
/usr/include/sys/socket.h:48: error: previous declaration `int
socket(int, int,
int)' here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:475:
erro
r: expected `)' before '(' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:475:
erro
r: expected `,' or `;' before '(' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:476:
erro
r: expected `)' before '(' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:476:
erro
r: expected `,' or `;' before '(' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:477:
erro
r: expected `)' before '(' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:477:
erro
r: expected `,' or `;' before '(' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:478:
erro
r: expected `)' before '(' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:478:
erro
r: expected `,' or `;' before '(' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock.h:479:
erro
r: declaration of C function `int select(int, _types_fd_set*,
_types_fd_set*, _t
ypes_fd_set*, const timeval*)' conflicts with
/usr/include/sys/select.h:31: error: previous declaration `int
select(int, _type
s_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)' here
In file included from cpp/socket.h:14,
from Socket.c:29:
../../cpp/v_cback.h:40: warning: `unused' attribute ignored
Socket.c: In function `void XS_Wx__UNIXaddress_new(PerlInterpreter*,
CV*)':
Socket.c:1282: error: `wxUNIXaddress' undeclared (first use this function)
Socket.c:1282: error: (Each undeclared identifier is reported only once
for each
function it appears in.)
Socket.c:1282: error: `RETVAL' undeclared (first use this function)
Socket.c:1284: error: `wxUNIXaddress' has not been declared
Socket.c: In function `void
XS_Wx__UNIXaddress_GetFilename(PerlInterpreter*, CV*
)':
Socket.c:1300: error: `wxUNIXaddress' undeclared (first use this function)
Socket.c:1300: error: `THIS' undeclared (first use this function)
Socket.c:1300: error: expected primary-expression before ')' token
Socket.c:1300: error: expected `;' before "wxPli_sv_2_object"
Socket.c: In function `void
XS_Wx__UNIXaddress_SetFilename(PerlInterpreter*, CV*
)':
Socket.c:1319: error: `wxUNIXaddress' undeclared (first use this function)
Socket.c:1319: error: `THIS' undeclared (first use this function)
Socket.c:1319: error: expected primary-expression before ')' token
Socket.c:1319: error: expected `;' before "wxPli_sv_2_object"
make[2]: *** [Socket.o] Error 1
make[2]: Leaving directory `/cygdrive/d/install/perl/Wx-0.76/ext/socket'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/cygdrive/d/install/perl/Wx-0.76/ext'
make: *** [subdirs] Error 2
any help on this ?
thanks
Artur K.
----------------------------------------------------
Walka jakiej nie widziałeś! KSW eliminacje,
nie wszyscy przejdą cało!
Zobacz na żywo we Wrocławiu już 15 września.
Więcej ->
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fksweliminacje.html&sid=12