As a reminder for the future, here are the instructions to build it:
1. git clone
https://github.com/harbour/core harbour
2. Install these packages:
sudo apt install libssl-dev
sudo apt install libcurl4-openssl-dev
3. before building Harbour use this export from the terminal:
export HB_USER_CFLAGS=-fPIC
4. run make in harbour folder and Harbour will get built
5. To build librddads.a we need ace.h that we can get from here (installing the ADS SDK):
https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/aceapi_x86_64.exe6. copy ace.h from above step into harbour/contrib/rddads
7. Manually compile each C file this way:
gcc -c -fPIC -I../../include ads1.c
gcc -c -fPIC -I../../include adsfunc.c
gcc -c -fPIC -I../../include adsmgmnt.c
gcc -c -fPIC -I../../include adsx.c
8. to build the librddads.a for Linux do this:
ar rc ./librddads.a ads1.o adsx.o adsfunc.o adsmgmnt.o
9. copy librddads.a to harbour/lib/linux/gcc
10. In mod_harbour/linux add this lib name to libs.txt:
-lrddads
11. In mod_harbour apache.prg modify this to force the use of ADS:
#define HB_WITH_ADS // new !!!
#ifdef HB_WITH_ADS
#define __HBEXTERN__RDDADS__REQUEST
#include "../../harbour/contrib/rddads/rddads.hbx"
#endif
12. build mod_harbour running ./go.sh from mod_harbour/linux folder