Hi John,
Ooops, sorry for that, there you are:
$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with:
/usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --ver
bose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc
--libdir=/usr/lib --libe
xecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-langu
ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls
--without-included-gettext --
enable-version-specific-runtime-libs --without-x --enable-libgcj
--disable-java-
awt --with-system-zlib --enable-interpreter --disable-libgcj-debug
--enable-thre
ads=posix --enable-java-gc=boehm --disable-win32-registry
--enable-sjlj-exceptio
ns --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
$ uname -a
CYGWIN_NT-5.1 COM0469 1.5.24(0.156/4/2) 2007-01-23 18:50 i686 Cygwin
-----Original Message-----
From: John Dallaway [mailto:[EMAIL PROTECTED]
Sent: 05 February 2007 17:34
To: David Fernandez
Cc: [email protected]
Subject: Re: Problems building configtool with cygwin
Sensitivity: Private
Hi David
Can you post the complete error message emitted by the compiler when
compiling aboutdlg.cpp please? Also the output of "uname -a" and "gcc
-v".
John Dallaway
eCosCentric Limited
-------- Original Message --------
Subject: Problems building configtool with cygwin
Date: Mon, 5 Feb 2007 17:01:30 -0000
From: David Fernandez <[EMAIL PROTECTED]>
To: <[email protected]>
Newsgroups: gmane.os.ecos.general
Hi there,
When building configtool with the last available version of cygwin, I've
got problems with duplicated definitions that seem to come from the
compiler and from wxWidgets. See the attached file.
Anybody know something about this?
David Fernandez
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the system manager. This
message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. If you are not the intended recipient you are
notified that disclosing, copying, distributing or taking any action in
reliance on the contents of this information is strictly prohibited.
g++ -O2 -c -ITCLDIR_use_system/include -I/ecos-tools/include
-I/home/dfernandez/ecos/host/tools/configtool/common/common
-I/home/dfernandez/ecos/host/tools/Utils/common
-I/home/dfernandez/ecos/host/tools/ecostest/common -DecUSE_EXPERIMENTAL_CODE=1
`/usr/wxMSW-2.4.2/bin/wx-config --cppflags` -D_WIN32 -D__WIN32__ -DSTRICT -o
/home/dfernandez/build/ecos-configtool/aboutdlg.o
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/aboutdlg.cpp
In file included from
/home/dfernandez/ecos/host/tools/Utils/common/eCosStd.h:49,
from
/home/dfernandez/ecos/host/tools/Utils/common/Collections.h:58,
from
/home/dfernandez/ecos/host/tools/ecostest/common/eCosTest.h:51,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/appsettings.h:53,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/configtool.h:60,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/ecpch.h:72,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/aboutdlg.cpp:50:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:103:2:
warning: #warning "fd_set and associated macros have been defined in sys/types.
This may cause runtime problems with W32 sockets"
In file included from
/home/dfernandez/ecos/host/tools/Utils/common/eCosStd.h:49,
from
/home/dfernandez/ecos/host/tools/Utils/common/Collections.h:58,
from
/home/dfernandez/ecos/host/tools/ecostest/common/eCosTest.h:51,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/appsettings.h:53,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/configtool.h:60,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/ecpch.h:72,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/aboutdlg.cpp:50:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:635:
error: declaration of C function `int gethostname(char*, int)' conflicts with
/usr/include/sys/unistd.h:206: error: previous declaration `int
gethostname(char*, size_t)' here
In file included from /usr/include/sys/socket.h:15,
from /usr/wxMSW-2.4.2/include/wx/sckaddr.h:106,
from /usr/wxMSW-2.4.2/include/wx/socket.h:34,
from /usr/wxMSW-2.4.2/include/wx/protocol/protocol.h:28,
from /usr/wxMSW-2.4.2/include/wx/url.h:24,
from /usr/wxMSW-2.4.2/include/wx/filesys.h:30,
from /usr/wxMSW-2.4.2/include/wx/html/helpdata.h:25,
from /usr/wxMSW-2.4.2/include/wx/html/helpfrm.h:23,
from /usr/wxMSW-2.4.2/include/wx/html/helpctrl.h:23,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/configtool.h:79,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/ecpch.h:72,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/aboutdlg.cpp:50:
/usr/include/cygwin/socket.h:29: error: redefinition of `struct sockaddr'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:336:
error: previous definition of `struct sockaddr'
/usr/include/cygwin/socket.h:41: error: redefinition of `struct
sockaddr_storage'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:356:
error: previous definition of `struct sockaddr_storage'
In file included from /usr/include/sys/socket.h:15,
from /usr/wxMSW-2.4.2/include/wx/sckaddr.h:106,
from /usr/wxMSW-2.4.2/include/wx/socket.h:34,
from /usr/wxMSW-2.4.2/include/wx/protocol/protocol.h:28,
from /usr/wxMSW-2.4.2/include/wx/url.h:24,
from /usr/wxMSW-2.4.2/include/wx/filesys.h:30,
from /usr/wxMSW-2.4.2/include/wx/html/helpdata.h:25,
from /usr/wxMSW-2.4.2/include/wx/html/helpfrm.h:23,
from /usr/wxMSW-2.4.2/include/wx/html/helpctrl.h:23,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/configtool.h:79,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/ecpch.h:72,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/aboutdlg.cpp:50:
/usr/include/cygwin/socket.h:59: error: redefinition of `struct linger'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:128:
error: previous definition of `struct linger'
In file included from /usr/wxMSW-2.4.2/include/wx/sckaddr.h:106,
from /usr/wxMSW-2.4.2/include/wx/socket.h:34,
from /usr/wxMSW-2.4.2/include/wx/protocol/protocol.h:28,
from /usr/wxMSW-2.4.2/include/wx/url.h:24,
from /usr/wxMSW-2.4.2/include/wx/filesys.h:30,
from /usr/wxMSW-2.4.2/include/wx/html/helpdata.h:25,
from /usr/wxMSW-2.4.2/include/wx/html/helpfrm.h:23,
from /usr/wxMSW-2.4.2/include/wx/html/helpctrl.h:23,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/configtool.h:79,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/ecpch.h:72,
from
/home/dfernandez/ecos/host/tools/configtool/standalone/wxwin/aboutdlg.cpp:50:
/usr/include/sys/socket.h:29: error: declaration of C function `int accept(int,
sockaddr*, socklen_t*)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:536:
error: previous declaration `SOCKET accept(SOCKET, sockaddr*, int*)' here
/usr/include/sys/socket.h:30: error: declaration of C function `int bind(int,
const sockaddr*, socklen_t)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:537:
error: previous declaration `int bind(SOCKET, const sockaddr*, int)' here
/usr/include/sys/socket.h:31: error: declaration of C function `int
connect(int, const sockaddr*, socklen_t)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:539:
error: previous declaration `int connect(SOCKET, const sockaddr*, int)' here
/usr/include/sys/socket.h:32: error: declaration of C function `int
getpeername(int, sockaddr*, socklen_t*)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:541:
error: previous declaration `int getpeername(SOCKET, sockaddr*, int*)' here
/usr/include/sys/socket.h:33: error: declaration of C function `int
getsockname(int, sockaddr*, socklen_t*)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:542:
error: previous declaration `int getsockname(SOCKET, sockaddr*, int*)' here
/usr/include/sys/socket.h:34: error: declaration of C function `int listen(int,
int)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:546:
error: previous declaration `int listen(SOCKET, int)' here
/usr/include/sys/socket.h:35: error: declaration of C function `int recv(int,
void*, size_t, int)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:547:
error: previous declaration `int recv(SOCKET, char*, int, int)' here
/usr/include/sys/socket.h:37: error: declaration of C function `int
recvfrom(int, void*, size_t, int, sockaddr*, socklen_t*)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:548:
error: previous declaration `int recvfrom(SOCKET, char*, int, int, sockaddr*,
int*)' here
/usr/include/sys/socket.h:39: error: declaration of C function `int send(int,
const void*, size_t, int)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:549:
error: previous declaration `int send(SOCKET, const char*, int, int)' here
/usr/include/sys/socket.h:42: error: declaration of C function `int sendto(int,
const void*, size_t, int, const sockaddr*, socklen_t)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:550:
error: previous declaration `int sendto(SOCKET, const char*, int, int, const
sockaddr*, int)' here
/usr/include/sys/socket.h:44: error: declaration of C function `int
setsockopt(int, int, int, const void*, socklen_t)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:551:
error: previous declaration `int setsockopt(SOCKET, int, int, const char*,
int)' here
/usr/include/sys/socket.h:46: error: declaration of C function `int
getsockopt(int, int, int, void*, socklen_t*)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:543:
error: previous declaration `int getsockopt(SOCKET, int, int, char*, int*)' here
/usr/include/sys/socket.h:47: error: declaration of C function `int
shutdown(int, int)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:552:
error: previous declaration `int shutdown(SOCKET, int)' here
/usr/include/sys/socket.h:48: error: declaration of C function `int socket(int,
int, int)' conflicts with
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:553:
error: previous declaration `SOCKET socket(int, int, int)' here
make: *** [/home/dfernandez/build/ecos-configtool/aboutdlg.o] Error 1
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss