Category Archives: 32bit-64bit

Cannot load modules/mod_ssl.so into server – %1 Error Still After Switching to OpenSSL 64-Bit

I am trying to setup SSL on WampServer. When I use the httpd -t command in the Apache directory, I receive this error:

 Cannot load modules/mod_ssl.so into server: The operating system cannot run %1.

I have a 64-bit computer, but am running WampServer 3.0.6 32-bit, with Apache 2.4.23. I originally downloaded Openssl 32-bit, and received this error. So I downloaded the 64-bit version, because that seemed to be the problem. I repeated the process of creating the key, certificate, etc. I also updated the system environment variable of openssl_conf to its path of the 64-bit version of Openssl. I still receive this error. Is there something I missed in changing the version to the 64-bit? Or something I'm missing in general?

Building static liblog4cxx.a library in 32 bit in 64 bit OS

I have look all over stackoverflow as well as googled a lot to solve my issue where: Im trying to make a 32 bit application in 64 bit ubuntu (14.10) in c++ and am using Eclipse CDT (Luna). Now, I want to use liblog4cxx for logging in my application however I figure I need to create a 32bit library for it and link it in my application. For that, I used Vagrant VM and installed ubuntu 32 bit (Lucid), compiled it and created the library (with apr and apr-utils) following the following links (with no errors):

  • iamnandans.wordpress.com/2014/04/17/building-static-and-shared-log4cxx-library-on-windows-and-linux/
  • logging.apache.org/log4cxx/building/autotools.html
  • www.radmangames.com/programming/how-to-build-log4cxx-from-source
  • www.yolinux.com/TUTORIALS/Log4cxx.html
  • stackoverflow.com/questions/14413561/building-log4cxx-with-apr

Now, with all cases I get the error related to APR where:

    ../lib/liblog4cxx.a(serversocket.o): In function `log4cxx::helpers::ServerSocket::accept()':
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:99: undefined reference to `apr_poll'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:108: undefined reference to `apr_pool_create_ex'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:113: undefined reference to `apr_socket_accept'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:115: undefined reference to `apr_pool_destroy'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:119: undefined reference to `apr_socket_opt_set'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:121: undefined reference to `apr_pool_destroy'
../lib/liblog4cxx.a(serversocket.o): In function `log4cxx::helpers::ServerSocket::close()':
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:72: undefined reference to `apr_socket_close'
../lib/liblog4cxx.a(serversocket.o): In function `ServerSocket':
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:32: undefined reference to `apr_socket_create'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:37: undefined reference to `apr_socket_opt_set'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:46: undefined reference to `apr_sockaddr_info_get'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:52: undefined reference to `apr_socket_bind'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:58: undefined reference to `apr_socket_listen'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:32: undefined reference to `apr_socket_create'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:37: undefined reference to `apr_socket_opt_set'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:46: undefined reference to `apr_sockaddr_info_get'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:52: undefined reference to `apr_socket_bind'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/serversocket.cpp:58: undefined reference to `apr_socket_listen'
../lib/liblog4cxx.a(socket.o): In function `log4cxx::helpers::Socket::close()':
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:114: undefined reference to `apr_socket_close'
../lib/liblog4cxx.a(socket.o): In function `log4cxx::helpers::Socket::write(log4cxx::helpers::ByteBuffer&)':
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:95: undefined reference to `apr_signal'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:96: undefined reference to `apr_socket_send'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:97: undefined reference to `apr_signal'
../lib/liblog4cxx.a(socket.o): In function `Socket':
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:62: undefined reference to `apr_socket_addr_get'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:71: undefined reference to `apr_sockaddr_ip_get'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:62: undefined reference to `apr_socket_addr_get'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:71: undefined reference to `apr_sockaddr_ip_get'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:36: undefined reference to `apr_socket_create'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:47: undefined reference to `apr_sockaddr_info_get'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:53: undefined reference to `apr_socket_connect'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:36: undefined reference to `apr_socket_create'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:47: undefined reference to `apr_sockaddr_info_get'
/home/vagrant/buildlog/apache-log4cxx-0.10.0/src/main/cpp/socket.cpp:53: undefined reference to `apr_socket_connect'

... for several classes, all APR related.

When I try to compile the 32bit version of liblog4cxx from link, I get a similar error w.r.t 'undefined reference to 'apr_blah_blah>' as we see above but without the vagrant path (which I have no idea why its there as i'm new to building libraries and stuff and linux)

I compile my eclipse with the "-m32" tag in the build settings as well as in CMake Lists:

set_target_properties(my32bitProj PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")

Does anyone have any idea what I might be doing wrong or any resource that might be able to help me better in what I am trying to achieve (if possible)? Any help would be appreciated!