Alvaro Lopez Ortega wrote:

Juan Eliseo Carrasco Diaz wrote:

> I'm using the last version of cherokee (0.4.29).
>
> ./configure --prefix=/usr --sysconfdir=/etc --disable-pthread
> --disable-tls --disable-largefile --disable-pcre

  Yeah, there were a couple of problems with the embedded version on
  the previous release.  Everything should be fixed now, please take a
  look at the last pre-release:

    http://alobbs.com/tmp/cherokee-0.5.0b2.tar.gz


  Ah, and thanks for the report! :-)

Ok, thank you, I have been testing it...

First, I have compiled the full version...
./configure --prefix=/usr --sysconfdir=/etc --with-wwwroot=/var/www --disable-pthread --disable-largefile --disable-pcre --with-sendfile-support=no
<all ok>

make
<all seems ok>

make install
<all ok>
but when I try to execute it, this error appears:
module_loader.c/226: ERROR: dlopen(/usr/lib/cherokee/libplugin_read_config.so): /usr/lib/cherokee/libplugin_read_config.so: undefined symbol: cherokee_fcgi_server_free
module_loader.c/378: ERROR: Can't open "read_config" module
Couldn't read the config file

I have tried to repair it without success :(

Second I have compiled the embedded version with the same configuration:
make clean
./configure --prefix=/usr --sysconfdir=/etc --with-wwwroot=/var/www --disable-pthread --disable-largefile --disable-pcre --with-sendfile-support=no

cd cherokee && make -f Makefile.embedded
...
/sources_new/cherokee-0.5.0b2/cherokee/util.c:687: undefined reference to `SSL_load_error_strings' /sources_new/cherokee-0.5.0b2/cherokee/util.c:688: undefined reference to `SSL_library_init' /sources_new/cherokee-0.5.0b2/cherokee/util.c:690: undefined reference to `OPENSSL_add_all_algorithms_noconf' /sources_new/cherokee-0.5.0b2/cherokee/util.c:691: undefined reference to `SSL_library_init'
socket.o: In function `cherokee_socket_clean':
/sources_new/cherokee-0.5.0b2/cherokee/socket.c:150: undefined reference to `SSL_free' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:155: undefined reference to `SSL_CTX_free'
socket.o: In function `initialize_tls_session':
/sources_new/cherokee-0.5.0b2/cherokee/socket.c:295: undefined reference to `SSL_new' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:299: undefined reference to `ERR_error_string' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:299: undefined reference to `ERR_get_error' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:307: undefined reference to `SSL_set_fd' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:311: undefined reference to `ERR_error_string' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:311: undefined reference to `ERR_get_error' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:319: undefined reference to `SSL_CTX_set_session_id_context'
socket.o: In function `cherokee_socket_init_tls':
/sources_new/cherokee-0.5.0b2/cherokee/socket.c:359: undefined reference to `SSL_accept' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:364: undefined reference to `SSL_get_error' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:370: undefined reference to `ERR_error_string' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:370: undefined reference to `ERR_get_error'
socket.o: In function `cherokee_socket_free':
/sources_new/cherokee-0.5.0b2/cherokee/socket.c:393: undefined reference to `SSL_free' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:398: undefined reference to `SSL_CTX_free'
socket.o: In function `cherokee_socket_close':
/sources_new/cherokee-0.5.0b2/cherokee/socket.c:424: undefined reference to `SSL_shutdown'
socket.o: In function `cherokee_write':
/sources_new/cherokee-0.5.0b2/cherokee/socket.c:662: undefined reference to `SSL_write' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:667: undefined reference to `SSL_get_error' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:673: undefined reference to `ERR_error_string'
socket.o: In function `cherokee_read':
/sources_new/cherokee-0.5.0b2/cherokee/socket.c:762: undefined reference to `SSL_read' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:764: undefined reference to `SSL_read' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:770: undefined reference to `SSL_get_error' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:777: undefined reference to `ERR_error_string'
socket.o: In function `cherokee_socket_init_client_tls':
/sources_new/cherokee-0.5.0b2/cherokee/socket.c:1153: undefined reference to `SSLv23_client_method' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1153: undefined reference to `SSL_CTX_new' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1157: undefined reference to `ERR_error_string' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1157: undefined reference to `ERR_get_error' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1162: undefined reference to `SSL_CTX_set_default_verify_paths' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1163: undefined reference to `SSL_CTX_load_verify_locations' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1165: undefined reference to `SSL_CTX_set_verify' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1166: undefined reference to `SSL_CTX_ctrl' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1170: undefined reference to `SSL_new' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1174: undefined reference to `ERR_error_string' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1174: undefined reference to `ERR_get_error' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1182: undefined reference to `SSL_set_fd' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1186: undefined reference to `ERR_error_string' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1186: undefined reference to `ERR_get_error' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1191: undefined reference to `SSL_set_connect_state' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1193: undefined reference to `SSL_connect' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1197: undefined reference to `ERR_error_string' /sources_new/cherokee-0.5.0b2/cherokee/socket.c:1197: undefined reference to `ERR_get_error'
virtual_server.o: In function `cherokee_virtual_server_new':
/sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:64: undefined reference to `cherokee_session_cache_new'
virtual_server.o: In function `cherokee_virtual_server_free':
/sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:123: undefined reference to `cherokee_session_cache_free' /sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:134: undefined reference to `SSL_CTX_free'
virtual_server.o: In function `cherokee_virtual_server_init_tls':
/sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:288: undefined reference to `SSLv23_server_method' /sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:288: undefined reference to `SSL_CTX_new' /sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:296: undefined reference to `SSL_CTX_use_certificate_file' /sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:300: undefined reference to `ERR_error_string' /sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:300: undefined reference to `ERR_get_error' /sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:308: undefined reference to `SSL_CTX_use_PrivateKey_file' /sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:312: undefined reference to `ERR_error_string' /sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:312: undefined reference to `ERR_get_error' /sources_new/cherokee-0.5.0b2/cherokee/virtual_server.c:320: undefined reference to `SSL_CTX_check_private_key'
collect2: ld returned 1 exit status
make: *** [u-cherokee] Error 1

I can't fix this error, so I disable tls support. I wonder if u-cherokee can be compiled with tls support. It could?
make clean
./configure --prefix=/usr --sysconfdir=/etc --with-wwwroot=/var/www --disable-pthread --disable-largefile --disable-pcre --with-sendfile-support=no --disable-tls
<all ok>

cd cherokee && make -f Makefile.embedded
<all ok>

u-cherokee seems to work ok but it's not usable due to the default embedded configuration. How can I set and change it? Are there some documentation that explain this? I only have seen something about to edit the read_config_embedded.c file to set the static configuration. Should u-cherokee works with the dynamic configuration? It seems that it doesn't work.

Thank you very much!

_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to