[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
'struct tm' has no member named 'tm_gmtoff'
From: |
John W. Eaton |
Subject: |
'struct tm' has no member named 'tm_gmtoff' |
Date: |
Sat, 3 Dec 2011 05:30:42 -0500 |
On 3-Dec-2011, marco atzeri wrote:
| latest tip
|
| $ hg tip
| changeset: 13982:6cdfbe90e2ab
| tag: tip
| user: John W. Eaton <address@hidden>
| date: Sat Dec 03 03:30:37 2011 -0500
| summary: remove kluge for apparent libc bug that is really a
| valgrind bug
|
|
|
| libtool: compile: g++-4 -DHAVE_CONFIG_H -I. -I../../octave/liboctave
| -I.. -I../libgnu -I../../octave/libgnu -I../../octave/libcruft/misc -g
| -O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W -Wshadow
| -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align
| -Wcast-qual -g -O2 -g -O2 -MT liboctave_la-oct-time.lo -MD -MP -MF
| .deps/liboctave_la-oct-time.Tpo -c ../../octave/liboctave/oct-time.cc
| -DDLL_EXPORT -DPIC -o .libs/liboctave_la-oct-time.o
| ../../octave/liboctave/oct-time.cc: In constructor
| 'octave_time::octave_time(const octave_base_tm&)':
| ../../octave/liboctave/oct-time.cc:56:5: error: 'struct tm' has no
| member named 'tm_gmtoff'
| make[3]: *** [liboctave_la-oct-time.lo] Error 1
| make[3]: Leaving directory `/pub/hg/octave_build/liboctave'
|
| It is a bug only on cygwin ?
|
| from system time.h
|
| struct tm
| {
| int tm_sec;
| int tm_min;
| int tm_hour;
| int tm_mday;
| int tm_mon;
| int tm_year;
| int tm_wday;
| int tm_yday;
| int tm_isdst;
| };
|
|
| from http://www.delorie.com/gnu/docs/glibc/libc_435.html
| is seems that tm_gmtoff is a libc BSD extension and not in Posix.
I checked in the following change. Does it fix the problem for you?
http://hg.savannah.gnu.org/hgweb/octave/rev/1126c2907878
jwe