From: craigberry@nospam.mac.com   
      
   On 6/6/25 10:26 AM, Arne Vajhøj wrote:   
   > On 6/6/2025 11:18 AM, Arne Vajhøj wrote:   
   >> On x86-64:   
   >>   
   >> $ typ zzz.c   
   >> #include    
   >> #include    
   >> #include    
   >> int main()   
   >> {   
   >> char *ptr;   
   >> vasprintf(&ptr,"%d,%d",1,2);   
   >> exit(0);   
   >> }   
   >> $ cc zzz   
   >>   
   >> vasprintf(&ptr,"%d,%d",1,2);   
   >> .......................^   
   >> %CC-W-CVTDIFTYPES, In this statement, "1" of type "int", is being   
   >> converted to "long pointer to char".   
   >> at line number 7 in file DKA0:[arne.freetds]zzz.c;1   
   >>   
   >> vasprintf(&ptr,"%d,%d",1,2);   
   >> ^   
   >> %CC-E-TOOMANYARGS, In this statement, "vasprintf" expects 3 arguments,   
   >> but 4 are supplied.   
   >> at line number 7 in file DKA0:[arne.freetds]zzz.c;1   
   >   
   > On Alpha:   
   >   
   > $ typ zzz.c   
   > #include    
   > #include    
   > #include    
   > int main()   
   > {   
   > char *ptr;   
   > vasprintf(&ptr,"%d,%d",1,2);   
   > exit(0);   
   > }   
   > $ cc zzz   
   >   
   > vasprintf(&ptr,"%d,%d",1,2);   
   > ^   
   > %CC-I-IMPLICITFUNC, In this statement, the identifier "vasprintf" is   
   > implicitly declared as a function.   
   > at line number 7 in file DISK2:[ARNE]zzz.c;1   
   > $ link zzz   
   > %LINK-W-NUDFSYMS, 1 undefined symbol:   
   > %LINK-I-UDFSYM, VASPRINTF   
   > %LINK-W-USEUNDEF, undefined symbol VASPRINTF referenced   
   > in psect $LINK$ offset %X00000030   
   > in module ZZZ file DISK2:[ARNE]zzz.OBJ;1   
      
      
   vasprintf is not present on Alpha or Itanium with RTL ECO v6 or earlier.   
   It only comes along with RTL ECO v9. The only place I can find it   
   documented is in a special set of release notes that you get after   
   installation (or after rooting through the product kit):   
      
   SYS$HELP:VSI_OPENVMS_CRTL_ECO9_RELEASE_NOTES.TXT   
      
   Note that this is a supplement to the release notes that apply to the   
   whole kit and are separately downloadable ahead of time; those are named   
   something like VMS842L1A_RTL-V0900.RELEASE_NOTES.*   
      
   I do hope the new stuff gets into online help and the version dependency   
   tables in the CRTL manual at some point.   
      
   I have sent a pull request upstream to the FreeTDS maintainers with a   
   better detector for vasprintf:   
      
   https://github.com/FreeTDS/freetds/pull/660   
      
   I haven't had time yet to dig into why the replacement wasn't working.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|