logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Trying to compile mod_websocket_vnc_proxy ?
Author
4llan



Joined: 29 Oct 2012
Posts: 4
Location: Brazil

PostPosted: Mon 29 Oct '12 20:27    Post subject: Reply with quote

Hi there! Smile

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

PostPosted: Mon 29 Oct '12 20:49    Post subject: Reply with quote

What errors do you get ?
Back to top
4llan



Joined: 29 Oct 2012
Posts: 4
Location: Brazil

PostPosted: Mon 29 Oct '12 21:34    Post subject: Reply with quote

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

PostPosted: Mon 29 Oct '12 22:41    Post subject: Reply with quote

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

PostPosted: Tue 30 Oct '12 0:13    Post subject: Reply with quote

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! Razz

Best regards
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 30 Oct '12 22:44    Post subject: Reply with quote

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

PostPosted: Tue 30 Oct '12 23:05    Post subject: Reply with quote

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

PostPosted: Wed 31 Oct '12 17:48    Post subject: Reply with quote

Yeah... I'm giving up of compiling this module on Windows.

Anyways, thank you James Blond, glsmith and Steffen! Smile

Now I'm using Node.js to proxy TCP connections. But all I wanted is handle this with Apache... Sad

Cheers
Back to top


Reply to topic   Topic: Trying to compile mod_websocket_vnc_proxy ? View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules