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 -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: Compiling httpd + libapr-2 failed on Windows
Author
nono303



Joined: 20 Dec 2016
Posts: 194
Location: Lille, FR, EU

PostPosted: Thu 16 May '24 11:07    Post subject: Compiling httpd + libapr-2 failed on Windows Reply with quote

Hi,
I currently try to compile httpd with libapr-2 (trunk) "for fun"
It’s seeming to be able to be done (see https://github.com/apache/httpd/blob/trunk/CMakeLists.txt#L35) but I’m facing some issues:

1. Compiling apr trunk with CMake (shared):
- I had to patch CMakeLists.txt to add mysql dbd support
- With APR_MODULAR_DSO=ON, APR_MODULE_DECLARE_DATA not seems to be set with __declspec(dllexport) (for apr_dbd_sqlite3 & apr_dbd_mysql) - working fine with APR_MODULAR_DSO=OFF
- LDAP support (with CMakeLists.txt to patched too) failed with many missing imports

Finally I can have a working release of libapr-2 with this config

Code:
cmake %CMAKE_OPTS% -G %CMAKE_TGT_NINJA% ^
-DCMAKE_INSTALL_PREFIX=%PATH_INSTALL% ^
-DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE% ^
-DAPR_MINIMAL_BUILD=OFF ^
-DAPU_HAVE_ODBC=ON ^
-DAPU_USE_EXPAT=OFF ^
-DAPU_USE_LIBXML2=ON ^
-DAPU_USE_XMLLITE=OFF ^
-DAPR_INSTALL_PRIVATE_H=ON ^
-DAPU_HAVE_SQLITE3=ON ^
-DAPU_HAVE_MYSQL=ON ^
-DAPU_HAVE_CRYPTO=ON ^
-DAPU_HAVE_ICONV=ON ^
-DAPR_HAVE_IPV6=ON ^
-DAPU_HAVE_LDAP=OFF ^
-DAPU_HAVE_ODBC=ON ^
-DINSTALL_PDB=ON ^
-DAPR_BUILD_TESTAPR=OFF ^
-DAPR_BUILD_SHARED=ON ^
-DAPR_BUILD_STATIC=OFF ^
-DAPR_MODULAR_DSO=OFF ^
-DTEST_STATIC_LIBS=OFF ^
-DOPENSSL_ROOT_DIR=%PATH_INSTALL_OSSL% ^
-DOPENSSL_INCLUDE_DIR=%PATH_INSTALL_OSSL%\include ^
-DCMAKE_MODULE_PATH=cmake ^
-DMYSQL_LIBRARY=%PATH_MYSQL:\=/%/lib/mysqlclient.lib ^
-DMYSQL_INCLUDE_DIR=%PATH_MYSQL:\=/%/include
%PATH_SRC%\%1

2. Compiling httpd with libapr-2 (without ldap support...)
Code:
-- APR_HAS_LDAP ............. : FALSE
-- APR_HAS_XLATE ............ : TRUE
-- APU_HAVE_CRYPTO .......... : TRUE
...
--   APR include directory ........... : C:/sdk/release/vs17_x64-avx2/include/apr-2
--   APR libraries ................... : C:/sdk/release/vs17_x64-avx2/lib/libapr-2.lib

I have breaking errors 'IF_WIN_OS_IS_UNICODE': undeclared identifier
And effectively, IF_WIN_OS_IS_UNICODE had disappeared from arch/win32/apr_arch_misc.h (see https://github.com/apache/apr/blob/1.8.x/include/arch/win32/apr_arch_misc.h#L140)

Is it known that libapr-2 is not supported with https on windows?
Have someone tried to do it with success?


++NoNo
Back to top


Reply to topic   Topic: Compiling httpd + libapr-2 failed on Windows View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads