MinGW32 error: redefinition of 'struct timeval'

andrew <[email protected]> Sun, 7 Nov 2010 18:09:10 +1100
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Hi,

After successfully compiling slrn under MinGW32 for some time I have
upgraded my MinGW installation and now compilation under the svn slrn
fails with the following message:

+-------
C:\slrn\slrn_svn\src>mingw32-make -f makefile.g32
./gw32objs/chkslang.exe slrn 20000
gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1
-IC:/MinGW/include   -o g
w32objs/art.o art.c
art.c:276:8: error: redefinition of 'struct timeval'
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/sys/time.h:11:8:
note:
 originally defined here
art.c:278:12: error: conflicting types for 'gettimeofday'
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/sys/time.h:39:29:
note
: previous declaration of 'gettimeofday' was here
art.c: In function 'read_article':
art.c:2309:4: warning: unknown conversion type character 'l' in format
art.c:2309:4: warning: too many arguments for format
art.c:2320:2: warning: unknown conversion type character 'l' in format
art.c:2320:2: warning: too many arguments for format
art.c:2388:6: warning: unknown conversion type character 'l' in format
art.c:2388:6: warning: format '%d' expects type 'int', but argument 2
has type '
NNTP_Artnum_Type'
art.c:2388:6: warning: format '%.2f' expects type 'double', but
argument 4 has t
ype 'int'
art.c:2388:6: warning: too many arguments for format
art.c: In function 'get_headers':
art.c:5757:11: warning: unknown conversion type character 'l' in
format
art.c:5757:11: warning: too many arguments for format
art.c: In function 'display_header_cb':
art.c:8945:2: warning: unknown conversion type character 'l' in format
art.c:8945:2: warning: too many arguments for format
mingw32-make: *** [gw32objs/art.o] Error 1

C:\slrn\slrn_svn\src>
+-------

This is running with gcc 4.5.0:

+-----------
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\andrew>gcc --version
gcc (GCC) 4.5.0
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


C:\Users\andrew>
+---------

My apologies if this is a MinGW32 error, if so I shall backtrack to my
older, successful version.

Andrew
-- 
Do you think that's air you're breathing?

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev