Liste des Groupes | Revenir à co vms |
On 6/6/25 9:42 AM, Arne Vajhøj wrote:I can confirm that.And now dbfcmd works.Nor why the detection code doesn't correctly identify that vasprintf is
>
Of course it does not explain why the replacement doesn't work.
present. That detection code has been there unchanged for 23 years:
https://github.com/FreeTDS/freetds/blob/ a381342bbfccafc0aa9ed2376e38470907d53225/vms/configure.com#L267
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
char *ptr;
vasprintf(&ptr,"%d,%d",1,2);
exit(0);
}
But it isn't using va_start/va_end, which it surely should. My guess is
this worked by accident on pre-x86 but something tightened up on x86
that makes the vasprintf call fail and causes FreeTDS to use its
fallback implementation. I'm without access at the moment so can't test
this theory out myself.
Les messages affichés proviennent d'usenet.