help-octave
[Top][All Lists]
Advanced

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

Build problem - Octave 2.0.16 on NT4/Cygwin


From: Charles Hethcoat
Subject: Build problem - Octave 2.0.16 on NT4/Cygwin
Date: Tue, 19 Jun 2001 16:39:03 -0500

I am having trouble compiling Octave 2.0.16 for Cygwin/WinNT 4.0 SP6.
I have previously compiled and used 2.0.13 (I think it was) for
the same platform with no glitches whatever, so I am left thinking
that something is broken in the 2.0.16 distribution.  I haven't tried
building it on Linux yet.

My gcc is gcc-2.95.2-6.

The build has repeatedly failed at the same point in the makefile.  It looks
like a library problem.  This is the terminal output at the point where it
fails:

.
 .
  .
c++  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob -I../glob -D
HAVE_CONFIG_H -mieee-fp -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2
 -Wall -rdynamic \
-L..   -fPIC -g -o octave \
octave.o builtins.o  balance.o  besselj.o  betainc.o  chol.o  colloc.o  dassl.o
 det.o  eig.o  expm.o  fft.o  fft2.o  filter.o  find.o  fsolve.o  gammainc.o  ge
tgrent.o  getpwent.o  getrusage.o  givens.o  hess.o  ifft.o  ifft2.o  inv.o  log
.o  lpsolve.o  lsode.o  lu.o  minmax.o  pinv.o  qr.o  quad.o  qzval.o  rand.o  s
chur.o  sort.o  svd.o  syl.o  time.o \
-L../liboctave -L../libcruft -L../src  \
../src/liboctinterp.a ../liboctave/liboctave.a  ../libcruft/libcruft.a  ../readl
ine/libreadline.a ../kpathsea/libkpathsea.a ../glob/libglob.a  \
-lg2c -L/usr/local/lib -L/usr/lib -L/usr/lib/w32api -L/home/chethcoa/devel/icon/
incl -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4 -lcygwin -luser32 -ladvapi32 -ls
hell32  -lncurses -lm
c++: unrecognized option `-rdynamic'
../src/liboctinterp.a(strftime.o): In function `strftime':
/usr/local/octave-2.0.16/src/strftime.c:298: undefined reference to `_tzname'
collect2: ld returned 1 exit status
make[2]: *** [octave] Error 1
make[2]: Leaving directory `/usr/local/octave-2.0.16/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/usr/local/octave-2.0.16'
make: *** [all] Error 2

I looked at the the routine /usr/local/octave-2.0.16/src/strftime.c and found 
this:

.
 .
  .
#if HAVE_TZNAME
extern char *tzname[];
#endif
.
 .
  .
#if HAVE_TZNAME
  if (!(zone && *zone) && tp->tm_isdst >= 0)
    zone = tzname[tp->tm_isdst];
#endif
.
 .
  .

The variable tzname (_tzname) is global, and evidently is
supposed to be declared and initialized elsewhere.
The trouble is, I have no idea where to look.

Is there an update, patch, or workaround for this?

Thanks
Charles Hethcoat




Charles L Hethcoat III
Senior Engineer
Oceaneering Space Systems, Inc.
16665 Space Center Blvd.
Houston, Texas 77058 USA
281-228-5568    Fax:  281-228-5546




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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