Linux commands

Tuesday, December 27, 2022

LINK : fatal error LNK1104: cannot open file 'mfc120.lib'


Go to Below Microsoft provided link, and download the vc_mbcsmfc.exe for Visual studio 2013


 https://www.microsoft.com/en-us/download/details.aspx?id=40770

Wednesday, March 16, 2022

Enable dst in linux

 mv /etc/localtime /etc/localtime_orig

ln -s /usr/share/zoneinfo/America/Chicago  /etc/localtime

Wednesday, October 10, 2018

certutil.exe: function failed: SEC_ERROR_LEGACY_DATABASE: The certificate/key database is in an old, unsupported format



This issue is causing due to the path given for -d option


certutil.exe -A -n "My Server Cert" -t "P,," -i "C:\myfolder\server.cer" -d "C:\myfolder\"

change to 

certutil.exe -A -n "My Server Cert" -t "P,," -i "C:\myfolder\server.cer" -d .




Tuesday, August 28, 2018

unresolved external symbol __imp_ap_proxy_balancer_get_best_worker referenced in functio n find_best_bybusyness



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

Monday, May 21, 2018

configure: error: no acceptable ld found in $PATH


ld is not available in windows

there is alternative command for ld is link.exe in windows

Resolution

export LD=link.exe