From gb at stat.umu.se  Sun Aug 28 13:58:51 2005
From: gb at stat.umu.se (gb@stat.umu.se)
Date: Sun, 28 Aug 2005 13:58:51 +0200 (CEST)
Subject: [Rd] xerbla called from BLAS routine (PR#8100)
Message-ID: <20050828115851.5F3A518B9C@slim.kubism.ku.dk>

Full_Name: G?ran Brostr?m
Version: R-2.1.1, 2.2.0
OS: Debian unstable
Submission from: (NULL) (213.65.9.59)


Some BLAS routines call xerbla for error messages, which results in a message
like
"LAPACK routine DGER gave error code -9".

Suggested solution: In 

void F77_NAME(xerbla)(char *srname, int *info)
{
   /* srname is not null-terminated.  It should be 6 characters. */
    char buf[7];
    strncpy(buf, srname, 6);
    buf[6] = '\0';
    error(_("LAPACK routine '%6s' gave error code %d"), buf, -(*info));
}

change 'LAPACK' to 'The' (or 'The BLAS/LAPACK').



[Rd] xerbla called from BLAS routine (PR#8100)
gb@stat.umu.se