benluteijn / cherokee

Automatically exported from code.google.com/p/cherokee
0 stars 1 forks source link

cherokee 0.10.0b2105 + windows 2000 + mingw 5.1.4 - compilation problem #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My list of problems (and solutions):

PROBLEM_1: no "libpthread.a" library in lib directory
SOLUTION_1: need copy from cygwin latest package

PROBLEM_2: socket.c:549: error: 're' undeclared 
SOLUTION_2: need declaration in "cherokee_socket_close" function - "int
re;" (correctly??)

PROBLEM_3.  socket.c: In function `cherokee_socket_connect':
            socket.c:1789: error: `EISCONN' undeclared (first use in this
function)
            socket.c:1789: error: (Each undeclared identifier is reported
only once
            socket.c:1789: error: for each function it appears in.)
            socket.c:1794: error: `EADDRNOTAVAIL' undeclared (first use in this
function
            socket.c:1799: error: `EALREADY' undeclared (first use in this
function)
            socket.c:1800: error: `EINPROGRESS' undeclared (first use in this
function)
SOLUTION_3: include directives into "socket.h"
        #define EINPROGRESS 119
        #define EALREADY 120
        #define EADDRNOTAVAIL 125
        #define EISCONN 127 

PROBLEM_4:  util.h:128: error: syntax error before "uint16_t"
        util.h:131: error: syntax error before "uint16_t"
SOLUTION_4: include directive into "util.h"
        #include <stdint.h>

PROBLEM_5:  main_worker.c:30:22: sys/wait.h: No such file or directory
        main_worker.c: In function `wait_process':
        main_worker.c:96: warning: implicit declaration of function `waitpid'
        main_worker.c: At top level:
        main_worker.c:111: error: syntax error before "siginfo_t"
        main_worker.c: In function `signals_handler':
        main_worker.c:113: error: `context' undeclared (first use in this function)
        main_worker.c:113: error: (Each undeclared identifier is reported only once
        main_worker.c:113: error: for each function it appears in.)
        main_worker.c:115: error: `sig' undeclared (first use in this function)
        main_worker.c:116: error: `SIGHUP' undeclared (first use in this function)
        main_worker.c:121: error: `SIGUSR2' undeclared (first use in this function)
        main_worker.c:132: error: `SIGCHLD' undeclared (first use in this function)
        main_worker.c:133: error: `si' undeclared (first use in this function)
        main_worker.c: In function `common_server_initialization':
        main_worker.c:167: error: storage size of 'act' isn't known
        main_worker.c:175: warning: implicit declaration of function `sigaction'
        main_worker.c:175: error: `SIGPIPE' undeclared (first use in this function)
        main_worker.c:179: error: `SA_SIGINFO' undeclared (first use in this function
        main_worker.c:181: error: `SIGHUP' undeclared (first use in this function)
        main_worker.c:182: error: `SIGUSR2' undeclared (first use in this function)
        main_worker.c:186: error: `SIGCHLD' undeclared (first use in this function)
SOLUTION_5: I DON'T HAVE IDEA !

 I don't know if my propositions of changes are correct - i'm sorry, i'm
not c/c++ programmer

Original issue reported on code.google.com by pio...@rubypulse.com on 1 Oct 2008 at 9:32

GoogleCodeExporter commented 9 years ago

Original comment by ste...@konink.de on 31 Oct 2008 at 1:17

GoogleCodeExporter commented 9 years ago
Thanks for reporting :) 
PROBLEM_1; I'll keep in mind, I'm currently compiling under Linux, but pthreads 
(for
win32) is not even detected.

PROBLEM_2; re -> ret

PROBLEM_3; defining them to WS* is the best solution

PROBLEM_4; I didn't see that one anymore.

The solution for PROBLEM_5 is currently not compiling that code. I have put a 
patch
on the mailinglist that takes care of most problems.

I'll make this bug fixed, because in essence the problems are solved.

Original comment by ste...@konink.de on 8 Nov 2008 at 4:59

GoogleCodeExporter commented 9 years ago
The pthread for Win32 package is available at:

   http://sourceware.org/pthreads-win32/#download

You have to download the zip and copy both the libraries and headers files to 
the right place (check it at 
http://blogs.sun.com/alvaro/entry/win32_compilation_environment ):

  cp -r Pre-built.2/{include,lib} /mingw/

Original comment by alobbs on 8 Nov 2008 at 10:29

GoogleCodeExporter commented 9 years ago
I have hit this problem. Could any body please help me out.

[ 17%] Building C object src/CMakeFiles/min-cscope.dir/main.c.obj
cd D:\Development\min-cscope\build\src && C:\MinGW\bin\gcc.exe  -DUSE_SORTLIB -
DWIN32 -DNSTATS -O3 -DNDEBUG -ID:\Development\min-cscope\src 
-ID:\Development\min-
cscope\build\src -ID:\Development\min-cscope\src\..\sort   -o CMakeFiles\min-
cscope.dir\main.c.obj   -c D:\Development\min-cscope\src\main.c
D:\Development\min-cscope\src\main.c:136: error: syntax error before "siginfo_t"
D:\Development\min-cscope\src\main.c: In function `sigwinch_handler':
D:\Development\min-cscope\src\main.c:138: error: `sig' undeclared (first use in 
this 
function)
D:\Development\min-cscope\src\main.c:138: error: (Each undeclared identifier is 
reported only once
D:\Development\min-cscope\src\main.c:138: error: for each function it appears 
in.)
D:\Development\min-cscope\src\main.c:139: error: `info' undeclared (first use 
in 
this function)
D:\Development\min-cscope\src\main.c:140: error: `unused' undeclared (first use 
in 
this function)
D:\Development\min-cscope\src\main.c: In function `main':
D:\Development\min-cscope\src\main.c:159: error: storage size of 'winch_action' 
isn't known
D:\Development\min-cscope\src\main.c:456: error: `SA_SIGINFO' undeclared (first 
use 
in this function)
D:\Development\min-cscope\src\main.c:457: error: `SIGWINCH' undeclared (first 
use in 
this function)
mingw32-make[2]: *** [src/CMakeFiles/min-cscope.dir/main.c.obj] Error 1
mingw32-make[2]: Leaving directory `d:/Development/min-cscope/build'
mingw32-make[1]: *** [src/CMakeFiles/min-cscope.dir/all] Error 2
mingw32-make[1]: Leaving directory `d:/Development/min-cscope/build'
mingw32-make: *** [all] Error 2

Original comment by sahu...@gmail.com on 18 Jan 2010 at 4:54

GoogleCodeExporter commented 9 years ago
We decided to drop Win32 support.

Original comment by ste...@konink.de on 23 Mar 2013 at 12:59