octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'struct tm' has no member named 'tm_gmtoff'


From: marco atzeri
Subject: 'struct tm' has no member named 'tm_gmtoff'
Date: Sat, 03 Dec 2011 11:11:07 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0

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.



Regards
Marco


reply via email to

[Prev in Thread] Current Thread [Next in Thread]