--with-blas/lapack being ignored
Ben Abbott
bpabbott at mac.com
Fri Dec 7 18:46:01 CST 2007
On Dec 7, 2007, at 4:38 PM, John W. Eaton wrote:
> On 7-Dec-2007, Ben Abbott wrote:
>
> | forgive me if this is less than useful, but I bailed on ddd and
> decided to run gdb instead. Once I've stopped on line 307 ...
> |
> | (gdb) display t->tm_zone
> | 2: t->tm_zone = 0x0
> | (gdb) display t
> | 3: t = (tm *) 0xbfffa4e8
>
> Try (p is short for print)
>
> p t->tm_zone
> p *t
>
> Does the following patch help?
>
With the patch applied the execution jumps from line 307 to 313.
291 void
292 octave_base_tm::init (void *p)
293 {
294 struct tm *t = static_cast<struct tm*> (p);
295
296 tm_sec = t->tm_sec;
297 tm_min = t->tm_min;
298 tm_hour = t->tm_hour;
299 tm_mday = t->tm_mday;
300 tm_mon = t->tm_mon;
301 tm_year = t->tm_year;
302 tm_wday = t->tm_wday;
303 tm_yday = t->tm_yday;
304 tm_isdst = t->tm_isdst;
305
306 #if defined (HAVE_STRUCT_TM_TM_ZONE)
307 if (t->tm_zone)
308 tm_zone = t->tm_zone;
309 #elif defined (HAVE_TZNAME)
310 if (t->tm_isdst == 0 || t->tm_isdst == 1)
311 tm_zone = tzname[t->tm_isdst];
312 #endif
313 }
continuing from 313 produces the following ...
{
usec = 0
sec = 0
min = 0
hour = 0
mday = 13
mon = 8
year = 0
wday = 0
yday = 0
isdst = 0
zone = unknown
}
Running octave outside of the debugger and issuing ...
test datevec
PASSES 11 out of 11 tests
I'm a bit lost as to why the zone isn't showing up correctly. What are
your thoughts as to how to proceed?
Ben
More information about the Bug-octave
mailing list