ufairiya / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Compiling latest mongoose with MinGW 5.1.6 causes pid_t redefinition error. #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make latest mongoose with MinGW 5.1.6 (newest version) on Windows XP.

What is the expected output? What do you see instead?

EXPECTED OUTPUT: successful compile:

RECEIVED OUTPUT: pid_t redefinition compile error.

FIXED BY: commenting out line 129 in mongoose.c.  Not a good permanent
solution; may break build of users with older libraries.

RECEIVED OUTPUT:
C:\mydocs\webfolder\mongoose>make mingw
gcc -W -Wall -mthreads -Wl,--subsystem,console -DNDEBUG -Os -DHAVE_STDINT
mongoo
se.c -lws2_32 \
                -shared -Wl,--out-implib=mongoose.lib -o _mongoose.dll
mongoose.c:129: error: conflicting types for 'pid_t'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/types.h:75:
error:
 previous declaration of 'pid_t' was here
mongoose.c: In function `mg_stat':
mongoose.c:1087: warning: integer constant is too large for "long" type
make: *** [mingw] Error 1

What version of the product are you using? On what operating system?

MONGOOSE FILE ID:
 * $Id: mongoose.c 446 2009-07-08 21:06:56Z valenok $

MINGW LIBRARIES:
Seems I'm using 3.4.5 of the MinGW libraries.
Using 5.1.6 of the MinGW package itself.

Original issue reported on code.google.com by franklin...@gmail.com on 6 Mar 2010 at 12:28

Attachments:

GoogleCodeExporter commented 9 years ago
Your wiki states that I can download _mongoose.dll.  I can't find it anywhere, 
so I
had to build from source.

Please upload a golden _mongoose.dll or update the wiki.  

Thanks so much for a GREAT project!!!  

Original comment by franklin...@gmail.com on 6 Mar 2010 at 12:34

GoogleCodeExporter commented 9 years ago
Hi!

Have a look at the Mongoose Installer. I extracted it manually (without 
installing)
and there i got the file.

Original comment by Ritterbrater@gmail.com on 25 Apr 2010 at 1:01

GoogleCodeExporter commented 9 years ago
Is it still an issue with current source?
If it is, please reopen.

Original comment by valenok on 19 Sep 2010 at 2:25