Problem building mod_harbour libraries
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: Problem building mod_harbour libraries
Hi Antonio.
For testing with a remote server I need the functions that are inside the rddads.lib
The rddads that you have built is perfect but all the function are not present inside libharbour.dll
Can you build it again ?
Thanks
Massimo
For testing with a remote server I need the functions that are inside the rddads.lib
The rddads that you have built is perfect but all the function are not present inside libharbour.dll
Can you build it again ?
Thanks
Massimo
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Problem building mod_harbour libraries
Massimo,
You are right
I am going to build it again...
You are right
I am going to build it again...
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Problem building mod_harbour libraries
Massimo,
This one seems to be right:
https://github.com/FiveTechSoft/mod_har ... arbour.dll
ADS.DEF (to be included inside harbour.def when building libharbour.dll)
This one seems to be right:
https://github.com/FiveTechSoft/mod_har ... arbour.dll
ADS.DEF (to be included inside harbour.def when building libharbour.dll)
Code: Select all
HB_FUN_ADS
HB_FUN_ADSADDCUSTOMKEY
HB_FUN_ADSADT
HB_FUN_ADSADTX
HB_FUN_ADSAPPLICATIONEXIT
HB_FUN_ADSBEGINTRANSACTION
HB_FUN_ADSBLOB2FILE
HB_FUN_ADSCACHEOPENCURSORS
HB_FUN_ADSCACHEOPENTABLES
HB_FUN_ADSCACHERECORDS
HB_FUN_ADSCDX
HB_FUN_ADSCDXX
HB_FUN_ADSCHECKEXISTENCE
HB_FUN_ADSCLEARAOF
HB_FUN_ADSCLOSEALLTABLES
HB_FUN_ADSCLOSECACHEDTABLES
HB_FUN_ADSCLRCALLBACK
HB_FUN_ADSCOMMITTRANSACTION
HB_FUN_ADSCONNECT
HB_FUN_ADSCONNECT60
HB_FUN_ADSCONNECTION
HB_FUN_ADSCONVERTTABLE
HB_FUN_ADSCOPYTABLE
HB_FUN_ADSCOPYTABLECONTENTS
HB_FUN_ADSCREATEFTSINDEX
HB_FUN_ADSCREATESAVEPOINT
HB_FUN_ADSCREATESQLSTATEMENT
HB_FUN_ADSCUSTOMIZEAOF
HB_FUN_ADSDDADDINDEXFILE
HB_FUN_ADSDDADDTABLE
HB_FUN_ADSDDADDUSERTOGROUP
HB_FUN_ADSDDCREATE
HB_FUN_ADSDDCREATELINK
HB_FUN_ADSDDCREATEREFINTEGRITY
HB_FUN_ADSDDCREATEUSER
HB_FUN_ADSDDDELETEUSER
HB_FUN_ADSDDDROPLINK
HB_FUN_ADSDDGETDATABASEPROPERTY
HB_FUN_ADSDDGETUSERPROPERTY
HB_FUN_ADSDDMODIFYLINK
HB_FUN_ADSDDREMOVEINDEXFILE
HB_FUN_ADSDDREMOVEREFINTEGRITY
HB_FUN_ADSDDREMOVETABLE
HB_FUN_ADSDDREMOVEUSERFROMGROUP
HB_FUN_ADSDDSETDATABASEPROPERTY
HB_FUN_ADSDECRYPTRECORD
HB_FUN_ADSDECRYPTTABLE
HB_FUN_ADSDELETECUSTOMKEY
HB_FUN_ADSDELETEFILE
HB_FUN_ADSDIRECTORY
HB_FUN_ADSDISABLEENCRYPTION
HB_FUN_ADSDISCONNECT
HB_FUN_ADSENABLEENCRYPTION
HB_FUN_ADSENCRYPTRECORD
HB_FUN_ADSENCRYPTTABLE
HB_FUN_ADSEVALAOF
HB_FUN_ADSEXECUTESQL
HB_FUN_ADSEXECUTESQLDIRECT
HB_FUN_ADSFAILEDTRANSACTIONRECOVERY
HB_FUN_ADSFILE2BLOB
HB_FUN_ADSGETAOF
HB_FUN_ADSGETAOFNOOPT
HB_FUN_ADSGETAOFOPTLEVEL
HB_FUN_ADSGETCONNECTIONTYPE
HB_FUN_ADSGETFILTER
HB_FUN_ADSGETHANDLETYPE
HB_FUN_ADSGETLASTERROR
HB_FUN_ADSGETMEMODATATYPE
HB_FUN_ADSGETNUMACTIVELINKS
HB_FUN_ADSGETNUMINDEXES
HB_FUN_ADSGETNUMOPENTABLES
HB_FUN_ADSGETRECORDCOUNT
HB_FUN_ADSGETRELKEYPOS
HB_FUN_ADSGETSERVERNAME
HB_FUN_ADSGETSERVERTIME
HB_FUN_ADSGETTABLEALIAS
HB_FUN_ADSGETTABLECHARTYPE
HB_FUN_ADSGETTABLECONTYPE
HB_FUN_ADSINTRANSACTION
HB_FUN_ADSISCONNECTIONALIVE
HB_FUN_ADSISEMPTY
HB_FUN_ADSISENCRYPTIONENABLED
HB_FUN_ADSISEXPRVALID
HB_FUN_ADSISINDEXED
HB_FUN_ADSISNULL
HB_FUN_ADSISRECORDENCRYPTED
HB_FUN_ADSISRECORDINAOF
HB_FUN_ADSISRECORDLOCKED
HB_FUN_ADSISRECORDVALID
HB_FUN_ADSISSERVERLOADED
HB_FUN_ADSISTABLEENCRYPTED
HB_FUN_ADSISTABLELOCKED
HB_FUN_ADSKEYCOUNT
HB_FUN_ADSKEYNO
HB_FUN_ADSLOCKING
HB_FUN_ADSMGCONNECT
HB_FUN_ADSMGDISCONNECT
HB_FUN_ADSMGGETACTIVITYINFO
HB_FUN_ADSMGGETCOMMSTATS
HB_FUN_ADSMGGETCONFIGINFO
HB_FUN_ADSMGGETHANDLE
HB_FUN_ADSMGGETINSTALLINFO
HB_FUN_ADSMGGETLOCKOWNER
HB_FUN_ADSMGGETLOCKS
HB_FUN_ADSMGGETOPENINDEXES
HB_FUN_ADSMGGETOPENTABLES
HB_FUN_ADSMGGETOPENTABLES2
HB_FUN_ADSMGGETSERVERTYPE
HB_FUN_ADSMGGETUSERNAMES
HB_FUN_ADSMGGETWORKERTHREADACTIVITY
HB_FUN_ADSMGKILLUSER
HB_FUN_ADSMGRESETCOMMSTATS
HB_FUN_ADSMGSETHANDLE
HB_FUN_ADSNTX
HB_FUN_ADSNTXX
HB_FUN_ADSPREPARESQL
HB_FUN_ADSREFRESHAOF
HB_FUN_ADSREFRESHRECORD
HB_FUN_ADSREGCALLBACK
HB_FUN_ADSREINDEX
HB_FUN_ADSRESTRUCTURETABLE
HB_FUN_ADSRIGHTSCHECK
HB_FUN_ADSROLLBACK
HB_FUN_ADSROLLBACKSAVEPOINT
HB_FUN_ADSSETAOF
HB_FUN_ADSSETCHARTYPE
HB_FUN_ADSSETDATEFORMAT
HB_FUN_ADSSETDEFAULT
HB_FUN_ADSSETDELETED
HB_FUN_ADSSETEPOCH
HB_FUN_ADSSETEXACT
HB_FUN_ADSSETFILETYPE
HB_FUN_ADSSETINDEXDIRECTION
HB_FUN_ADSSETRELKEYPOS
HB_FUN_ADSSETSEARCHPATH
HB_FUN_ADSSETSERVERTYPE
HB_FUN_ADSSHOWERROR
HB_FUN_ADSSTMTSETTABLELOCKTYPE
HB_FUN_ADSSTMTSETTABLEPASSWORD
HB_FUN_ADSSTMTSETTABLEREADONLY
HB_FUN_ADSTESTLOGIN
HB_FUN_ADSTESTRECLOCKS
HB_FUN_ADSUNLOCKRECORD
HB_FUN_ADSVERIFYSQL
HB_FUN_ADSVERSION
HB_FUN_ADSVFP
HB_FUN_ADSVFPX
HB_FUN_ADSWRITEALLRECORDS
HB_FUN_ADSX
HB_FUN_HB_RDDADSREGISTER
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: Problem building mod_harbour libraries
Thanks Antonio.
I've already closed the developing IMac. Tomorrow I'll make all the tests.
Talk to you soon.
Massimo
I've already closed the developing IMac. Tomorrow I'll make all the tests.
Talk to you soon.
Massimo
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: Problem building mod_harbour libraries
Goodmornig Antonio.
I made a prg for testing but is not working.
I've also seen that the old library if bigger than the new one. Nearly 200kb
What do you think about making a new section in the forum dedicated to mod_harbour ? It will be better
for finding posts that are difficult to see between all the others.
I made a prg for testing but is not working.
I've also seen that the old library if bigger than the new one. Nearly 200kb
Code: Select all
error: Unknown or unregistered symbol ADSCONNECT60
called from: GETERRORINFO, line: 106
called from: DOBREAK, line: 117
called from: (b)MAIN, line: 23
called from: HB_HRBLOAD, line: 0
called from: EXECUTE, line: 84
called from: MAIN, line: 34
for finding posts that are difficult to see between all the others.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Problem building mod_harbour libraries
Massimo,
current size: 4.515.840 bytes
yes, we are going to open a mod_harbour section in these forums
current size: 4.515.840 bytes
yes, we are going to open a mod_harbour section in these forums
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: Problem building mod_harbour libraries
Antonio,
I saw that there are the functions inside, but calling them gives the error above.
Is there something to check, some parameter or config file ?
The current size is correct. But the libraries in GitHub is 4.719.104 bytes. I was thinking that the old library plus
the new ADS functions will be much more bigger rather than smaller.
You can use this code and see that the browser is giving an error. Tested with Chrome, Firefox and Safari.
The ADS function must be called with some parameters, but the program is not making an error like "parameters incorrect".
Seems that the problem is inside the dll.
Thanks
Massimo
I saw that there are the functions inside, but calling them gives the error above.
Is there something to check, some parameter or config file ?
The current size is correct. But the libraries in GitHub is 4.719.104 bytes. I was thinking that the old library plus
the new ADS functions will be much more bigger rather than smaller.
You can use this code and see that the browser is giving an error. Tested with Chrome, Firefox and Safari.
Code: Select all
function Main()
AdsConnect60()
return nil
Seems that the problem is inside the dll.
Thanks
Massimo
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Problem building mod_harbour libraries
Massimo,
I am running this test:
ads.prg
and I get this:
So the first four calls are working fine and the results are as expected.
Now when I try to USE the DBF I get a GPF (reported in c:\Apache24\logs\error.log)
I am running this test:
ads.prg
Code: Select all
#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
So the first four calls are working fine and the results are as expected.
Now when I try to USE the DBF I get a GPF (reported in c:\Apache24\logs\error.log)
As you can see, the GPF comes from adsloc64.dll. Maybe there is some ADS setting missing ?00007FFD587F0000 000000000001B000 C:\Apache24\modules\mod_harbour.so
00007FFD0AF80000 000000000045C000 c:\Apache24\htdocs\libharbour.dll
0000000012170000 00000000001B6000 C:\Apache24\bin\ace64.dll
00007FFD586E0000 0000000000024000 C:\Windows\SYSTEM32\WINMM.dll
00007FFD59E70000 000000000003A000 C:\Windows\SYSTEM32\IPHLPAPI.DLL
00007FFD585B0000 000000000002D000 C:\Windows\SYSTEM32\WINMMBASE.dll
00007FFD5AF70000 0000000000149000 C:\Windows\System32\CRYPT32.dll
00007FFD52640000 000000000000A000 C:\Windows\SYSTEM32\VERSION.dll
00007FFD4E300000 000000000001B000 C:\Windows\SYSTEM32\MPR.dll
00007FFD5A930000 0000000000012000 C:\Windows\System32\MSASN1.dll
00007FFD587E0000 0000000000009000 C:\Windows\SYSTEM32\WSOCK32.dll
00007FFD5AE10000 000000000005C000 C:\Windows\System32\WINTRUST.dll
00007FFD5CBA0000 000000000001D000 C:\Windows\System32\imagehlp.dll
00007FFD5A7F0000 000000000002F000 C:\Windows\SYSTEM32\SspiCli.dll
00007FFD589F0000 0000000000099000 C:\Windows\system32\uxtheme.dll
000000001E940000 000000000028B000 C:\Apache24\bin\adsloc64.dll
Called from DBUSEAREA(0)
Called from MAIN(15) in pcode.hrb
Called from HB_HRBDO(0)
Called from EXECUTE(84) in ../../../apache.prg
Called from MAIN(34) in ../../../apache.prg
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Problem building mod_harbour libraries
I have been reviewing the imports of adsloc64.dll using this great EXE/DLL analyzer:
https://github.com/knik0/peinfo (use it from Windows 10 bash building it using gcc)
and I don't see anything suspicious. All external DLLs seem to be satisfied.
https://github.com/knik0/peinfo (use it from Windows 10 bash building it using gcc)
and I don't see anything suspicious. All external DLLs seem to be satisfied.
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: Problem building mod_harbour libraries
Good morning Antonio.
I test your prg and I always have this error :
I copied all the new files that you have recompiled. All the other sources are working but seems
that ADS is ignored. What could be wrong in my machine ?
I test your prg and I always have this error :
Code: Select all
error: Unknown or unregistered symbol ADSSETSERVERTYPE
called from: GETERRORINFO, line: 106
called from: DOBREAK, line: 117
called from: (b)MAIN, line: 23
called from: HB_HRBLOAD, line: 0
called from: EXECUTE, line: 84
called from: MAIN, line: 34
that ADS is ignored. What could be wrong in my machine ?
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: Problem building mod_harbour libraries
Hi Antonio.
Can I ask you one pleasure ? I wish to create a folder, place inside all the libs and then, with a bat file or other commands create the libharbour.dll
Can you give me all the directives for making this ? Or if you have time I can give you a connection with my machine for seeing if I have some ghosts inside.
I want to try in this way because I don't understand why I cannot create that dll and I have always error using it while in yours is different.
Thanks a lot.
Massimo
Can I ask you one pleasure ? I wish to create a folder, place inside all the libs and then, with a bat file or other commands create the libharbour.dll
Can you give me all the directives for making this ? Or if you have time I can give you a connection with my machine for seeing if I have some ghosts inside.
I want to try in this way because I don't understand why I cannot create that dll and I have always error using it while in yours is different.
Thanks a lot.
Massimo
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Problem building mod_harbour libraries
Massimo,
Here it is the batch file and all that is needed:
https://github.com/FiveTechSoft/mod_har ... bs/windows
Here you have the rddads.lib 64 bits already built:
https://github.com/FiveTechSoft/mod_har ... dows/ads64
First of all you have to build Harbour 64 bits using harbour64.bat included in this repo:
git clone https://github.com/FiveTechSoft/harbour_for_modharbour
I wish I could do more to help you
Here it is the batch file and all that is needed:
https://github.com/FiveTechSoft/mod_har ... bs/windows
Here you have the rddads.lib 64 bits already built:
https://github.com/FiveTechSoft/mod_har ... dows/ads64
First of all you have to build Harbour 64 bits using harbour64.bat included in this repo:
git clone https://github.com/FiveTechSoft/harbour_for_modharbour
I wish I could do more to help you
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: Problem building mod_harbour libraries
Hi Antonio.
I made all your suggestions and nothing. I have always the same error as above. ADS is linked inside the dll but
is not working. Seems that all the functions are not visible or the ADS dlls are not loaded in memory.
Thanks a lot for your time
Massimo
I made all your suggestions and nothing. I have always the same error as above. ADS is linked inside the dll but
is not working. Seems that all the functions are not visible or the ADS dlls are not loaded in memory.
Thanks a lot for your time
Massimo
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Problem building mod_harbour libraries
I plan to try it again as I also want ADS from mod_harbour...
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: Problem building mod_harbour libraries
Thanks a lot.
If you need something you can also write me on private mail.
Have a nice weekend
If you need something you can also write me on private mail.
Have a nice weekend