--with-blas/lapack being ignored

Ben Abbott bpabbott at mac.com
Thu Dec 6 18:08:09 CST 2007


On Dec 6, 2007, at 6:34 PM, John W. Eaton wrote:

> On  5-Dec-2007, Ben Abbott wrote:
>
> | Which may be duplicated with the simpler ....
> |
> | strptime ('09/13', '%m/%d')
> | panic: Bus error -- stopping myself...
> | attempting to save variables to `octave-core'...
> | save to `octave-core' complete
> | Bus error
>
> Does the attached program work correctly on your system?
>
> jwe
>
>
> #define _XOPEN_SOURCE
> #if defined (HAVE_SYS_TYPES_H)
> #include <sys/types.h>
> #if defined (HAVE_UNISTD_H)
> #include <unistd.h>
> #endif
> #endif
> #include <stdio.h>
> #include <time.h>
>
> int
> main (void)
> {
>  struct tm t;
>  char *q = strptime ("09/13", "%m/%d", &t);
>  if (q)
>    {
>      printf ("%d/%d\n", t.tm_mon+1, t.tm_mday);
>      return 0;
>    }
>  else
>    return 1;
> }

gcc test.c
./a.out
9/13

... I assume that means the strptime is working?

Ben


More information about the Bug-octave mailing list