ERROR:
mod_lbmethod_bybusyness.c.obj :
error LNK2019: unresolved external symbol __imp_ap_proxy_balancer_get_best_worker referenced in functio
n find_best_bybusyness
mod_lbmethod_bybusyness.so : fatal error LNK1120: 1 unresolved externals
LINK failed. with 1120
NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
Solution
open build.make in below project path
httpd-2.4.33\httpdbin\CMakeFiles\mod_lbmethod_bybusyness.dir\depend.make
search for link.exe and go to next line and add the mod_proxy.lib as shown below.
/out:mod_lbmethod_heartbeat.so /implib:mod_lbmethod_heartbeat.lib /pdb:C:\gitcode\httpd-2.4.34\httpdbin\mod_lbmethod_heartbeat.pdb /dll /version:0.0 /base:@C:/gitcode/httpd-2.4.34/httpdbin/BaseAddr.ref,mod_lbmethod_heartbeat.so /machine:x64 /INCREMENTAL:NO libhttpd.lib ..\srclib\apr\Release\lib\libapr-1.lib ..\srclib\apr-util\Release\lib\libaprutil-1.lib ws2_32.lib mswsock.lib ..\srclib\pcre\Release\lib\pcre.lib ws2_32.lib mswsock.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib mod_proxy.lib
Do the same for below files
httpd-2.4.34\httpdbin\CMakeFiles\mod_lbmethod_bytraffic.dir\build.make
httpd-2.4.34\httpdbin\CMakeFiles\mod_lbmethod_heartbeat.dir\build.make