[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Any progress with FIS GT.M?





On 06/19/2012 10:59 AM, Yaroslav Halchenko wrote:
$>  strace -fF -o /tmp/123strace2.log $gtm_dist/mumps -direct
It works for me if I add
  gtmroutines=$gtm_dist/libgtmutil.so
to the environment.
rright -- forgot about this one ;-)  so many hidden precious env
variables without any punishing me-forgetful error messages ;)

[KSB] Actually, GT.M did issue an error message saying it couldn't find the routine!

also we need to adjust/patch configure so it strips the gtm_destdir
during s|GTMDIST|$gtmdist|g, i.e.

$>  quilt diff
--- a/sr_unix/configure.gtc
+++ b/sr_unix/configure.gtc
@@ -371,7 +371,7 @@ fi
  cat<<  SEDSCRIPT>  sedin$$
  s|ARCH|$arch|g
  s|ECHO|"$echo"|g
-s|GTMDIST|$gtmdist|g
+s|GTMDIST|${gtmdist#${gtm_destdir:-}}|g
  s|SERVERID|$server_id|g
  SEDSCRIPT
  for i in $pathmods

I have pushed that into SVN for packaging (to be bundled with of
gtm_destdir patches from Brad)

But there is tiny bit left

$>  grep /home/yoh/deb/perspect/fis-gtm/.*debian/ -r .
Binary file ./utf8/gdehelp.gld matches
./utf8/plugin/gpgagent.tab:/home/yoh/deb/perspect/fis-gtm/fis-gtm-gitsvn/debian/fis-gtm-5.5.000/usr/lib/fis-gtm/V5.5-000+git80-g211bd16_x86_64/plugin/libgtmcrypt.so
Binary file ./utf8/gtmhelp.gld matches
Binary file ./gdehelp.gld matches
./plugin/gpgagent.tab:/home/yoh/deb/perspect/fis-gtm/fis-gtm-gitsvn/debian/fis-gtm-5.5.000/usr/lib/fis-gtm/V5.5-000+git80-g211bd16_x86_64/plugin/libgtmcrypt.so
Binary file ./gtmhelp.gld matches

so whenever help files and gpgagent.tab is composed we should strip prefix as
well.   Is there a clean "fix"? ;)

[KSB] Yes, there is. The GDE program is used to maintain the global directory (gtmhelp.gld) which in turn points to the help database. This is easily fixed as follows:

# export gtm_dist=<path to GT.M>
# export gtmroutines=$gtm_dist/libgtmutil.so
# export gtmgbldir=$gtm_dist/gdehelp.gld
# $gtm_dist/mumps -run GDE
%GDE-I-LOADGD, Loading Global Directory file
        /usr/lib/fis-gtm/V5.5-000_x86_64/gdehelp.gld
%GDE-I-VERIFY, Verification OK


GDE> change -segment DEFAULT -file=$gtm_dist/gdehelp.dat
GDE> exit
%GDE-I-VERIFY, Verification OK

%GDE-I-GDUPDATE, Updating Global Directory file
        /usr/lib/fis-gtm/V5.5-000_x86_64/gdehelp.gld
# export gtmgbldir=$gtm_dist/gtmhelp.gld
# $gtm_dist/mumps -run GDE
%GDE-I-LOADGD, Loading Global Directory file
        /usr/lib/fis-gtm/V5.5-000_x86_64/gtmhelp.gld
%GDE-I-VERIFY, Verification OK


GDE> change -segment DEFAULT -file=$gtm_dist/gtmhelp.dat
GDE> exit
%GDE-I-VERIFY, Verification OK

%GDE-I-GDUPDATE, Updating Global Directory file
        /usr/lib/fis-gtm/V5.5-000_x86_64/gtmhelp.gld
#

This should make both ZHELP and the HELP command in GDE work.

But also zhelp doesn't work since there is no gtmhelp.dat
installed which should come from:

sr_unix/comlist.mk:../gtmhelp.dat: ../mumps.hlp

I guess -- is it me somehow missing it or it is a generic TODO for
cmakification?

Also I recalled that we spotted with Bhaskar following missing
symbols and he said that it looks like absent needed linking

dpkg-shlibdeps: warning: debian/fis-gtm-5.5.000/usr/lib/fis-gtm/V5.5-000+git80-g211bd16_x86_64/plugin/libgtmcrypt.so contains an unresolvable reference to symbol gtm_free: it's probably a plugin.
dpkg-shlibdeps: warning: debian/fis-gtm-5.5.000/usr/lib/fis-gtm/V5.5-000+git80-g211bd16_x86_64/plugin/libgtmcrypt.so contains an unresolvable reference to symbol gtm_xcfileid_free: it's probably a plugin.
dpkg-shlibdeps: warning: debian/fis-gtm-5.5.000/usr/lib/fis-gtm/V5.5-000+git80-g211bd16_x86_64/plugin/libgtmcrypt.so contains an unresolvable reference to symbol gtm_is_file_identical: it's probably a plugin.
dpkg-shlibdeps: warning: debian/fis-gtm-5.5.000/usr/lib/fis-gtm/V5.5-000+git80-g211bd16_x86_64/plugin/libgtmcrypt.so contains an unresolvable reference to symbol gtm_filename_to_id: it's probably a plugin.
dpkg-shlibdeps: warning: debian/fis-gtm-5.5.000/usr/lib/fis-gtm/V5.5-000+git80-g211bd16_x86_64/plugin/libgtmcrypt.so contains an unresolvable reference to symbol gtm_zstatus: it's probably a plugin.
dpkg-shlibdeps: warning: debian/fis-gtm-5.5.000/usr/lib/fis-gtm/V5.5-000+git80-g211bd16_x86_64/plugin/libgtmcrypt.so contains an unresolvable reference to symbol gtm_malloc: it's probably a plugin.
dpkg-shlibdeps: warning: debian/fis-gtm-5.5.000/usr/lib/fis-gtm/V5.5-000+git80-g211bd16_x86_64/plugin/libgtmcrypt.so contains an unresolvable reference to symbol gtm_ci: it's probably a plugin.

[KSB] The database encryption plugin always runs in the context of a mumps process, which should provide the gtm_* functions.

Regards
-- Bhaskar

--
GT.M - Rock solid. Lightning fast. Secure. No compromises.

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.


Reply to: