Author |
|
4llan
Joined: 29 Oct 2012 Posts: 4 Location: Brazil
|
Posted: Mon 29 Oct '12 20:27 Post subject: |
|
|
Hi there!
I'm trying to compile mod_websocket_vnc_proxy in Windows, and I'm getting various errors.
abligh posted source code in github: https://github.com/abligh/apache-websocket
I can compile mod_websocket.c, but i can't mod_websocket_vnc_proxy.c
Please Stephen, can you take a look at this (specially "vncproxy" folder)?
Thanks so much |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 29 Oct '12 20:49 Post subject: |
|
|
What errors do you get ? |
|
Back to top |
|
4llan
Joined: 29 Oct 2012 Posts: 4 Location: Brazil
|
Posted: Mon 29 Oct '12 21:34 Post subject: |
|
|
First: error C2016: “C requires that a struct or union has at least one member”
and exceeds 100 errors
...
mod_websocket_vnc_proxy.c(115) : error C2061: syntax error : identifier 'uint32_t'
mod_websocket_vnc_proxy.c(116) : error C2061: syntax error : identifier 'version'
mod_websocket_vnc_proxy.c(116) : error C2059: syntax error : ';'
mod_websocket_vnc_proxy.c(117) : error C2061: syntax error : identifier 'length'
...
mod_websocket_vnc_proxy.c(482) : fatal error C1003: error count exceeds 100; stopping compilation
apxs:Error: Command failed with rc=131072
Thanks for looking at this! |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 29 Oct '12 22:41 Post subject: |
|
|
Better to report it to the Author to get it build on windows. Policy is that I am not struggling with not working code from others. I always contact the author. |
|
Back to top |
|
4llan
Joined: 29 Oct 2012 Posts: 4 Location: Brazil
|
Posted: Tue 30 Oct '12 0:13 Post subject: |
|
|
Err... You receive the same errors when try to compile, Steffen? (Could you, patiently, try to compile this module?)
Anyways: Thank you, Steffen. I'll do that.
I posted here just to confirm if it's a Windows problem, or my problem!
Best regards |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 30 Oct '12 22:44 Post subject: |
|
|
4llan wrote: | First: error C2016: “C requires that a struct or union has at least one member”
and exceeds 100 errors
...
mod_websocket_vnc_proxy.c(115) : error C2061: syntax error : identifier 'uint32_t'
mod_websocket_vnc_proxy.c(116) : error C2061: syntax error : identifier 'version'
mod_websocket_vnc_proxy.c(116) : error C2059: syntax error : ';'
mod_websocket_vnc_proxy.c(117) : error C2061: syntax error : identifier 'length'
...
mod_websocket_vnc_proxy.c(482) : fatal error C1003: error count exceeds 100; stopping compilation
apxs:Error: Command failed with rc=131072
Thanks for looking at this! |
From the website
Quote: |
or Windows, do not include the word sudo when installing the module. Also, the SConstruct file is hard-coded to look for the Apache headers and libraries
|
Did you change hardcoded paths? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 30 Oct '12 23:05 Post subject: |
|
|
It's beyond that.
This module was not written with portability in mind. It's written for GNU C++ (read linux). You could probably compile with MinGW/MSYS as is but would take quite some work to make it compile on Windows with VC++.
Right out the gate is uint16_t and uint32_t, both are non-standard types. There are declarations as needed all over the thing and VC++ simply doesn't allow that.
All that is relatively easy to fix till you get to line 657;
apr_pollfd_t recvpfd = { tpd->threadpool, APR_POLL_SOCKET, APR_POLLIN, 0, { NULL }, NULL };
cannot covert void* to apr_pollfd_t, which seems an odd error but I did not try to figure it out. |
|
Back to top |
|
4llan
Joined: 29 Oct 2012 Posts: 4 Location: Brazil
|
Posted: Wed 31 Oct '12 17:48 Post subject: |
|
|
Yeah... I'm giving up of compiling this module on Windows.
Anyways, thank you James Blond, glsmith and Steffen!
Now I'm using Node.js to proxy TCP connections. But all I wanted is handle this with Apache...
Cheers |
|
Back to top |
|