-
Notifications
You must be signed in to change notification settings - Fork 942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Under Solaris #106
Comments
I finally got a solution to have it compiling on Solaris: remove the union. The mechanism provided by the union on the mg_request_handler_info stucture is then disabled. Is it really needed ? Now let's see if i've got a clean execution on Solaris .. :) |
I have no access to a Solaris machine, and I have never heard of the "Sun Studio C++ Compiler". Maybe the following code will work for you:
|
Sun Studio C++ Compiler in indeed for Solaris, and behind its make in fact. But ... now it's ok ! 👍 . I've changed 2 things in the code
I've integrated civet (srcs+includes) to my project, and it compiles on windows, AIX, Solaris (x86, SPARC), Linux, and Mac. I will try to merge with your future modifications and check the compilation. tks |
This seems to be better for some compilers (see #106), and may make the code more readable.
I removed the union also in the standard code - it might cost 4/8 bytes but makes the code more readable. |
Thanks for the union :) 2015-04-27 21:57 GMT+02:00 bel2125 notifications@github.com:
... parce que schtroumpf. |
This closes civetweb#106. Signed-off-by: Aldrin Piri <aldrin@apache.org>
Hello all
I don't know if it is supported, but I'm try to compile civetweb on Solaris (SunOS 5.10 Generic_127128-11 64-bit amd64) using Sun Studio 11 C++ Compiler (11.0,REV=2005.10.13). This is what i get:
"civetweb.c", line 556: syntax error before or at: void
"civetweb.c", line 557: syntax error before or at: void
"civetweb.c", line 558: syntax error before or at: void
"civetweb.c", line 559: syntax error before or at: void
"civetweb.c", line 837: zero-sized struct/union
"civetweb.c", line 6344: improper member use: handler
"civetweb.c", line 6346: improper member use: connect_handler
"civetweb.c", line 6347: improper member use: ready_handler
"civetweb.c", line 6348: improper member use: data_handler
"civetweb.c", line 6349: improper member use: close_handler
"civetweb.c", line 6386: improper member use: handler
"civetweb.c", line 6388: improper member use: connect_handler
"civetweb.c", line 6389: improper member use: ready_handler
"civetweb.c", line 6390: improper member use: data_handler
"civetweb.c", line 6391: improper member use: close_handler
"civetweb.c", line 6442: improper member use: connect_handler
"civetweb.c", line 6443: improper member use: ready_handler
"civetweb.c", line 6444: improper member use: data_handler
"civetweb.c", line 6445: improper member use: close_handler
"civetweb.c", line 6447: improper member use: handler
"civetweb.c", line 6464: improper member use: connect_handler
"civetweb.c", line 6465: improper member use: ready_handler
"civetweb.c", line 6466: improper member use: data_handler
"civetweb.c", line 6467: improper member use: close_handler
"civetweb.c", line 6469: improper member use: handler
"civetweb.c", line 6484: improper member use: connect_handler
"civetweb.c", line 6485: improper member use: ready_handler
"civetweb.c", line 6486: improper member use: data_handler
"civetweb.c", line 6487: improper member use: close_handler
"civetweb.c", line 6489: improper member use: handler
I've managed to fix some of these errors :
But for the "improper member use" errors, i can't find out how to workaround. I think it's may be linked with the "zero-sized struct/union" error. A problem with pointeurs on functions?
Any help ? Idea ?
thanks :)
The text was updated successfully, but these errors were encountered: