Problem building mod_harbour libraries

Problem building mod_harbour libraries

Postby Massimo Linossi » Fri Jul 19, 2019 3:42 pm

Hi Antonio.
On a Win2012 R2 64bit server I've installed Visual Studio Community and I'm trying to build all the libraries from
repository. I'm receiving some errors like these
Code: Select all  Expand view  RUN

! Building Harbour 3.2.0dev from source - https://harbour.github.io
! MAKE: win-make 4.1 sh.exe  
! HB_HOST_PLAT: win (x86_64)  HB_SHELL: nt
! HB_PLATFORM: win (x86_64) (auto-detected)
! HB_COMPILER: msvc64 (auto-detected: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/HostX86/x64/)
! Component: 'zlib' found in C:/harbour_for_modharbour/src/3rd/zlib (local)
! Component: 'pcre' found in C:/harbour_for_modharbour/src/3rd/pcre (local)
! Component: 'gpm' not supported on win platform
! Component: 'slang' not found. Configure with HB_WITH_SLANG.
! Component: 'curses' not found. Configure with HB_WITH_CURSES.
! Component: 'x11' not found. Configure with HB_WITH_X11.
! Component: 'wattcp/watt-32' not supported on win platform
! GIT_REVISION: 49350e1672
win-make[1]: Nothing to be done for 'all'.
win-make[1]: Nothing to be done for 'all'.
! 'hbdossrl' library skipped (platform or compiler not supported)
win-make[4]: '../../../../../../lib/win/msvc64/png.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/jpeg.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbpcre.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/tiff.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbzlib.lib' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hbcommon.lib' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hbnortl.lib' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hbpp.lib' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hbcplr.lib' is up to date.
win-make[3]: '../../../../../bin/win/msvc64/harbour.exe' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hbvm.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbmainstd.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbmainwin.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbmaindllh.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbmaindllp.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbvmmt.lib' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hbrtl.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/gtcgi.lib' is up to date.
! 'gtcrs' library skipped (component not found)
! 'gtdos' library skipped (platform not supported)
win-make[4]: '../../../../../../lib/win/msvc64/gtgui.lib' is up to date.
! 'gtos2' library skipped (platform not supported)
win-make[4]: '../../../../../../lib/win/msvc64/gtpca.lib' is up to date.
! 'gtsln' library skipped (component not found)
win-make[4]: '../../../../../../lib/win/msvc64/gtstd.lib' is up to date.
! 'gttrm' library skipped (platform or compiler not supported)
win-make[4]: '../../../../../../lib/win/msvc64/gtwin.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/gtwvt.lib' is up to date.
! 'gtxwc' library skipped (component not found)
win-make[3]: '../../../../../lib/win/msvc64/hbmacro.lib' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hbcpage.lib' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hblang.lib' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hbrdd.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbnulrdd.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/rddntx.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/rddnsx.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/rddcdx.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/rddfpt.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbsix.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbhsx.lib' is up to date.
win-make[4]: '../../../../../../lib/win/msvc64/hbusrrdd.lib' is up to date.
win-make[4]: '../../../../../../../lib/win/msvc64/hbuddall.lib' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hbextern.lib' is up to date.
win-make[3]: '../../../../../lib/win/msvc64/hbdebug.lib' is up to date.
link.exe  -nxcompat -dynamicbase -nologo -dll -subsystem:console -libpath:../../../../../lib/win/msvc64  -out:"..\..\..\..\..\bin\win\msvc64\harbour-32-x64.dll" -implib:"../../../../../lib/win/msvc64/harbour-32-x64.lib" @__dyn__.tmp winmm.lib kernel32.lib user32.lib ws2_32.lib iphlpapi.lib advapi32.lib gdi32.lib
   Creazione della libreria ../../../../../lib/win/msvc64/harbour-32-x64.lib e dell'oggetto ../../../../../lib/win/msvc64/harbour-32-x64.exp
vscode_debugger_dyn.obj : error LNK2019: riferimento al simbolo esterno "__int64 __cdecl hb_stackGetRecoverBase(void)" (?hb_stackGetRecoverBase@@YA_JXZ) non risolto nella funzione HB_FUN_ISBEGSEQ
  Suggerimento sui simboli che sono stati definiti per cui potrebbe esistere una corrispondenza:
    hb_stackGetRecoverBase
..\..\..\..\..\bin\win\msvc64\harbour-32-x64.dll : fatal error LNK1120: 1 esterni non risolti
../../../../../config/dyn.mk:111: recipe for target '
harbour-32-x64.dll' failed
../../config/dyn.mk:107: recipe for target '
descend' failed
../config/dir.mk:71: recipe for target '
dynlib' failed
config/dir.mk:71: recipe for target '
src' failed

Can you tell where I'm doing wrong ?
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Sat Jul 20, 2019 7:05 am

Massimo,

Are you using Visual Studio Community 2019 ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem building mod_harbour libraries

Postby Massimo Linossi » Sat Jul 20, 2019 7:15 am

Yes
I'm trying to build the mod_harbour library with the ADS inside but I have errors too.
Code: Select all  Expand view  RUN


c:\mod_harbour\windows\win64>call vcvarsall.bat x86_amd64
The specified configuration type is missing.  The tools for the
configuration might not be installed.
mod_harbour.c
Microsoft (R) Incremental Linker Version 14.21.27702.2
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:mod_harbour.dll
/dll
/implib:mod_harbour.lib
c:\Apache24\lib\libhttpd.lib
c:\Apache24\lib\libapr-1.lib
c:\Apache24\lib\libaprutil-1.lib
kernel32.lib
user32.lib
winmm.lib
advapi32.lib
rddads.lib
-out:mod_harbour.so
mod_harbour.obj
   Creazione della libreria mod_harbour.lib e dell'oggetto mod_harbour.exp
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno _memset non risolto nella funzione _ap_set_contenttype
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno _strcmp non risolto nella funzione _harbour_handler
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno _strcpy non risolto nella funzione _ap_set_contenttype
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno _strlen non risolto nella funzione _ap_rputs
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__GetLastError@0 non risolto nella funzione _harbour_handler
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__FreeLibrary@4 non risolto nella funzione _harbour_handler
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__GetProcAddress@8 non risolto nella funzione _harbour_handler
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__LoadLibraryA@4 non risolto nella funzione _harbour_handler
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__LocalFree@4 non risolto nella funzione _GetErrorMessage
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__FormatMessageA@28 non risolto nella funzione _GetErrorMessage
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__apr_palloc@8 non risolto nella funzione _ap_post_pairs_val
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__apr_table_elts@4 non risolto nella funzione _ap_headers_in_count
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__apr_table_get@8 non risolto nella funzione _ap_getenv
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__apr_table_set@12 non risolto nella funzione _ap_headers_out_set
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__apr_brigade_length@12 non risolto nella funzione _ap_post_pairs_val
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__apr_brigade_flatten@12 non risolto nella funzione _ap_post_pairs_val
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__ap_hook_handler@16 non risolto nella funzione _harbour_handler
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__ap_rwrite@12 non risolto nella funzione _ap_rputs
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__ap_setup_client_block@8 non risolto nella funzione _ap_body
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__ap_should_client_block@4 non risolto nella funzione _ap_body
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__ap_get_client_block@12 non risolto nella funzione _ap_body
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__ap_add_cgi_vars@4 non risolto nella funzione _harbour_handler
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __imp__ap_add_common_vars@4 non risolto nella funzione _harbour_handler
mod_harbour.obj : error LNK2019: riferimento al simbolo esterno __allmul non risolto nella funzione _ap_post_pairs_val
LINK : error LNK2001: simbolo esterno __DllMainCRTStartup@12 non risolto
c:\Apache24\lib\libhttpd.lib : warning LNK4272: il tipo '
x64' del computer della libreria è in conflitto con il tipo 'x86' del computer di destinazione
c:\Apache24\lib\libapr-1.lib : warning LNK4272: il tipo '
x64' del computer della libreria è in conflitto con il tipo 'x86' del computer di destinazione
c:\Apache24\lib\libaprutil-1.lib : warning LNK4272: il tipo '
x64' del computer della libreria è in conflitto con il tipo 'x86' del computer di destinazione
C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64\kernel32.lib : warning LNK4272: il tipo '
x64' del computer della libreria è in conflitto con il tipo 'x86' del computer di destinazione
C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64\user32.lib : warning LNK4272: il tipo '
x64' del computer della libreria è in conflitto con il tipo 'x86' del computer di destinazione
C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64\winmm.lib : warning LNK4272: il tipo '
x64' del computer della libreria è in conflitto con il tipo 'x86' del computer di destinazione
C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64\advapi32.lib : warning LNK4272: il tipo '
x64' del computer della libreria è in conflitto con il tipo 'x86' del computer di destinazione
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\lib\x64\LIBCMT.lib : warning LNK4272: il tipo '
x64' del computer della libreria è in conflitto con il tipo 'x86' del computer di destinazione
mod_harbour.so : fatal error LNK1120: 25 esterni non risolti
Impossibile trovare il file specificato.

User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Sat Jul 20, 2019 11:02 am

Massimo,

Lets go step by step. First of all lets create the rddads.lib.

We go to folder c:\harbour\contrib\rddads\ and we edit rddads.hbp commenting out these lines:
Code: Select all  Expand view  RUN
-hblib
-inc

-o${hb_name}

-w3 -es2

-stop{!(linux|win)}

#-depkeyhead=ads:ace.h
#-depcontrol=ads:${HB_WITH_ADS}
#-depincpath=ads:/usr/local/ads/acesdk
#-depincpath=ads:${HOME}/ads/acesdk
#{x86_64}-depimplibs=ads:ace64.dll
#{x86}-depimplibs=ads:Redistribute/ace32.dll
#{x86}-depimplibs=ads:32bit/ace32.dll
#{x86}-depimplibs=ads:ace32.dll

# To avoid a warning in ACE header
-cflag+=-Wno-unknown-pragmas{allgcc}

# for ADS headers
-c=gnu90

${hb_name}.hbx

ads1.c
adsfunc.c
adsmgmnt.c
adsx.c
 

Now we run this batch file:
go64.bat
Code: Select all  Expand view  RUN
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
set HB_BUILD_MODE=c
set HB_USER_PRGFLAGS=-l-
c:\harbour\bin\hbmk2 rddads.hbp

And we get rddads.lib in 64 bits mode:
https://github.com/FiveTechSoft/mod_harbour/blob/master/contribs/windows/ads64/rddads.lib

Next we follow this guide to build libharbour with user libs:
https://github.com/FiveTechSoft/mod_harbour/tree/master/contribs/windows

next message...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Sat Jul 20, 2019 2:11 pm

Massimo,

Here it is libharbour.dll 64 bits with ADS:
https://github.com/FiveTechSoft/mod_harbour/blob/master/contribs/windows/ads64/libharbour.dll

Now we need to find where to place ace64.dll so it is found by Windows
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Sat Jul 20, 2019 5:19 pm

Place these DLLs at c:\Apache24\bin\

ace64.dll
adsloc64.dll
aicu64.dll
axcws64.dll

and mod_harbour 64 bits + ADS is working fine :-) (edited: there is a problem with ERR_CONNECTION_RESET, inspect from Chrome)

Please download ADS 64 bits from here:
http://devzone.advantagedatabase.com/dz/content.aspx?key=20&Release=19&Product=5

Example:
Code: Select all  Expand view  RUN
#define ADS_LOCAL_SERVER                  1
#define ADS_REMOTE_SERVER                 2

function Main()

   ? RddRegister( "ADS", 1 )
   ? AdsSetServerType( ADS_LOCAL_SERVER )
   ? RDDSetDefault( "ADS" )
   
   ? File( hb_GetEnv( "PRGPATH" ) + "/data/menus.dbf" )
   USE ( hb_GetEnv( "PRGPATH" ) + "/data/menus.dbf" ) VIA "ADS"
   
   ? Alias()
   ? RddName()

   USE

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem building mod_harbour libraries

Postby Massimo Linossi » Sun Jul 21, 2019 4:48 pm

Thanks a lot Antonio.
Tomorrow I'll make some tests. Meanwhile, I study well Bootstrap.
Have a nice evening
Massimo
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Problem building mod_harbour libraries

Postby Massimo Linossi » Mon Jul 22, 2019 7:44 am

Hi Antonio.
I have I problem connecting with the remote server.
I'm using the Adsconnect60 function and I receive this error : "unknown or unregistered symbol Adsconnect60"
Massimo
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Mon Jul 22, 2019 9:05 am

You are using a data dictionary right ?

Could you start testing with some DBFs files instead ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem building mod_harbour libraries

Postby Massimo Linossi » Mon Jul 22, 2019 10:07 am

Hello Antonio.
I'm using a data dictionary. Now I made the test with dbf and I have this error :

Code: Select all  Expand view  RUN


NIL
0
DBFNTX
.T. error: Error 7123: The table contains an unrecognized field type. C:\xampp\htdocs\samples\data\customer.dbf

called from: GETERRORINFO, line: 103
called from: DOBREAK, line: 114
called from: (b)_APPMAIN, line: 22
called from: DBUSEAREA, line: 0
called from: MAIN, line: 11
called from: HB_HRBDO, line: 0
called from: EXECUTE, line: 81
called from: _APPMAIN, line: 33

 


This is the error.log of Apache

Code: Select all  Expand view  RUN


[Mon Jul 22 11:54:16.234755 2019] [ssl:warn] [pid 4452:tid 432] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 22 11:54:16.234755 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00455: Apache/2.4.39 (Win64) OpenSSL/1.0.2s configured -- resuming normal operations
[Mon Jul 22 11:54:16.234755 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00456: Server built: May 29 2019 20:07:10
[Mon Jul 22 11:54:16.234755 2019] [core:notice] [pid 4452:tid 432] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Mon Jul 22 11:54:16.234755 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00418: Parent: Created child process 272
[Mon Jul 22 11:54:16.453474 2019] [ssl:warn] [pid 272:tid 328] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 22 11:54:16.531595 2019] [ssl:warn] [pid 272:tid 328] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 22 11:54:16.531595 2019] [mpm_winnt:notice] [pid 272:tid 328] AH00354: Child: Starting 64 worker threads.

Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:00000000121DD839
    RAX:0000000000000028  RBX:00000000005CE860  RCX:00000000005CE860  RDX:0000009E003FF470
    RSI:0000000000000000  RDI:00000000005CE860  RBP:0000009E003FF570
    R8 :0000000000000013  R9 :0000009E0066F770  R10:0000009E0066F588  R11:0000009E0066F788
    R12:0000009E003FF470  R13:0000000000000001  R14:0000000000000000  R15:0000009E003FF670
    CS:RIP:0033:00000000121DD839  SS:RSP:002B:0000009E003FF2D0
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010206
    Exception Parameters: 0000000000000000 00000000005CE880

Modules:
00007FF759DC0000 000000000000B000 C:\Apache24\bin\httpd.exe
00007FFFF27D0000 00000000001AD000 C:\Windows\SYSTEM32\ntdll.dll
00007FFFF03A0000 000000000013E000 C:\Windows\system32\KERNEL32.DLL
00007FFFEFD30000 0000000000115000 C:\Windows\system32\KERNELBASE.dll
0000000071D20000 0000000000039000 C:\Apache24\bin\libapr-1.dll
0000000071CD0000 0000000000049000 C:\Apache24\bin\libaprutil-1.dll
0000000071C50000 0000000000073000 C:\Apache24\bin\libhttpd.dll
00007FFFEA420000 0000000000016000 C:\Windows\SYSTEM32\VCRUNTIME140.dll
00007FFFEA470000 0000000000004000 C:\Windows\SYSTEM32\api-ms-win-crt-runtime-l1-1-0.dll
00007FFFEA410000 0000000000004000 C:\Windows\SYSTEM32\api-ms-win-crt-stdio-l1-1-0.dll
00007FFFEA400000 0000000000004000 C:\Windows\SYSTEM32\api-ms-win-crt-string-l1-1-0.dll
00007FFFEA3F0000 0000000000005000 C:\Windows\SYSTEM32\api-ms-win-crt-math-l1-1-0.dll
00007FFFEA3E0000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-locale-l1-1-0.dll
00007FFFEA3D0000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-heap-l1-1-0.dll
00007FFFF1000000 00000000000AA000 C:\Windows\system32\ADVAPI32.dll
00007FFFF0B20000 000000000005A000 C:\Windows\system32\WS2_32.dll
00007FFFEF120000 0000000000059000 C:\Windows\SYSTEM32\MSWSOCK.dll
00007FFFF12A0000 0000000001529000 C:\Windows\system32\SHELL32.dll
00007FFFEFE70000 0000000000140000 C:\Windows\system32\RPCRT4.dll
00007FFFEA3B0000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-utility-l1-1-0.dll
00007FFFEA3C0000 0000000000004000 C:\Windows\SYSTEM32\api-ms-win-crt-convert-l1-1-0.dll
00007FFFEA3A0000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-environment-l1-1-0.dll
00007FFFEA390000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-conio-l1-1-0.dll
00007FFFEA380000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-time-l1-1-0.dll
0000000071C40000 000000000000D000 C:\Apache24\bin\libapriconv-1.dll
00007FFFEA370000 0000000000005000 C:\Windows\SYSTEM32\api-ms-win-crt-multibyte-l1-1-0.dll
00007FFFE5470000 000000000007F000 C:\Apache24\bin\pcre.dll
00007FFFF0230000 00000000000AA000 C:\Windows\system32\msvcrt.dll
00007FFFEFFB0000 0000000000059000 C:\Windows\SYSTEM32\sechost.dll
00007FFFF05B0000 0000000000009000 C:\Windows\system32\NSI.dll
00007FFFF0D20000 0000000000212000 C:\Windows\SYSTEM32\combase.dll
00007FFFF1120000 0000000000177000 C:\Windows\system32\USER32.dll
00007FFFF10B0000 0000000000054000 C:\Windows\system32\SHLWAPI.dll
00007FFFF0800000 000000000014B000 C:\Windows\system32\GDI32.dll
00007FFFEFC50000 000000000002E000 C:\Windows\system32\SspiCli.dll
00007FFFEA1B0000 00000000000F4000 C:\Windows\SYSTEM32\ucrtbase.DLL
00007FFFEE140000 00000000000B2000 C:\Windows\SYSTEM32\shcore.dll
00007FFFEF180000 0000000000020000 C:\Windows\SYSTEM32\CRYPTSP.dll
00007FFFEEE00000 0000000000036000 C:\Windows\system32\rsaenh.dll
00007FFFEF3D0000 0000000000026000 C:\Windows\SYSTEM32\bcrypt.dll
00007FFFEF760000 000000000000B000 C:\Windows\SYSTEM32\CRYPTBASE.dll
00007FFFEF6F0000 0000000000063000 C:\Windows\SYSTEM32\bcryptPrimitives.dll
0000000071C30000 0000000000008000 C:\Apache24\modules\mod_actions.so
0000000071C20000 000000000000A000 C:\Apache24\modules\mod_alias.so
0000000071C10000 0000000000007000 C:\Apache24\modules\mod_allowmethods.so
0000000071C00000 0000000000008000 C:\Apache24\modules\mod_asis.so
0000000071BF0000 0000000000009000 C:\Apache24\modules\mod_auth_basic.so
0000000071BE0000 0000000000009000 C:\Apache24\modules\mod_authn_core.so
0000000071BD0000 0000000000008000 C:\Apache24\modules\mod_authn_file.so
0000000071BC0000 000000000000A000 C:\Apache24\modules\mod_authz_core.so
0000000071BB0000 0000000000009000 C:\Apache24\modules\mod_authz_groupfile.so
0000000071BA0000 0000000000009000 C:\Apache24\modules\mod_authz_host.so
0000000071B90000 0000000000007000 C:\Apache24\modules\mod_authz_user.so
0000000071B80000 000000000000D000 C:\Apache24\modules\mod_autoindex.so
0000000071B70000 000000000000A000 C:\Apache24\modules\mod_cgi.so
0000000071B60000 0000000000009000 C:\Apache24\modules\mod_dir.so
0000000071B50000 0000000000008000 C:\Apache24\modules\mod_env.so
0000000071B30000 0000000000011000 C:\Apache24\modules\mod_include.so
0000000071B20000 000000000000C000 C:\Apache24\modules\mod_info.so
0000000071B10000 000000000000C000 C:\Apache24\modules\mod_isapi.so
0000000071B00000 000000000000D000 C:\Apache24\modules\mod_log_config.so
0000000071AF0000 000000000000A000 C:\Apache24\modules\mod_mime.so
0000000071AE0000 000000000000E000 C:\Apache24\modules\mod_negotiation.so
0000000071AD0000 0000000000009000 C:\Apache24\modules\mod_setenvif.so
0000000071AC0000 000000000000A000 C:\Apache24\modules\mod_socache_shmcb.so
0000000071A80000 0000000000032000 C:\Apache24\modules\mod_ssl.so
00007FFFE51C0000 0000000000206000 C:\Apache24\bin\LIBEAY32.dll
00007FFFE5160000 000000000005B000 C:\Apache24\bin\SSLEAY32.dll
00007FFFE9D10000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-filesystem-l1-1-0.dll
0000000071A70000 000000000000B000 C:\Apache24\modules\mod_status.so
00007FFFE9960000 000000000001B000 C:\Apache24\modules\mod_harbour.so
00007FFFEE5E0000 000000000000B000 C:\Windows\SYSTEM32\kernel.appcore.dll
00007FFFDC620000 000000000044F000 c:\Apache24\htdocs\libharbour.dll
00007FFFE8700000 0000000000022000 C:\Windows\SYSTEM32\WINMM.dll
00007FFFEC700000 000000000002A000 C:\Windows\SYSTEM32\IPHLPAPI.DLL
0000000012170000 00000000001B6000 C:\Apache24\bin\ace64.dll
00007FFFE86A0000 000000000002A000 C:\Windows\SYSTEM32\WINMMBASE.dll
00007FFFEC6A0000 000000000000A000 C:\Windows\SYSTEM32\WINNSI.DLL
00007FFFE8D30000 000000000000A000 C:\Windows\SYSTEM32\VERSION.dll
00007FFFE8D10000 000000000001E000 C:\Windows\SYSTEM32\MPR.dll
00007FFFE8D40000 0000000000009000 C:\Windows\SYSTEM32\WSOCK32.dll
00007FFFEFA70000 00000000001DF000 C:\Windows\system32\CRYPT32.dll
00007FFFEFC80000 0000000000051000 C:\Windows\system32\WINTRUST.dll
00007FFFEFCE0000 000000000004F000 C:\Windows\SYSTEM32\cfgmgr32.dll
00007FFFEE770000 0000000000028000 C:\Windows\SYSTEM32\DEVOBJ.dll
00007FFFEF9A0000 0000000000011000 C:\Windows\system32\MSASN1.dll
00007FFFEFE50000 0000000000016000 C:\Windows\system32\imagehlp.dll
000000001E940000 000000000028B000 C:\Apache24\bin\adsloc64.dll

Called from DBUSEAREA(0)
Called from INFO(60) in pcode.hrb
Called from HB_HRBDO(0)
Called from EXECUTE(81) in ../../../apache.prg
Called from _APPMAIN(33) in ../../../apache.prg
[Mon Jul 22 11:54:16.844089 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00428: Parent: child process 272 exited with status 255 -- Restarting.
[Mon Jul 22 11:54:16.937869 2019] [ssl:warn] [pid 4452:tid 432] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 22 11:54:16.937869 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00455: Apache/2.4.39 (Win64) OpenSSL/1.0.2s configured -- resuming normal operations
[Mon Jul 22 11:54:16.937869 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00456: Server built: May 29 2019 20:07:10
[Mon Jul 22 11:54:16.937869 2019] [core:notice] [pid 4452:tid 432] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Mon Jul 22 11:54:16.937869 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00418: Parent: Created child process 3672
[Mon Jul 22 11:54:17.172211 2019] [ssl:warn] [pid 3672:tid 332] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 22 11:54:17.265953 2019] [ssl:warn] [pid 3672:tid 332] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 22 11:54:17.265953 2019] [mpm_winnt:notice] [pid 3672:tid 332] AH00354: Child: Starting 64 worker threads.

Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:00000000121DD839
    RAX:0000000000000028  RBX:000000003F53E860  RCX:000000003F53E860  RDX:000000CF3F1DEF40
    RSI:0000000000000000  RDI:000000003F53E860  RBP:000000CF3F1DF040
    R8 :0000000000000013  R9 :000000CF3F3EF770  R10:000000CF3F3EF588  R11:000000CF3F3EF788
    R12:000000CF3F1DEF40  R13:0000000000000001  R14:0000000000000000  R15:000000CF3F1DF140
    CS:RIP:0033:00000000121DD839  SS:RSP:002B:000000CF3F1DEDA0
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010206
    Exception Parameters: 0000000000000000 000000003F53E880

Modules:
00007FF759DC0000 000000000000B000 C:\Apache24\bin\httpd.exe
00007FFFF27D0000 00000000001AD000 C:\Windows\SYSTEM32\ntdll.dll
00007FFFF03A0000 000000000013E000 C:\Windows\system32\KERNEL32.DLL
00007FFFEFD30000 0000000000115000 C:\Windows\system32\KERNELBASE.dll
0000000071D20000 0000000000039000 C:\Apache24\bin\libapr-1.dll
0000000071CD0000 0000000000049000 C:\Apache24\bin\libaprutil-1.dll
0000000071C50000 0000000000073000 C:\Apache24\bin\libhttpd.dll
00007FFFEA420000 0000000000016000 C:\Windows\SYSTEM32\VCRUNTIME140.dll
00007FFFEA470000 0000000000004000 C:\Windows\SYSTEM32\api-ms-win-crt-runtime-l1-1-0.dll
00007FFFEA410000 0000000000004000 C:\Windows\SYSTEM32\api-ms-win-crt-stdio-l1-1-0.dll
00007FFFEA400000 0000000000004000 C:\Windows\SYSTEM32\api-ms-win-crt-string-l1-1-0.dll
00007FFFEA3F0000 0000000000005000 C:\Windows\SYSTEM32\api-ms-win-crt-math-l1-1-0.dll
00007FFFEA3E0000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-locale-l1-1-0.dll
00007FFFEA3D0000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-heap-l1-1-0.dll
00007FFFF1000000 00000000000AA000 C:\Windows\system32\ADVAPI32.dll
00007FFFF0B20000 000000000005A000 C:\Windows\system32\WS2_32.dll
00007FFFEF120000 0000000000059000 C:\Windows\SYSTEM32\MSWSOCK.dll
00007FFFF12A0000 0000000001529000 C:\Windows\system32\SHELL32.dll
00007FFFEFE70000 0000000000140000 C:\Windows\system32\RPCRT4.dll
00007FFFEA3B0000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-utility-l1-1-0.dll
00007FFFEA3C0000 0000000000004000 C:\Windows\SYSTEM32\api-ms-win-crt-convert-l1-1-0.dll
00007FFFEA3A0000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-environment-l1-1-0.dll
00007FFFEA390000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-conio-l1-1-0.dll
00007FFFEA380000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-time-l1-1-0.dll
0000000071C40000 000000000000D000 C:\Apache24\bin\libapriconv-1.dll
00007FFFEA370000 0000000000005000 C:\Windows\SYSTEM32\api-ms-win-crt-multibyte-l1-1-0.dll
00007FFFE5470000 000000000007F000 C:\Apache24\bin\pcre.dll
00007FFFF0230000 00000000000AA000 C:\Windows\system32\msvcrt.dll
00007FFFEFFB0000 0000000000059000 C:\Windows\SYSTEM32\sechost.dll
00007FFFF05B0000 0000000000009000 C:\Windows\system32\NSI.dll
00007FFFF0D20000 0000000000212000 C:\Windows\SYSTEM32\combase.dll
00007FFFF1120000 0000000000177000 C:\Windows\system32\USER32.dll
00007FFFF10B0000 0000000000054000 C:\Windows\system32\SHLWAPI.dll
00007FFFF0800000 000000000014B000 C:\Windows\system32\GDI32.dll
00007FFFEFC50000 000000000002E000 C:\Windows\system32\SspiCli.dll
00007FFFEA1B0000 00000000000F4000 C:\Windows\SYSTEM32\ucrtbase.DLL
00007FFFEE140000 00000000000B2000 C:\Windows\SYSTEM32\shcore.dll
00007FFFEF180000 0000000000020000 C:\Windows\SYSTEM32\CRYPTSP.dll
00007FFFEEE00000 0000000000036000 C:\Windows\system32\rsaenh.dll
00007FFFEF3D0000 0000000000026000 C:\Windows\SYSTEM32\bcrypt.dll
00007FFFEF760000 000000000000B000 C:\Windows\SYSTEM32\CRYPTBASE.dll
00007FFFEF6F0000 0000000000063000 C:\Windows\SYSTEM32\bcryptPrimitives.dll
0000000071C30000 0000000000008000 C:\Apache24\modules\mod_actions.so
0000000071C20000 000000000000A000 C:\Apache24\modules\mod_alias.so
0000000071C10000 0000000000007000 C:\Apache24\modules\mod_allowmethods.so
0000000071C00000 0000000000008000 C:\Apache24\modules\mod_asis.so
0000000071BF0000 0000000000009000 C:\Apache24\modules\mod_auth_basic.so
0000000071BE0000 0000000000009000 C:\Apache24\modules\mod_authn_core.so
0000000071BD0000 0000000000008000 C:\Apache24\modules\mod_authn_file.so
0000000071BC0000 000000000000A000 C:\Apache24\modules\mod_authz_core.so
0000000071BB0000 0000000000009000 C:\Apache24\modules\mod_authz_groupfile.so
0000000071BA0000 0000000000009000 C:\Apache24\modules\mod_authz_host.so
0000000071B90000 0000000000007000 C:\Apache24\modules\mod_authz_user.so
0000000071B80000 000000000000D000 C:\Apache24\modules\mod_autoindex.so
0000000071B70000 000000000000A000 C:\Apache24\modules\mod_cgi.so
0000000071B60000 0000000000009000 C:\Apache24\modules\mod_dir.so
0000000071B50000 0000000000008000 C:\Apache24\modules\mod_env.so
0000000071B30000 0000000000011000 C:\Apache24\modules\mod_include.so
0000000071B20000 000000000000C000 C:\Apache24\modules\mod_info.so
0000000071B10000 000000000000C000 C:\Apache24\modules\mod_isapi.so
0000000071B00000 000000000000D000 C:\Apache24\modules\mod_log_config.so
0000000071AF0000 000000000000A000 C:\Apache24\modules\mod_mime.so
0000000071AE0000 000000000000E000 C:\Apache24\modules\mod_negotiation.so
0000000071AD0000 0000000000009000 C:\Apache24\modules\mod_setenvif.so
0000000071AC0000 000000000000A000 C:\Apache24\modules\mod_socache_shmcb.so
0000000071A80000 0000000000032000 C:\Apache24\modules\mod_ssl.so
00007FFFE51C0000 0000000000206000 C:\Apache24\bin\LIBEAY32.dll
00007FFFE5160000 000000000005B000 C:\Apache24\bin\SSLEAY32.dll
00007FFFE9D10000 0000000000003000 C:\Windows\SYSTEM32\api-ms-win-crt-filesystem-l1-1-0.dll
0000000071A70000 000000000000B000 C:\Apache24\modules\mod_status.so
00007FFFE9960000 000000000001B000 C:\Apache24\modules\mod_harbour.so
00007FFFEE5E0000 000000000000B000 C:\Windows\SYSTEM32\kernel.appcore.dll
00007FFFDC620000 000000000044F000 c:\Apache24\htdocs\libharbour.dll
00007FFFE8700000 0000000000022000 C:\Windows\SYSTEM32\WINMM.dll
00007FFFEC700000 000000000002A000 C:\Windows\SYSTEM32\IPHLPAPI.DLL
0000000012170000 00000000001B6000 C:\Apache24\bin\ace64.dll
00007FFFE86A0000 000000000002A000 C:\Windows\SYSTEM32\WINMMBASE.dll
00007FFFEC6A0000 000000000000A000 C:\Windows\SYSTEM32\WINNSI.DLL
00007FFFE8D30000 000000000000A000 C:\Windows\SYSTEM32\VERSION.dll
00007FFFE8D10000 000000000001E000 C:\Windows\SYSTEM32\MPR.dll
00007FFFE8D40000 0000000000009000 C:\Windows\SYSTEM32\WSOCK32.dll
00007FFFEFA70000 00000000001DF000 C:\Windows\system32\CRYPT32.dll
00007FFFEFC80000 0000000000051000 C:\Windows\system32\WINTRUST.dll
00007FFFEFCE0000 000000000004F000 C:\Windows\SYSTEM32\cfgmgr32.dll
00007FFFEE770000 0000000000028000 C:\Windows\SYSTEM32\DEVOBJ.dll
00007FFFEF9A0000 0000000000011000 C:\Windows\system32\MSASN1.dll
00007FFFEFE50000 0000000000016000 C:\Windows\system32\imagehlp.dll
000000001E940000 000000000028B000 C:\Apache24\bin\adsloc64.dll

Called from DBUSEAREA(0)
Called from INFO(60) in pcode.hrb
Called from HB_HRBDO(0)
Called from EXECUTE(81) in ../../../apache.prg
Called from _APPMAIN(33) in ../../../apache.prg
[Mon Jul 22 11:54:17.547195 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00428: Parent: child process 3672 exited with status 255 -- Restarting.
[Mon Jul 22 11:54:17.640961 2019] [ssl:warn] [pid 4452:tid 432] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 22 11:54:17.640961 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00455: Apache/2.4.39 (Win64) OpenSSL/1.0.2s configured -- resuming normal operations
[Mon Jul 22 11:54:17.640961 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00456: Server built: May 29 2019 20:07:10
[Mon Jul 22 11:54:17.640961 2019] [core:notice] [pid 4452:tid 432] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Mon Jul 22 11:54:17.656565 2019] [mpm_winnt:notice] [pid 4452:tid 432] AH00418: Parent: Created child process 4224
[Mon Jul 22 11:54:17.875305 2019] [ssl:warn] [pid 4224:tid 328] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 22 11:54:17.953422 2019] [ssl:warn] [pid 4224:tid 328] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 22 11:54:17.953422 2019] [mpm_winnt:notice] [pid 4224:tid 328] AH00354: Child: Starting 64 worker threads.

 
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Mon Jul 22, 2019 3:20 pm

Massimo,

Please try with another DBF. That one seems not fine for ADS
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem building mod_harbour libraries

Postby Massimo Linossi » Mon Jul 22, 2019 4:25 pm

Hi Antonio.
I've tried with different DBFs and the result is the same.
I tried also to make a DBF with the dbcreate and works perfectly. I can open it with viewers
and the structure is correct. But is not usable inside the test program.
Looking inside the libharbour.dll seems that there is no ADS function except the ads_setservertype.

Now if I edit a prg, make it run and edit again for some times, I have this error running it again :
Code: Select all  Expand view  RUN

error: Unknown or unregistered symbol __DBGENTRY

called from: GETERRORINFO, line: 103
called from: DOBREAK, line: 114
called from: (b)_APPMAIN, line: 22
called from: HB_HRBLOAD, line: 0
called from: EXECUTE, line: 81
called from: _APPMAIN, line: 33
 

This happen also with the all the samples. The only thing to do is stopping and restarting Apache.
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Mon Jul 22, 2019 8:03 pm

Massimo,

I assume that you are using Windows 10 64 bits, that you installed Apache 64 bits and that you have copied this libharbour.dll in c:\Apache24\htdocs:
https://github.com/FiveTechSoft/mod_harbour/blob/master/contribs/windows/ads64/libharbour.dll

Also you must have mod_harbour.so copied in c:\Apache24\modules\ and finally that you have edited c:\Apache24\conf\httpd.conf and copied these lines there:
Code: Select all  Expand view  RUN
LoadModule harbour_module modules/mod_harbour.so

<FilesMatch "\.(prg|hrb)$">
    SetHandler harbour
</FilesMatch>

Then you can run this example and it works fine and generates the right output:
Code: Select all  Expand view  RUN
#include "ads.ch"

function Main()

   ? RddRegister( "ADS", 1 )
   ? AdsSetServerType( ADS_LOCAL_SERVER )
   ? RDDSetDefault( "ADS" )
   ? RddSetDefault()

   /*
   DbCreate( hb_GetEnv( "PRGPATH" ) + "/data/test.dbf",;
             { { "FIRST", "C", 30, 0 },;
               { "LAST",  "C", 30, 0 } } )
   
   */

   
   // USE ( hb_GetEnv( "PRGPATH" ) + "/data/menus.dbf" ) VIA "ADS"

return nil

Now, if you uncomment the DbCreate() call or the USE command, then Chrome reports a ERR_CONNECTION_RESET error.

I have been googling to find what may cause this and I assume that ADS opens several connections and Apache does not like that, but
I may be totally wrong and/or there may be a way to fix it, maybe from the ADS settings, etc.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem building mod_harbour libraries

Postby Massimo Linossi » Mon Jul 22, 2019 8:11 pm

Hi Antonio.
I'm using a Win7 64bits, and I have installed Apache 64.
Tomorrow I'll make some tests with your advices.
Thanks a lot
Massimo
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Mon Jul 22, 2019 8:22 pm

Ok, now we know whats going on. A GPF is generated from here: (c:\Apache24\logs\error.log)

Code: Select all  Expand view  RUN
000000001E940000 000000000028B000 C:\Apache24\bin\adsloc64.dll

Called from DBUSEAREA(0)

So it seems as working local is crashing.

I don't have an ADS server here so I need your feedback :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 52 guests