Re: Binary install on FreeBSD

"James B. Byrne via Aubit4gl-discuss" <[email protected]> Tue, 12 Jan 2021 11:18:01 -0500
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>
While building aubit4gl-1.52 I have encountered this error:

sxmllib.c: In function 'aclfgl_sxml_get_errno':
sxmllib.c:827:6: error: 'sxml_errno' undeclared (first use in this function);
did you mean 'sxml_set_node'?
  827 |    n=sxml_errno;
      |      ^~~~~~~~~~
      |      sxml_set_node
gmake[2]: *** [Makefile:66:
/home/byrnejb_hll/Projects/aubit4gl/plugins-1.5_2/libA4GL_sxml.so] Error 1
gmake[2]: Leaving directory
'/usr/home/byrnejb_hll/Projects/aubit4gl/lib/extra_libs/sxml'
gmake[1]: *** [Makefile:628:
/home/byrnejb_hll/Projects/aubit4gl/plugins-1.5_2/libA4GL_sxml.so] Error 2
gmake[1]: Leaving directory '/usr/home/byrnejb_hll/Projects/aubit4gl/lib'
gmake: *** [Makefile:285: corecompile] Error 2


I have found this in ./lib/extra_libs/sxml/sxmllib.c:

   A4GL_clr_ignore_error_list();
   /* CMD : E_CMD_CODE_CMD Line 185 E_MET_FUNCTION_DEFINITION */
   A4GLSTK_setCurrentLine(_module_name,185);
   n=sxml_errno;
   A4GL_clr_ignore_error_list();
   /* CMD : E_CMD_RETURN_CMD Line 186 E_MET_FUNCTION_DEFINITION */
A4GLSTK_setCurrentLine(_module_name,186);
   aclfgli_clr_err_flg();


While ./lib/extra_libs/sxml/README says this:
. . .
Functions, those do not return integer values representing errors, set the
global variable "sxml_errno" which can be used as an argument for 'sxml_errstr'


However, sxml_errno is not elsewhere defined or used.  Elsewhere in
./lib/extra_libs/sxml/sxmllib.c I see these:

 15 A4GL_FUNCTION int aclfgl_sxml_errstr (int n);$
 722    _retvars=aclfgl_sxml_errstr(1);$
 750 A4GL_FUNCTION int aclfgl_sxml_errstr (int _nargs){$
 752 static char *_functionName = "sxml_errstr";$
 782    strcpy(lv_errbuff,sxml_errstr(n));$

This shows that "sxml_errno" is never used as an argument to 'sxml_errstr'.

So, where, how, and why is "sxml_errno" supposed to be set?


-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
   Unencrypted messages have no legal claim to privacy
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:[email protected]
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3