ufairiya / mongoose

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

Source does not compile under cygwin #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Cygwin on windows xp.
2. run `make linux`

What is the expected output?
program compiles

What do you see instead?

mongoose.c: In function `mg_vsnprintf':
mongoose.c:425: warning: implicit declaration of function `vsnprintf'
mongoose.c: In function `spawn_process':
mongoose.c:922: warning: implicit declaration of function `fileno'
mongoose.c: In function `get_content_length':
mongoose.c:1053: warning: implicit declaration of function `strtoull'
mongoose.c:1053: warning: signed and unsigned type in conditional 
expression
mongoose.c: In function `do_ssi_exec':
mongoose.c:2725: warning: implicit declaration of function `popen'
mongoose.c:2725: warning: assignment makes pointer from integer without a 
cas
mongoose.c:2729: warning: implicit declaration of function `pclose'
mongoose.c: At top level:
mongoose.c:3034: error: parse error before "fd_set"
mongoose.c: In function `add_to_set':
mongoose.c:3036: warning: implicit declaration of function `FD_SET'
mongoose.c:3036: error: `fd' undeclared (first use in this function)
mongoose.c:3036: error: (Each undeclared identifier is reported only once
mongoose.c:3036: error: for each function it appears in.)
mongoose.c:3036: error: `set' undeclared (first use in this function)
mongoose.c:3037: error: `max_fd' undeclared (first use in this function)
mongoose.c: In function `event_loop':
mongoose.c:3557: error: `fd_set' undeclared (first use in this function)
mongoose.c:3557: error: parse error before "read_set"
mongoose.c:3562: warning: implicit declaration of function `FD_ZERO'
mongoose.c:3562: error: `read_set' undeclared (first use in this function)
mongoose.c:3572: warning: implicit declaration of function `select'
mongoose.c:3584: warning: implicit declaration of function `FD_ISSET'
make: *** [linux] Error 1

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

Original issue reported on code.google.com by vri...@gmail.com on 17 Feb 2009 at 5:48

GoogleCodeExporter commented 9 years ago
It is a non-goal to have Mongoose to compile under Cygwin. Either use MS 
compiler, or
send a patch for Cygwin.

Original comment by valenok on 11 Mar 2009 at 9:40

GoogleCodeExporter commented 9 years ago
I found it compiles in cygwin fine if you do a "make mingw" instead.

Original comment by tonym...@gmail.com on 22 Jun 2009 at 1:09