From help-octave-request at bevo dot che dot wisc dot edu Wed Jun 14 11:11:24 2000 Subject: Compilation problem on DEC alpha From: "Kemal Gurer" To: Help for Octave Date: Wed, 14 Jun 2000 09:11:07 -0700 Hello all, I am trying to compile octave on a Dec-Alpha, and came accross with a compilation problem. I copied the error message below for your information. It appears that some people have already come accross with this error as the header in file ./liboctave/oct-time.cc indicates as: ------- // I am told that without _BSD_SOURCE, tm_zone won't be declared on // some systems. Defining _XOPEN_SOURCE provides the declaration for // strptime on some others. ------- Then, how and where (in which file/routine) do I need to declare "_BSD_SOURCE" that is required to continue on this compilation? What value should I set this variable to? How can I know if this declaration is in compliance with my machine's configuration? I appreciate your help. Thank you. Kemal. ------------------------------------------------------------- Kemal Gurer, Ph.D. California Environmental Protection Agency Air Resources Board Planning and Technical Support Division 2020 L Street Sacramento, CA 95814 (916) 327 6257 (916) 327 8524 (Fax) kgurer at arb dot ca dot gov -------------------------------------------------------------- c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -mieee-with-inexact -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall oct-time.cc -o oct-time.o oct-time.cc: In method `octave_time::octave_time(const octave_base_tm &)': oct-time.cc:89: `struct tm' has no member named `tm_zone' oct-time.cc: In method `class string octave_base_tm::strftime(const string &) const': oct-time.cc:185: `struct tm' has no member named `tm_zone' oct-time.cc: In method `void octave_base_tm::init(void *)': oct-time.cc:232: `struct tm' has no member named `tm_zone' oct-time.cc: In method `void octave_strptime::init(const string &, const string &)': oct-time.cc:276: `struct tm' has no member named `tm_zone' make[2]: *** [oct-time.o] Error 1 make[2]: Leaving directory `/disk2/kgurer/utils/installed/octave-2.1.29/liboctave' make[1]: *** [liboctave] Error 2 make[1]: Leaving directory `/disk2/kgurer/utils/installed/octave-2.1.29' make: *** [all] Error 2- ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------